text string | meta dict |
|---|---|
Q: Static initializers in bcel In BCEL, I would like to initialize static fields in the static initializer of a class. I haven't found a way to do so however... any hints?
I need something like:
// Field descriptor #8 [I
private static int[] a;
static {};
0 bipush 10
2 multianewarray int[] [9]
6 puts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to call the main program from a winform opened by it'? I have a program that when it starts, opens a winform (it is the one specified in Application.Run(new ...). From this form I open another form:
OtherForm newForm=new OtherForm();
newForm.Show();
How can i communicate from the new winform with the form that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Access Ruby objects with Python via XML-RPC? I am trying to export a Ruby framework via XML-RPC. However I am having some problems when trying to call a method from a class not directly added as a handler to the XML-RPC server. Please see my example below:
I have a test Ruby XML-RPC server as follows:
require "xmlrp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I make HTTP post request for getting JSON object in response for iPhone application? I've a web service running on server which return data either in XML format or JSON format.
I wanted to request a JSON format but using HTTP Post method.
A: This is the code which work for JSON post request,
TouchJSON Framew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Any pointers on making a downloader application? Preferably a Wix/MSI? We've got an application we'd like our users to download. Currently they click a link and download the EXE. What we'd like to do is have a launchpad/downloader application that would be small and fast to download, which would then download and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to fetch more than 1000? How can I fetch more than 1000 record from data store and put all in one single list to pass to django?
A: The 1000 record limit is a hard limit in Google AppEngine.
This presentation http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine explains how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: WPF Dispatcher.Invoke 'hanging' I have a somewhat complex WPF application which seems to be 'hanging' or getting stuck in a Wait call when trying to use the dispatcher to invoke a call on the UI thread.
The general process is:
*
*Handle the click event on a button
*Create a new thread (STA) which: creates a new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Convert MYSQL_ROW type to String I am using the MYSQL C API and I have a MYSQL_ROW object that I would like to convert to a string. Does anyone know how to do this? I haven't found anything in the API's doc yet.
string str = (string)row[0] <-- runtime error
P.S. I tried casting it to a string but it doesn't work
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Entity Framework & LINQ To SQL - Conflict of interest? I've been reading on the blogosphere for the past week that Linq to SQL is dead [and long live EF and Linq to Entities]. But when I read the overview on MSDN, it appeared to me Linq to Entities generates eSQL just the way Linq to SQL generates SQL queries.
Now,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Should I create a new quartz job and trigger or one job and many triggers? I am looking to use quartz to schedule emails, but I'm not sure which approach to take:
*
*Create a new job and trigger whenever an email is scheduled OR
*Create a single job, and create a new trigger each time an email is scheduled
I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I control the order in which event handlers are fired? Are event handlers fired in the order that they attached to the event? If not, can I enforce some kind of order onto the event handlers such that they are called in a specific order?
A: Do NOT rely on event ordering. All event dispatches should be logic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: $.getJSON returning cached data in IE8 I'm playing around with ASP.net MVC and JQuery at the moment. I've come across behavour which doesn't seem to make sense.
I'm calling JQuery's $.getJSON function to populate some div's. The event is triggered on the $(document).ready event. This works perfectly.
There is a sm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "102"
} |
Q: Multiple menu items in bold face I've been investigating the effort needed in getting menu items displayed in bold face - without having to draw the menu myself - and discovered MFS_DEFAULT menu item state after some googling. The MSDN documentation mentions
MFS_DEFAULT
Specifies that the menu
item is the default. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Color margins in VIM Does anybody know how I can get diff's color margins in VIM (if it is possible)? I mean something like this: (e.g., in NetBeans: Netbeans color margins). It was very useful when I was working with NetBeans, maybe somebody wrote such useful plugin for VIM?
Thanks!
A: This is not exactly what you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: setting the gzip timestamp from Python I'm interested in compressing data using Python's gzip module. It happens that I want the compressed output to be deterministic, because that's often a really convenient property for things to have in general -- if some non-gzip-aware process is going to be looking for changes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I grab the top result of a Google search? In a PHP script I want to get just the URL of the top result of a Google search and redirect to it. I could scrape it but is there a better way?
A: Use the I'm Feeling Lucky function.
Example:
http://www.google.com/search?hl=en&q=stackoverflow&btnI=I'm+Feeling+Luck... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you determine what to put in .rhosts file in an VAX open vms when accessing from CYGWIN How do you determine what to put in .rhosts file in an VAX openvms system when trying to remotely access the server using a remote shell from Cygwin on windows XP ? .rlogin and rsh are the only methods that can be used to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php Echo/printing a multiline string? i have a php file launching my exe. the exe does cout and the text is printed in html which is all fine. until i write "someline\n"; The \n breaks the output and i only see the last line. How do i print/echo text/strings that has multilines in them?
The current paste has \n comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are real-time linux extensions obsolete? Do the new real-time and low latency patches from Ingo Molnar render previous real-time extensions for Linux (such as RTAI, Xenomai) obsolete?
A: Doesn't look like it to me, although I've not endeavoured to build a real-time system on Linux (yet). RTAI look like APIs. POSI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .config to constructor tricks? I'm working on a quick project to monitor/process data. Essentially that's just monitors, schedules and processors. The monitor checks for data (ftp, local, imap, pop, etc) using a schedule and sends new data to a processor. They all have interfaces.
I'm trying to find a sane way to us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I generate sql scripts for process definition deployment in jBPM? I'm looking into integrating jBPM with my current project, so far so good just including the jpdl jar in my ear and using the spring modules 0.8 jbpm module, however I've got to have a reasonable way of going from my changes to to the process ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Proper way to write and read an xml string I've been beating my head against this wall for quite some time now, so I thought I'd ask some experts.
I need to send an xml string from one computer to the next. I would like to format the xml something like this:
<xml>
<author>Joe the Magnificent</author>
<title>Joe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best mime-type and extension to use when exporting tab delimited? I've come across the problem where Excel will not play nice with UTF-8 encoded CSV files. See this related question on Stack Overflow.
I've followed the solution of exporting as UTF-16, however it seems that with UTF-16, the comma characte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Grammar Writing Tools I am trying to write a grammar in EBNF (barring a really good reason, it has to be EBNF) and am looking for a couple of utilities for it - if there's a GUI interface that can make one, that would be great, but the thing I'm looking for most is something that can check the grammar, for instance ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Debugging hung php I have a php web application that is occasionally hanging. When I navigate to the page it will just sit there trying to load for hours, even though max execution is 210. This is an application uses curl behind a proxy to download stuff. Error reporting is set to all, but that dosn't matter since... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is a good reference documenting patterns of use of X-Macros in C (or possibly C++)? A basic definition and example and a few references for "X-Macros" is given in this wikipedia entry on the C pre-processor:
An X-Macro is a header file (commonly
using a ".def" extension instead of
the traditional ".h") th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Spell checking city names? I figure this problem is easier than just a regular spell checker since the list of U.S cities is small compared to all known English words.
Anyhow, here's the problem:
I have text files with full of city names; some of which are spelled correctly and some which aren't.
What kind of algor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java Serial Communication on Windows I've been looking around for a Java API that can communicate with serial devices on Windows/Win32 but many of the APIs I've checked out are either for Linux, too outdated, or just had bad critics.
Can someone recommend one to me that they've tried or knows about that is easy to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: AspNetWindowsTokenRoleProvider not working correctly for Windows Authentication in ASP.NET I am developing an Intranet Application in ASP.NET that uses Windows Authentication. I have created an AD class that gets information from the Active Directory Domain Controller. This is what I use to get things like User Grou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Systray Access Is there a way (in C#) to access the systray?
I am not talking about making a notify icon.
I want to iterate through the items in the tray (I would guess through the processes but I don't know how to determine what is actually in the tray and what is just a process) and also represent the items with t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ObjectDataSource throws Exceptions I am working on an ASP.NET page with a GridView and an ObjectDataSource.
I want to configure the ObjectDataSource against a class (decorated with DataObject()) in my business layer. A class amongst many others set up in a very similar fashion. I selected the class and clicked Nex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to discover what Linux distribution is in use Sometimes I need to access some servers running Linux (or maybe another Unix-like SO), but I don't know how to verify which distribution is in use on the server (there are times that even the "responsible" person for the server doesn't know).
Is there an easy and re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Best Continuous Integration Setup for a solo developer (.NET) I'm looking for a lightweight, easy to setup CI server that I can run on my laptop along with Visual Studio & Resharper. I'm obviously looking at all the big names like CruiseControl, TeamCity etc etc but the biggest consideration to me is ease of setup a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Why do people defend the regex syntax? There is a similar question going around, but it just got the same old answers that people always give about Regex syntax, but that's not the point here, so please try to not knee jerk the same old answers about regex syntax. Try to be a little more original and personal about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Lookup Op performance I'm trying to squeeze some more performance out of my rendering pipeline. The (by far) slowest part is performing a java.awt.imaging.LookupOp on a large image.
The image size is about 2048x2048.
I have figured out that having the filter done along with the drawing operation is much faster th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can CArchive read and write from a specified location of a file? I want to serialize and deserialize a list of objects into a file. But I found that if I use CArchive, the new content will overwrite the original content in the file, which is not my expectation. Is there any method to allow me to read and write from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: vb.net byte[] to C++ char* I am calling an unmanaged C++ dll that expects a char* as one of its parameters and I want to push a byte[] into it. The project is written in VB.NET.
What type of marshalling will work for this?
A: If you need to pin a managed structure in order to pass it as a parameter you can use th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SVN recursive delete Is there a way to delete a folder, lets call it FolderX from an SVN trunk recursively? A quick search on google only tells me how to recursively delete all .svn folders and this is not what I want to do
A: svn delete FolX --force should do the trick even if there are unversioned files in the su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: WPF SaveFileDialog - Restrict Drives How can I restrict the list of drive letters displayed by the WPF SaveFileDialog?
A: IMHO Since it is just a wrapper over the old FileDialog common control, I'd be surprised if you could do this. I could be wrong...
I'd begin by questioning why you need to restrict some drives (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Querying ManyToMany relationship with Hibernate Criteria I'm not sure how to describe this problem, so I think an example is the best way to ask my question:
I have two tables with a manyToMany relationship:
DriversLicence <-> LicenceClass
LicenceClass is things like "Car", "Motorbike", and "Medium Rigid".
Using Hib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there an alternative for sleep() in C? In traditional embedded programming, we will give a delay function like so:
for(i=0;i<255;i++)
for(j=0;j<255;j++);
In the microprocessor's view, is this how the sleep() function works?
Is there an alternative for the sleep() function in C?
A: You talk about "embedded pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: how to go back to some position already printed in C? let us have a situation in which the following program prints some 10 lines of #
for(i=0;i<10;i++)
prinf("\n#");
now how to go back to 5 th line and edit that # and change the color of it without clearing the screen or clearing the below 5 lines?
I have tried
w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Performance Tuning WCF Service What is the single most important performance tuning area for a WCF Web service?
*
*ASP.net Thread settings?
*WCF throttling?
A: Please take a look at the articles and whitepapers below. I think they should give you MUCH more concrete performance considerations to explore, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPhone Web App Cache Persistence How can I write an ASP.NET (C#) application that will render a page can be permanently cached on the iPhone when it is bookmarked as a "Homescreen Icon"? I have tried setting this on the code behind "Response.ExpiresAbsolute = DateTime.MaxValue;" but to no avail. The server code is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I sort a MultiMap in java? Is there a reason to sort MultiMap in Java and how to do that?
A: Assuming you're talking about org.apache.commons.collections.MultiMap, then you can't; since it returns a Collection and not a List, it doesn't support the concept of order.
If you are talking about org.apache.common... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Upgrading a large VB6 app to .NET. Opinions on VB Migration Partner I have a really large VB6 code base with a ton of 3rd party controls. Want to move it to .NET. Rewriting it is out of question - the client sees no value in spending money to get the same thing. Moving to .NET with the built-in upgrade wizard is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Has anyone developed a PHP based Client for a WCF Service? Has anyone developed a PHP based Client for a WCF Service? I'm in the process of completing a WCF Service for my work. Only I don't expect the client to be running on the .Net Stack. I expect PHP (LAMP) will be the norm.
Are there some obvious pitfalls t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to force case sensitivity in MySQL / Rails for a single find? I'm doing some searching of tags, and some users like "cat" while others like "Cat" Go figure...
Anyways, is there a way to force a particular find to be case sensitive? Such as:
Tag.find(:some-special-option-here)
Any ideas?
A: You can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Running vc2008 debug builds on non-dev machines I'm building my app in vc2008 and testing it on a network of machines.
Is there any way, other than installing Visual Studio 2008, to run a debug build of a C++ program on another machine? (i.e. that doesn't have vc2008 installed)
Installing the redist package only ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Linux equivalent of the Mac OS X "open" command I've found the "open" command in Mac OS X very handy in the command line. From "man open":
The open command opens a file (or a directory or URL), just as if you had
double-clicked the file's icon. If no application name is specified, the
default applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "235"
} |
Q: Winforms Form Constructor vs Load event When a form loads, the code needs to do things like setup datagrids, comboboxes, set the title, etc. I've tended to always use the load event rather than the new (constructor). Are there any guidelines for which one is best for which activities?
A: A call to InitializeCompone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: DataList, Conditional statements in ? I am trying to do the following in ASP.NET 3.5. Basically, I am binding a LINQDataSource to a DataList. There is a property called "Deleted" and if it is true, I want to display different markup. The following code throws errors:
<asp:DataList runat="server">
<ItemTemplat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: element not identified in IE 6.0 I have used this in my HTML:
<q> Hai How r u </q>
Which shows the text in quotes, like "Hai How r u", for example.
This is working fine in FF but not in IE 6.0.
Please let me know why this happens, and any solutions you might know of.
I don't want to use the quote (") character in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cocoa 10.5 multithread app runs slowly Got a Cocoa video capture app that works fine in 10.4. It uses NSThread to start the video capture driver. When app just started, video capture is very slow ( 1-2 fps). But after resize the UI window (or bring the window from background to foreground), video capture speed is ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I can't see my other projects in Eclipse! I've been using Eclipse with each project in a separate window by right clicking on a project and selecting Open in New Window. This worked fine, but suddenly... even when I close Eclipse and reopen it, the Navigator only shows one of the projects I was working on. How can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use Single Quotes in Eval Format String I've got a Repeater and its SqlDatasource nested inside a Gridview TemplatedField.
The Repeater's datasource SelectCommand is set using the FormatString of an Eval from the Gridview.
The SelectCommand has a WHERE clause which is to compare a string.
Because I have alrea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can the master pty detect if a slave tty has exited? I am using BSD style pty/tty pairs to implement running a sub shell. When the user exits the sub shell, how do I detect in the master process that this has occurred? I am using select(nfds, &read_fds, NULL, NULL, &timeout); with the master pty file descripto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I get a list of the differences between two JavaScript object graphs? I want to be able to get a list of all differences between two JavaScript object graphs, with the property names and values where the deltas occur.
For what it is worth, these objects are usually retrieved from the server as JSON and typi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Converting plist to binary plist Apple strongly recommends using the binary plist format when reading large XML-based data sets into iPhone apps. Among their reasoning is the fact that XML parsing is very taxing on the iPhone. However, this requires that files residing on the remote web server be converted first.
Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Does a native php (5+) function exist that does the following in 1 line? function array_value_from_key($array,$key)
{
return !empty($array[$key]) ? $array[$key] : null;
}
The reason I ask is because I have a class function that returns an array.
Instead of having to do
$myArray = myClass::giveMeArray();
$myVal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Configure webserver:80 to direct a domain name request to a different running webserver:8080 on same machine, different port? I run Jetty6 yet gladly place Apache in the front if needs be.
I would like to have two webserver instances running on the same machine on different ports.
I would like the instance on port 8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a speed difference between sqlite3 and mysql? After much googling I have been wondering what the benefits/differences are between mysql and sqlite3. I am primarily hoping for a speed bump when moving my development database to my production database, although I imagine this will primarily happen in my code.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Java RS-232 Communication on Windows Does anyone know of a good Java API for controlling RS-232 devices in a WIN32 enviroment?
I've tried RXTX but they don't support RS232, only RS-485.
A: Without reservation, I recommend Java Serial Port from serialio.com. I had significant stability problems with the Sun, IBM and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: PHP removing a character in a string My php is weak and I'm trying to change this string:
http://www.example.com/backend.php?/c=crud&m=index&t=care
^
to be:
http://www.example.com/backend.php?c=crud&m=index&t=care
^
removing the / after the backe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: How do I generate an SSL certificate? How to access a page with invalid certificate in FF3? I am not able to access localhost https pages in firefox3. It gave the error
'Can't connect securely because the SSL protocol has been disabled.
(Error code: ssl_error_ssl_disabled)'
I enabled all the SSL2 related prefer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What should these comparisons return? I've got an application that's using string.compare(string,string) to sort some values. The thing I can't figure out is why "1022" compares as less than "10-23" and "10-23" compares as less than "1024".
Is there something specific to the value of "-" that causes this result? W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Should we use Generic Collection to improve safety and performance? Should we use Generic Collection to improve safety and performance?
A: Of course. Why wouldn't you? More important than the performance, IMO, is the fact that generic APIs are more expressive. That goes for generic APIs in general, not just collect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting clicks inside an iframe from outside? Here is the scenario. There is content loaded in iframe from other site. I click to some link inside the iframe.
Is it possible to catch somehow outside the iframe what is that link?
UPDATE
Since I recieved question if my intentions are pure, I would explain more on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Incite database failure for integration test When running an integration test (Web Service talking to JDBC, in this case) how do you force the database to throw an error so that the resulting soap fault can be inspected?
I'm using Spring's Transactional Test Framework, so would be unreasonable to just issue a DROP T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determine window visibility in Vista I want to determine if a certain window is visible to the user or hidden/occluded. In Windows XP I would use the GetClipBox() function and check for a NULLREGION or empty RECT return value. This worked perfectly fine, but on Windows Vista it does not work if another window is occ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to find two adjacent repeating digits and replace them with a single digit in Java? I need to find two adjacent repeating digits in a string and replace with a single one. How to do this in Java. Some examples:
123345 should be 12345
77433211 should be 74321
A: I finally did it myself. Those who are looking fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Version control server performance when using CruiseControl (StarTeam or alternatives) We are using CruiseControl with a StarTeam server and having problems with the StarTeam server crashing. We are wondering if we are hitting the server too hard. Across 3 CruiseControl machines and a total of about 30 projects, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: using jython and open office 2.4 to convert docs to pdf I completed a python script using pyuno which successfully converted a document/ xls / rtf etc to a pdf.
Then I needed to update a mssql database, due to open office currently supporting python 2.3, it's ancientness, lacks support for decent database libs. So I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamic memory allocation in VB6 Is there such a thing?
I'm talking about something like a C++ new command i.e. allocation of memory which necessitates explicit releasing of the memory (or risk memory leaks).
I ask because I remember having to solve some GDI leak problems previously by setting forms/controls/other ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C/C++ Code to treat a character array as a bitstream I have a big lump of binary data in a char[] array which I need to interpret as an array of packed 6-bit values.
I could sit down and write some code to do this but I'm thinking there has to be a good extant class or function somebody has written already.
What I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can you set a page's title via CSS or a Skin in ASP.net 2.0 I am using asp.net 2.0 I know can set the pages title via the code behind. But is it possible to set the page title using Theme, skin or css?
I need to display a different title depending on the theme selected.
A: By inserting a Literal control in the Head... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sensitive data in Viewstate? I need to store sensitive data across few pages (run over https) per session.
I can't use session object, for the primary reason being that the session store is designed as just as backup store (primarily make service calls and load the session). If the session has been restarted or in o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Move Directory across SVN repository using Tortoise SVN How to move a sub directory from one directory to another, given that both are inside the same SVN repository? I am using tortoise SVN.
A: Select the folder/files that you want to move, then RIGHT-CLICK them and drag them to where you want to move them. A men... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Python - one variable equals another variable when it shouldn't Here is my sample code. It is meant to be an iterative procedure for gauss seidel (matrix solver). Essentially when the error is small enough it breaks out of the while loop.
i=1
while (i>0):
x_past = x_present
j=0
while(j<3):
value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: In Ruby's Test::Unit::TestCase, is there a way for a test method to access the total number of methods about to be tested? i.e. as I compose my test suites to include other suites as well as test cases,
is there a global count of how many tests the TestRunner has executed, will be executing?
Any way I can progammati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a SoftHashMap in Java? I know there is a WeakHashMap in java.util, but since it uses WeakReferences for everything, which is only referenced by this Map, referenced objects will get lost on the next GC cycle. So it's nearly useless if you want to cache random data, which is very likely to be requested again... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Local copy of ASP.NET MVC beta quickstarts? I just downloaded the ASP.NET MVC beta and wanted to walk through the quickstarts locally. It didn't look like they were installed with the beta installer, and I didn't see an independent download link for them. Is there a place I can find these to save and use locally?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deserializing a legacy XML structure in xstream I'm trying to deserialize an xml structure that looks like this:
<somecontainer>
<key1>Value1</key1>
<key1>Value2</key1>
<key2>Value3</key2>
<key2>Value4</key2>
</somecontainer>
I can basically choose what kind if element to deserialize to, maybe somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to automatically reload a report in MS Access? I have a report in MS Access where the underlying data in the tables changes irregularly. I'd like the report to reflect these changes automatically, either by reloading the form say every 10 seconds or either the report gets a notification about the changes and sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing Reference types by value in C# I want to pass a reference type by value to a method in C#. Is there a way to do it.
In C++, I could always rely on the copy constructor to come into play if I wanted to pass by Value. Is there any way in C# except:
1. Explicitly creating a new object
2. Implementing IClonable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Version controlled production environment My question is, how do I version control the production environment in a good way?
This is our current environment:
*
*(Internal server) Development - Version controlled source code
*(Customer server) Acceptance test environment
*(Customer server) Staging environment
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When Would You Prefer DateTime Over DateTimeOffset A few months ago I was introduced to the new DateTimeOffset type and was glad DateTime's flaws with regard to time zones were finally taken care of.
However, I was left wondering if there were any overhead or problems that could occur from using this new type.
I wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Finding missing XML comments content with Visual Studio Throughout or C# sourcecode we have a lot of comments that miss the actual content such like this:
/// <summary>
/// </summary>
or this:
/// <summary>
///
/// </summary>
or this:
/// <param Name="flag"></param>
Unfortunately Visual Studio does not generate w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: FTP Publisher for CruiseControl.Net? Does anyone know how to use CruiseControl.Net to publish to an FTP server?
A: I don't think there's a specific way to do this. You can of course always run the commandline ftp client in window from cruise control.net
One tip:
I found that stuff like this can be hard to set up an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I get Javascript debugging to work with my ASP.NET MVC application? I can't seem to get Javascript debugging working for my ASP.NET MVC application even though I can for a traditional ASP.NET WebForm app.
I have followed the steps for unchecking the 'Disable Script Debugging' boxes for both IE and other.
whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I create an editable dropdownlist in HTML? I'd like to create a text field with a dropdown list that lets the user choose some predefined values. The user should also be able to type a new value or select a predefined one from a dropdown list. I know that I can use two widgets for that but in my app it would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Fork or copy a users browser session in IE Is it possible to fork a users session (or do something similar) in a Internet Explorer plugin?
I want to process the page the user is on when they click a button in the toolbar. To avoid interrupting the users browsing, I'd like to "copy" everything so I can parse and proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: getopt() behaviour is unusual getopt() is not behaving as I expect for short options.
eg: Invoking the below program with a missing parameter:
Valid Case: testopt -d dir -a action -b build
Error Case: testopt -d -a action -b build
This did not throw any error as I was expecting an error message operand missing for -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Server controls in ASP.NET MVC I want to use server controls in ASP.MVC View. I want to retrive data from View and pass it to the control. How could I use server side controls(grid, button etc) and their events?
A: You can use server controls on aspx views just like you would in ordinary aspx pages (for example, Li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SEO for dynamic website powered by JavaScript and AJAX I had read that SEO is applicable for static website, which holding the information in the initial page itself. Is it possible to get search engines to index the dynamically added information?
I used AJAX for loading information. In this situation how can I opti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to enable mod_dav_svn in the root directory of a named virtual host? Is this possible? I had troubles with SVN clients not being able to access the repository with the following error message:
Repository moved permanently to 'http://svn.example.com/test/'; please relocate
If I added the '/' to the end of the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Best way to automagically migrate tests from JUnit 3 to JUnit 4? I have a bunch of JUnit 3 classes which extend TestCase and would like to automatically migrate them to be JUnit4 tests with annotations such as @Before, @After, @Test, etc.
Any tool out there to do this in a big batch run?
A: In my opinion, it cannot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: In a Java thread running as root, how can we apply Unix rights specific to a logged-in user? We have a Java program run as root on Unix, that therefore can read for example the content of the folders /home/user1 and /home/user2. However, if the Unix user "user1" is logged in in our application, he should not be able... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: CSS: Start numbering pages with 2 instead of 1 In CSS, with:
@page { @top-right { content: "Page " counter(page) " of " counter(pages); } }
I can have page numbers displayed at the top of every page when the page is printed. This works great. But now, how can I make it so the page number starts with 2 instead of 1?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way to the hide win32 launch console from a Java program (if possible without JNI) You launch a java program from a console (maybe using a .bat script).
I don't want the console to remain visible, I want to hide it.
Is there a simple way to do this ? Without JNI ?
A: You can start a java application with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |