text stringlengths 8 267k | meta dict |
|---|---|
Q: Unhandled Socket securityError even when (seemingly) handling it I Have a problem where I occasionally (i.e. not always) see the below error popup from the Debug Flash Player after launching my app:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://example.com/myApp.swf cann... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I specify the name of the element when a object will serialize I have the following class
[XmlRoot(ElementName= "webSites")] //No capital w at the beginning
public class WebSites : List<WebSite>
{
}
public class WebSite
{
[XmlAttribute("name")]
public string Name { set; get; }
[XmlAttribute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to call a Delphi DLL from VB6 Given the following Delphil DLL declaration
function csd_HandleData(aBuf: PChar; aLen: integer): integer; stdcall;
what would be the VB6 declaration to use it?
I've tried a variety of declarations, e.g.
Declare Function csd_HandleData Lib "chsdet.dll" (ByVal aBuf As String, ByVal a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Moving ModalPopup Outside the IFrame. Possible? I have an iframe inside my main page. There is a modalpopup inside the iframe page. So when the modalpopup is shown, the parent of the modalpopup is the iframe body and the main page parent body. Thus the overlay only covers the iframe and not the entire page.
I tried ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Best free web framework to deploy on Windows Server? If you are starting to develop a new web application from scratch and the only two requirements you have is that it will be deployed to Windows 2008 Server and that standard ASP.NET incl. VS2008 doesn't cut it (doesn't matter why, let's say it's the license cost, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Troubleshooting system.io.fileloadexception I have a .net 3.5 WinForms application that runs fine on my machine, but on another machine it immediately crashes with a system.io.fileloadexception. Unfortunately, there are absolutely no details on which file failed to load, so I do not know where the problem actually i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SecureRandom: init once or every time it is needed? Our team is using a SecureRandom to generate a list of key pairs (the SecureRandom is passed to a KeyPairGenerator). We cannot agree on which of the following two options to use:
*
*Create a new instance every time we need to generate a key pair
*Initialize a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Pattern for connecting to different databases using JDBC I'm writing an application which has to be configurable to connect to Oracle, SQL Server and MySQL depending on client whim.
Up till now I'd been planning on using the JDBC-ODBC bridge and just connecting to the databases using different connection strings.
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to register a JavaScript callback in a Java Applet? I'm developing an invisible Java Applet, that will be controlled entirely from JavaScript.
I can call the applet's Java methods easily, and I can call JavaScript methods from within the applet by using netscape.javascript.JSObject.getWindow(this).call().
But in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Firefox Javascript Events Anonymous Function I'm attempting to register an anonymous function when a user clicks a cell in an HTML table. Here's some of the raw, unadulterated code:
document.getElementById(
"course"+displayed_year_index+occurrences_indices[displayed_year_index]).onclick =
eval("function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding rows to a JTable We have a simple project where we read data from a socket and we want to populate a table with the coming data, but we can't find a way to add rows to a yet created JTable object, we can only find how to add rows at creation time of the table.
Is it possible to add rows dynamically to a JTabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: css layers ordering and arranging I am trying to have one one layer, and center images within. I.E., if I have 3 images and want 3 links beneath them, is there a way to do this without using a separate div tag for each link and image? To automatically make the links be centered under the images, and the images to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is PHP Doctine's free() not working? This is one is for any of you Doctrine users out there. I have a PHP CLI daemon process that checks a table every n seconds to find entries that haven't been processed. It's basically a FIFO. Anyways, I always exceed the memory allocated to PHP becuase Doctrine does not fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is a partial class? What is and how can it be used in C#.
Can you use the same concept in Python/Perl?
A: The c# partial class has been already explained here so I'll just cover the python part. You can use multiple inheritance to elegantly distribute the definition of a class.
class A_part1:
def m1(self):... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Using the Eclipse remote debugger throws com.sun.jdi.InternalException The following error is being thrown:
com.sun.jdi.InternalException: Got error code in reply:35 occurred while retrieving value. for all expressions
I am getting this error for all expressions and cant find anything on it. My guess is that the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Get path to execution directory of Windows Forms application I would like to get the path to the execution directory of a Windows Forms application. (That is, the directory in which the executable is located.)
Does anyone know of a built-in method in .NET to do this?
A: System.Windows.Forms.Application.StartupPath ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Inner select on one to many I have 2 tables event + event_artist
event
eventId | eventName
-------------------
1 , gig1
2, gig2
event_artist
eventId, artistName
-------------------
1, Led Zip
1, The Beatles
ie Led Zep and the Beatles are both playing @ Gig1
I need to create the SQl to bind to a gridv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what does this preg_replace_callback do in PHP? and how do I stop it leaking memory? I've got a section of code on a b2evo PHP site that does the following:
$content = preg_replace_callback(
'/[\x80-\xff]/',
create_function( '$j', 'return "&#".ord($j[0]).";";' ),
$content);
What does this section of co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript execution order issues with Dojo Before I ask my question, here's the offending code:
var coords = dojo.coords(g);
g.style.left = coords.x + "px";
g.style.top = coords.y + "px";
g.style.position = "absolute";
Now imagine that g is a relatively positioned element with an x position of 70 and a y position ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Logging every data change with Entity Framework There is a need from a customer to log every data change to a logging table with the actual user who made the modification. The application is using one SQL user to access the database, but we need to log the "real" user id.
We can do this in t-sql by writing triggers ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: What should I know before poking around an unknown archive file for things? A game that I play stores all of its data in a .DAT file. There has been some work done by people in examining the file. There are also some existing tools, but I'm not sure about their current state. I think it would be fun to poke around i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Conditional Configuration Framework I'm searching for a configuration framework which handles key/values pairs based on conditions. The language and storage type doesn't matter.
Example with background color for Application XYZ:
*
*Application has the background color
"red".
*On Monday the background color shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Merging MediaWiki contents together Currently I have two MediaWikis, one a slightly older version than the other. I want to merge the contents of both together, without eliminating duplicate pages. So far the best option I can think of is to use a bot (like pywikipedia) to go through all the pages of one wiki, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ASP.NET URL validation We have a custom REST handler on ASP.NET that is configured like this to handle all incoming requests:
<add path="*" verb="*" type="REST.RESTProtocolHandler"/>
However, passing it a pipe character, properly encoded or not at all, triggers a validation error that seems to come from inside ASP.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Easy way to catch all unhandled exceptions in C#.NET I have a website built in C#.NET that tends to produce a fairly steady stream of SQL timeouts from various user controls and I want to easily pop some code in to catch all unhandled exceptions and send them to something that can log them and display a friendly mes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Spawn a process in Java that survives a JVM shutdown I need to spawn a process in Java (under Linux exclusively) that will continue to run after the JVM has exited. How can I do this?
Basically the Java app should spawn an updater which stops the Java app, updates files and then starts it again.
I'm interested in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Help with XML-RPC server I'm now trying to create a xml-rpc server with the CodeIgniter Framework.
<?php
$this->load->library('xmlrpc');
$this->load->library('xmlrpcs');
$config['functions']['weblogUpdates.ping'] = array('function' => 'weblogUpdates.ping');
$config['functions']['ping'] = array('function' => 'weblo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Input Values for Nativemethods.GetSystemMetrics Function in .Net This function appears to be a way to access all sorts of system values. For example
nativemethods.GetSystemMetrics(4096) returns whether a session is remote or local. All I can find on the web are specific examples--does anyone know where I could fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does the Presentation-/ViewModel for a Task or Dialog look like? I'm trying to move to a Model/ViewModel/View architecture and got stuck when trying to push selection dialogs to this pattern. I'd like to separate retrieving a list of choices (business/presentation logic) and the actual displaying/choosing mechan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: File Security on Windows Vista with .NET Installer I am trying to write an installer (by creating a .vdproj) that will work on both Windows Vista and XP. The only thing I am finding is that when I try to run it on Vista, the files that I include in the installer are installed with Read-only permissions for the User... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SSRS and Excel color compatibility I have SSRS Reports created and rendering in Excel format. I used a custom color(mentioned in excel spec R23, G123, B87) in SSRS. But it shows a different color with the same combination in SSRS. And once I render the report to Excel it shows the color different though I used the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to include SQL Compact and .NET Framework in my Installer I need to have my installer include the .NET Framework 3.5 SP1 as well as SQL Compact 3.5. I remember seeing a place somewhere in the Visual Studio IDE where these could be included in the install, but I can't find them. Does anyone know how to do this?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java SAX Parser raises UnknownHostException The XML file I want to parse starts with :
<!DOCTYPE plist PUBLIC "-//...//DTD PLIST 1.0//EN" "http://www.....dtd">
So when I start the SAX praser, it tries to access this DTD online, and I get a java.net.UnknownHostException.
*
*I cannot modify the XML file before fe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why can't I use the 'AccessDeniedException' namespace? I get the message that the namespace can't be found when I use the code below. Where does the AccessDeniedException live?
try { ... }
catch (SomeKindOfException ex)
{
MessageBox.Show(ex.Message);
}
catch (AccessDeniedException ex)
{
//Do something else
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .net remoting stops every 100 seconds We have very strange problem, one of our applications is continually querying server by using .net remoting, and every 100 seconds the application stops querying for a short duration and then resumes the operation. The problem is on a client and not on the server because applica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Configure Hibernate to escape underscores in LIKE clause using SQL Server dialect I have a SQL SELECT query which has a LIKE clause containing an underscore, which should specifically look for an underscore, not treat it as a wildcard:
SELECT * FROM my_table WHERE name LIKE '_H9%';
I understand that I can change t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Query Microsoft Access MDB Database using LINQ and C# I have a *.MDB database file, and I am wondering if it is possible or recommended to work against it using LINQ in C#. I am also wondering what some simple examples would look like.
I don't know a lot about LINQ, but my requirements for this task are pretty simpl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: ajax displaying code instead of result I have a basic ajax application, which will not work, instead the php code is displayed in the browser. The javascript and html seem fine. I have copied the code verbatim from here:
http://arief.aeroven.com/2008/07/30/first-ajax-script-tutorial-connecting-ajax-contain-pure-html... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: iPhone - debugging "pointer being freed was not allocated" errors When over freeing a pointer you may see an error such as
"pointer being freed was not allocated"
When debugging with the simulator, I add a build argument MallocStackLogging = YES - this allows me to use malloc_history in the terminal to track down wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Shortest command to calculate the sum of a column of output on Unix? I'm sure there is a quick and easy way to calculate the sum of a column of values on Unix systems (using something like awk or xargs perhaps), but writing a shell script to parse the rows line by line is the only thing that comes to mind at the mom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: How can I obtain file meta information in Perl? I'm looking for a module or some way to obtain the information about the content of a file.
The same sort of thing that the Linux "file" command does, but in Perl language.
A: Take a look at File::Magic
http://search.cpan.org/~rehsack/File-Magic-0.01/
File::Magic is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Calling a .jar from ColdFusion I have a .jar file that i've placed in my D:\Coldfusion8\wwwroot\web-inf\lib\ directory. The file is abcdef.jar
This is my first time doing this, not sure what the path should be in my createObject().
<cfset abcObj = createObject("java","com.abcdef") />
<cfset result = acbObj.doStuff(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to create project in WebLogic Workshop with support for JPA entity beans? How to create a project in WebLogic Workshop (version 10.3) with support for JPA entity beans?
I am trying create a separate EJB and EJBClient projects in Workshop and EJB3 session beans work just fine, but I am having problems with JPA en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Locking SQL Server to a specific application on a web server I'm curious, is there a way to tell the SQL Server that a specific group has access to the database only from a single location/application. I have an SQL Server and a Web Server. Our applications use stored procedures and access for each stored procedur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tool that detects duplicate javascript function names in a web page? Background
We have a web application in which several developers have written several .js files that manipulate the DOM and the problem of duplicate function names has crept into our application.
Question
Can anyone recommend a tool that will warn ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Embed XML element in inline VB code Consider the following code in VB9:
Dim text = "Line1<br/>Line2"
Dim markup = <span><%= text %></span>.ToString
While I was hoping markup would end up being <span>Line1<br/>Line2</span>, it actually evaluates to <span>Line1<br/>Line2</span>.
Is there any way to get the valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Nullable type issue with ?: Conditional Operator Could someone explain why this works in C#.NET 2.0:
Nullable<DateTime> foo;
if (true)
foo = null;
else
foo = new DateTime(0);
...but this doesn't:
Nullable<DateTime> foo;
foo = true ? null : new DateTime(0);
The latter form gives ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "160"
} |
Q: Controlling Eclipse CDT debugger output? When using CDT I would like to have std::string show up in the 'variable' debug window with the string it contains. For instance if it is currently holding the word "history" I would like to see history in the debugger window labeled "variables".
I think that there is a gene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Dotnetnuke development environment and deployment My company is redesigning our intranet site and decided to go with DotNetNuke as the solution to implement. Now for the past year I've been trying to drive changes here about keeping development, testing, and production environments separate. I also want all changes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: wmv file not working in Firefox 3.0.3, Its working fine in IE I am using following code to embed files, video with .wmv extension, that is not working in Firefox. It's working fine in IE.
document.getElementById("QuestionMedia").innerHTML +=
'<OBJECT ID="MediaPlayer" WIDTH="350" HEIGHT="280" CLASSID="CLSID:22D6F3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where can I find good documentation on how to write XML DTDs? The description of DTDs in the XML 1.1 specification is very terse, and it is difficult to gain an appreciation of what features are available. For example, from looking at the unflattened XHTML+MathML+SVG DTD, I know it is possible to import and partiall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the C# equivalent of Perl's repetition operator? In Perl
print "a" x 3; # aaa
In C#
Console.WriteLine( ??? )
A: If you only need to repeat a single character (as in your example) then this will work:
Console.WriteLine(new string('a', 3))
A: Well in all version of .NET to repeat a string you could alwa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why do people use tarballs? As a primarily Windows developer, perhaps I'm missing something cultural in the Linux community, but it has always confused me.
When downloading something that the files are first put into a .tar archive then zipped. Why the two-step process? Doesn't zipping achieve the file grouping? Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: How much of Linux should I learn in order to deploy web sites using LAMP? Being a Windows developer I'm currently working on my own project using LAMP. I understand what I need to know of PHP and MySQL, but Linux looks huge and it's not clear where to start and what is enough given my goals.
And my goals are to gras... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Format a number with commas, but keep decimals
I'd like to group the digits in a double by thousands, but also output however number of decimals are actually in the number. I cannot figure out the format string.
1000 => 1,000
100000 => 100,000
123.456 => 123.456
100000.21 => 100,000.21
100200.123456 => 100... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Java batch monitoring We have 50+ Java batch processes that run at different times of the day. They run on a Solaris box, and are started via cron. Currently, the only way we only know if they succeed or fail is by an email generated at the end of each batch process. We have a support team that monitors these ema... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: System.Random keeps on returning the same value I am using a System.Random object which is instantiated with a fixed seed all thoughout the application. I am calling the NextDouble method and after some time passed I am getting 0.0 as result.
Is there any remedy to this, has anyone else encountered this ?
EDIT: I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What harm can DBO do to a server? Aside from executing XP_CmdShell, which I have disabled in my SQL 2005 installation, what could a malicious user who gains DBO rights to my database do:
*
*To my database,
*To my server?
I'm assessing the worst-case security risk of someone obtaining DBO to justify running a "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why isn't this LINQ to XML Query Working (Amazon S3) Given this XML ...
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>public.rpmware.com</Name>
<Prefix></Prefix>
<Marker></Marker>
<MaxKeys>1000</MaxKeys>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>0.dir</Key>
<LastModified>2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Could not load the assembly 'App_Web_kh7-x3ka'. Make sure that it is compiled before accessing the page I can't seem to figure out what I am doing wrong here. I publish my website to my server and when I try to run it I get the following exception:
Could not load the assembly 'App_Web_kh7-x3ka'. Make sure that it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How can I abort a running JDBC transaction? Is there a way to prematurely abort a transaction? Say, I have sent a command to the database which runs five minutes and after four, I want to abort it.
Does JDBC define a way to send a "stop whatever you are doing on this connection" signal to the DB?
A: Check out State... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How can I dynamically edit XML node values in ActionScript? /* I start with this: */
<Report>
<prop1>4</prop1>
<prop2>2255</prop2>
<prop3>true</prop3>
<prop4>false</prop4>
<prop5>true</prop5>
</Report>
/* I want this result (change the value of node "prop5"): */
<Report>
<prop1>4</pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How could I set up a 'nice' Capistrano deployment? How could I setup a nice indice on cap:deploy?
I want the remote server to nice the cp commands like so:
nice -n 19 cp ...
A: Not sure about cp. Don't you use an SCM?
I tried with my setup (I use subversion) and this seems to work. In deploy.rb, add:
set :scm_com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: EMMA won't cover one of my projects I have an issue with EMMA where it is correctly covering all my various Java projects except one.
I am puzzled as to why this occurs as the ANT script appears to be correct. The following expected output is given:
[echo] c:\cc_local_home\emmadata\ProjectName
[instr] processing in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using gvim to print diffs? Is there a way to print out the diffs like they show when you open them with "gvim -d", with all the common code folded away and only the diffs showing in context? I tried the print menu option, but it printed the entire file that I was currently "in", rather than printing the folded diff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Windows Authentication and Network Service account as a db_owner There is a number of commercial products out there, that give you a windows based installers for configuring your app and the back end SQL Server DB. Typically it will ask if you want to connect to the DB with Windows or SQL Server authentication. Most... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I stop the Invalid Length warning in Selenium from occuring? Sometimes when running selenium, it displays a message similar to:
WARN - Invalid length: Content-Length=798242 written=8192
And then Selenium stops responding. The website under automation runs on ASP.NET, and served up via IIS.
How do I prevent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is "business intelligence" software? Is "business intelligence" a buzzword that has no real meaning to software developers, or does the term carry some implied meaning in terms of what the software does or how the software does it (in a general sense)? It appears to be a real business term, but does it mean any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: C# Observers based on type? Suppose I want to create a set of observers based on type. That is to say, when they are notified of an event, they are told the type of one of the arguments and then decides whether or not to act based on if it can operate on that type.
Are there any simple ways to do this? I figured t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JEdit Macro - Open and Save File I have a JEdit (BeanShell) macro which opens a specific file then immediately saves the file to my c:\temp folder (so that I don't accidentally update the real file).
Here is the bean shell code:
logFilePath = "c:\\temp\\aj.txt";
jEdit.openFile( view , logFilePath );
_buffer = jEdit.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding a script with ScriptManager on a CompositeControl? I'm trying to call my good old 'RegisterClientScriptBlock' on the friendly 'ScriptManager' class.
It just doesn't work for my CompositeControl? I use it on a normal usercontrol (ascx) where it works.
Visual Studio simply won't accept me typing 'ScriptManager'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Encrypted, password-protected file creation I'm writing a program that creates a Word document with sensitive information. I'd like to encrypt and password protect the document and distribute it in a self-extracting file so that the user can double-click, provide a password, and then receive the unencrypted file.
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does Visual Studio 2008 have integration with SourceSafe? I'm using Visual Studio 2008 Professional Edition. In previous versions, there has been integration with VSS, through which one could "open from SourceSafe" and then, in the solution view, have the ability to interact with the source control by clicking on in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Stateful PHP Web Service Using SOAP I'm trying to implement a stateful web service in PHP using the SOAP extension. (Yes I know that web services are supposed to be stateless; all I really care to persist is some form of a session ID so I don't need to authenticate with every call to the service). PHP.net's API doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I format an Integer using current locale in Delphi var i : integer;
i := 1234567;
Given the above, I want the string "1,234,567" as output (assuming UK locale). IntToStr just gives me "1234567". I'm sure there's a one-liner for this, but I can't find it...
A: s := FormatFloat('#,##0', i);
A: Try the forma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to get notified about changes on SharePoint groups. I'm actual looking for a way to get notified about any changes on a SharePoint group. First I though I would be able to this by attaching a event handler to some kind of group list. But unfortunately there are no such list representing SharePoint groups.
My se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the rationale for fread/fwrite taking size and count as arguments? We had a discussion here at work regarding why fread() and fwrite() take a size per member and count and return the number of members read/written rather than just taking a buffer and size. The only use for it we could come up with is if you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "110"
} |
Q: Is the order in which handles are returned by EnumWindows meaningful? From a couple of preliminary tests it seems that EnumWindows always returns windows in reverse instantiation order, i.e. most recently instantiated window first. Is that a valid observation? If so, is it true across all versions of Windows? And is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/295996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Readable SQL aliases Since I'm sure many people have different standard, I've made this post a community wiki.
My question is, what's a good naming scheme for table aliases? I've been using the first letter of every word from the table name, but it's been getting quite unreadable. Here's a quick example.
FROM incide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deploy a resource file to App_GlobalResource folder on activation Does any one know the best way to deploy a resource file to the App_GlobalResource folder of the web application when a feature is activated?
A: Thanks all for your answers, but as the best solution for SharePoint 2010 is the follow:
*
*Add New It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: LostFocus binding doesn't work when using access keys Please consider the following example. Note that in the real-word, the binding source will likely be a data object. I'm using a TextBlock for simplicity.
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to store historical data in SQL Server 2005/2008? My simplified and contrived example is the following:-
Lets say that I want to measure and store the temperature (and other values) of all the worlds' towns on a daily basis. I am looking for an optimal way of storing the data so that it is just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How can I lock the first row and first column of a table when scrolling, possibly using JavaScript and CSS? How can I create a table that has its first row and first column both locked, as in Excel, when you activate 'freeze panes'? I need the table to both scroll horizontally and vertically (a lot of solutions for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Video in a website I am preparing a project proposal for a client who wants to publish video in his website. I need to define which video formats will be allowed, which video sizes, as well as the necessary tools for conversion and preparation.
I have no experience with embedding video in websites so which markup d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does python optimize modules when they are imported multiple times? If a large module is loaded by some submodule of your code, is there any benefit to referencing the module from that namespace instead of importing it again?
For example:
I have a module MyLib, which makes extensive use of ReallyBigLib. If I have co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: In IPython how do I create aliases for %magics? Let's say I want to create the alias %xed for %edit -x. How would I do it?
A: The answer given above uses the old magic system. get_ipython().expose_magic is dead. You now just import and use decorators for all this.
See here for more details.
A: Update: The first re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to check that asp:TextBox does not contain html tags I have a text box and need to validate that it is plain text does not contain html tags.
What is the best way to do it in .net
Bonus Question: How to do the same with javascript.
A: You could allow it to be entered, then before doing ANYTHING with the input, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you generate a migration from an existing table with Doctrine? Is it possible have a migration script automatically generate from a table schema in Doctrine?
For example, during heavy development of new features, I will oftern build out my tables first while writing the initial code. I usually don't create a mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can a ScriptReference be added to Master Page CompositeScript using markup? I'd like to use the ScriptManager and CompositeScript components in my master page to include site-wide javascript, but add to that list in my "Web Content Form". I'm sure that can be done in the code-behind, but optimally I'd like to do it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What FTP protocol/suite do the web hosting companies use? I recently got stuck on an odd problem.
My friend hired a designer to work on a web site for his company. He asked my recommendation about a tool to allow web designer perform secure file transfers so that he can update web site. Since he's hosting on Windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Create a hidden transaction I am using C# and DSL Tools for VS2005.
I need to create Transactions to change some data but i want them to be hidden from the user, that means, to not show in the UNDO list in VS2005.
I tried by disabling the UndoManager
store.UndoManager.UndoState = UndoState.Disabled;
But by disa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Incompatible Type Error Java I'm writing code in Java, using the NetBeans IDE. I keep getting a couple of "Incompatible Type" errors. I declare a variable as String and then assign to it the value from a method that returns a String too. The error says that there was expected a type of "String" but instead found "..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Slow Update Statement we're dealing with a very slow update statement in an Oracle project.
Here's a little script to replciate the issue:
drop table j_test;
CREATE TABLE J_TEST
(
ID NUMBER(10) PRIMARY KEY,
C1 VARCHAR2(50 BYTE),
C2 VARCHAR2(250 BYTE),
C3 NUMBER(5),
C4 NUMBER(10)
);
-- just inser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: $_GET parameter is not populated, even though URL has appropriate form I'm working on a new Wordpress site that is exhibiting some strange behaviour. I pass it a URL with GET parameters in it, and the $_GET parameter is not populated. I see in the $_SERVER parameter that the REQUEST_URI has the full URL there, comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do RESTful and SOAP Web Services differ in practice? I am implementing web services for a PHP application and am trying to understand what both standard web services and RESTful web services have to offer.
My intent is to write wrapper code to abstract away the web service details so that developers can just "i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Genericized commons collection I'm astonished that the Apache Commons Collections project still hasn't got around to making their library generics-aware. I really like the features provided by this library, but the lack of support for generics is a big turn-off. There is a Lavalabs fork of Commons Collections which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why does this leak? Why does this leak in Perl ?
$ perl -MDevel::LeakTrace::Fast -e 'our @a=(1);our @b=(1)'
leaked SV(0x0x84e053c) from -e line 1
$ perl -v
This is perl, v5.8.0 built for i386-linux-thread-multi
[...]
$ uname -a
Linux ant1 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:46:40 EDT 2004 i686 i686 i386 GNU/Linux... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I control audio volume in .NET 3.5? I want to create a volume slider for my application. I don't mind whether it controls master volume or program volume, but I don't want to use pinvoke if there's an alternative. I'm using C# with .NET 3.5.
A: As mentioned in the Changing Master Volume Level question, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL query question: SELECT ... NOT IN I am sure making a silly mistake but I can't figure what:
In SQL Server 2005 I am trying select all customers except those who have made a reservation before 2 AM.
When I run this query:
SELECT idCustomer FROM reservations
WHERE idCustomer NOT IN
(SELECT distinct idCustomer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: MSBuild Conditional Compilation I have a web service class that the rest of the framework depends on to grab its data, but the web service class needs to have different method attributes depending on what environment it's in. For instance...
[SoapDocumentMethodAttribute("https://example",...)]
public string Test()
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.