text stringlengths 8 267k | meta dict |
|---|---|
Q: MOSS 2007: SPListItem.GetFormattedValue for DateTime fields has a bug? SPListItem.GetFormattedValue seems to have a strange behavior for DateTime fields.
It retrieves the DateTime value through SPListItem's indexer which according to this MSDN article returns local time.
Here's a snippet from Reflector
public string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Transparent PNG menu item backgrounds in IE6 with rollovers Hi I have been trying to do this for what feels like all my life
I have a list menu with block display links, each link has a sliding doors png background image. I have used this javascript (http://www.ideashower.com/our_solutions/png-hover/) to implement t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding all controls in an ASP.NET Panel? I am having a number of panels in my page in which I am collecting user information and saving the page details. The page panel has textbox, dropdown list, listbox.
When I need to come to this page. I need to show the Page if these controls have any values. How to do this?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why do C++ streams use char instead of unsigned char? I've always wondered why the C++ Standard library has instantiated basic_[io]stream and all its variants using the char type instead of the unsigned char type. char means (depending on whether it is signed or not) you can have overflow and underflow for operation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Seen this binary date format? 3/10/2008 = 1822556159
2/10/2008 = 1822523391
1/10/2008 = 1822490623
30/09/2008 = 1822392319
29/09/2008 = 1822359551
This is all the information that I know at the current time.
Dates increment by 32768 except when changing month when the increment is 32768 x 2 (65536).
Has anyone seen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Oracle ADF on JBoss: Wrapped Jdbc Connection problem I'm trying to run an application using Oracle ADF Business Components on a JBoss Server. I've maneged to deploy it, but when I try to load the page I get below exception:
java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6 can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can not add '.* " at mapping of IIS I am unable to add .* at extension mapping in IIS (defaultwebsite -> properties -> home directory -> configuration) because it gives the message "Wrong file Extension".
The operating system is Windows 2003 server.
I can add .* at mapping in IIS when the operating system is Windo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Limit file access to specific users in IIS I'm running an ASP.NET web site on IIS 6.0 (Windows 2003), and the site uses "integrated windows authentication". The IWA configuration is not a must (until now), but is configured anyway. The application pool runs as the "Network Service". Also, in web.config, there's the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is Configuration.GenerateSchemaUpdateScript() in NHibernate a good way to manage db schema changes I'm using NHibernate mappings as a defining schema for my app in the development phase and for the schema definition I'm using the NHibernate.Tool.hbm2ddl.SchemaExport() method to generate a createscript.
Now, I have c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Use ruby gem, apt-get,etc. through a proxy with NTLM authentication What solutions are out there for getting through a corporate proxy using NTLM authentication? Anything that isn't a browser fails.
I've tried NTLMAPS, without success.
A: Cntlm works great. Be sure to follow the "Configuration hints" section, it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XPath vs DeSerialization: which one is better in performance for read operations I'm passing small (2-10 KB)XML documents as input to a WCF service. now I've two option to read data values from incoming XML
*
*Deserialize to a strongly typed object and use object properties to access values
*use XPath to access ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: SQL server reporting services: how to stop a report firing when opened We have some SQL server reporting services reports. I didn't write then but I have to take care of them.
These reports fire when opened in the browser, and with the default parameters (search terms and restrictions are blank) they retrieve a lot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: .svn folder is not getting created whenever i do a checkout i tried the following
*
*svnadmin create svn_repos
*svn import my_first_proj file:///c:/svn_repos -m "initial import"
*svn checkout file:///c:/svn_repos
and the command returned
A svn_repos\trunk
A svn_repos\trunk\Sample.txt.txt
A svn_repos\br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Browser links in Flash projector open but stay behind flash app I have a flash projector file that is going on a CD-ROM. One section is just a simple list of links to useful websites. These links were created by adding URLs in the properties box to static text. The projector is running in full screen mode and was ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: T SQL - Eloquent replacement of Correlated Subquery I have a query that is currently using a correlated subquery to return the results, but I am thinking the problem could be solved more eloquently perhaps using ROW_NUMBER().
The problem is around the profile of a value v, through a number of years for an Item. Eac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Java 6 language compared with C# 3.0 language There exists a very good talk about C# vs. Java where H.Mössenböck compares the two languages. That's from 2003, C# 2.0 compared with Java 1.5.
Can be found in German here: http://dotnet.jku.at/
What good resources exist, where actual language versions are compared?
Or m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: (WF) workflow design patterns .net 3.0 I have some workflow to work with in Worflow foundation. I need to follow some workflow design patterns
Some best performances in workflow
A: You can practice you implementation according to your need.
http://www.odetocode.com/Articles/465.aspx
| {
"language": "en",
"url": "https://stackoverflow.com/questions/277736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JDBC - Oracle ArrayIndexOutOfBoundsException I'm getting an Exception while trying to insert a row in oracle table.
I'm using ojdbc5.jar for oracle 11
this is the sql i'm trying
INSERT INTO rule_definitions(RULE_DEFINITION_SYS,rule_definition_type,
rule_name,rule_text,rule_comment,rule_message,rule_condition,rule_a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Localization with xml without compilation? I am looking for the best way to implement a winform with different languages, but i don't want to use the resources files of Visual Studio because you always have to recompile.
I have found the following solution to use XML files without compilation:
http://www.codeproject... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Recurring Payments in PayPal I am trying to use the Recurring payment API offered by PayPal.
I have a scenario which I am not able to address directly. It goes like this.
We have a website where we sell some services. Now the services are charged per user license. A user can buy/cancel user license in between. We wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What are the strongest features of Memcached? In particular what strengths does it have over caching features of Asp.net
A: memcached is a distributed cache -- the whole cache can be spread into multiple boxes. so for example you can use memcached to store session data in cluster environment, so this data is availa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: html onresizeend event, or equivalent way to detect end of resize I'm trying to detect when the onresize event ends in a browser. If I use the onresize event, in Firefox it seems to be fired only once, after the resize event ends, which is exactly what I want. But if I try in IE, the onresize event gets fired many t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to run a winform from console application? How do I create, execute and control a winform from within a console application?
A: It´s very simple to do:
Just add following attribute and code to your Main-method:
[STAThread]
void Main(string[] args])
{
Application.EnableVisualStyles();
//Do some stuff...
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: Avoid trailing zeroes in printf() I keep stumbling on the format specifiers for the printf() family of functions. What I want is to be able to print a double (or float) with a maximum given number of digits after the decimal point. If I use:
printf("%1.3f", 359.01335);
printf("%1.3f", 359.00999);
I get
359.013
35... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "136"
} |
Q: Calling c# function from javascript I want to call a c# function from my javascript function.
I have a link button in my ascx (please see the code below). The problem is that if you press enter in firefox is not working however it is working fine in internet explorer.
<li class="clearfix border_top">
<label for="tit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Input Audio as a Stream in CF 3.5 I googled around and coulnd't really find an answer.
How do I open an audio input device (namely a microphone) as a stream (preferably) on a CE/WinMobile device using Compact Framework?
I looked at WindowsMobile.DirectX, at various classes that contained Audio in their name and noth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to correctly open a FileStream for usage with an XDocument I want to append some nodes to an xml document using Linq2XML. The file in question is being used by other processes and they should be able to read the file while I update it. So I came up with this solution, which obviously isn't the correct way (The m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java XML: how to output the namespace of child elements? I'm using Java's Transformer class to process an XML Document object.
This is the code that creates the Transformer:
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
Transformer tran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using WCF to send a signed Request and receive an unsigned Response I'm working with a .NET dev team who are trying to interface with a web service that uses WS-Security, and although the service requires signed requests it only returns unsigned responses.
The team knows of a way to call the service using WSE, but t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Call C# methods from C++ without using COM Is there a way to create C# objects and call methods from unmanaged C++, but without using COM Iterop? I am looking for something like JNI (but for .Net), where you can manually create the VM, create objects, etc.
A: If you are using C++/CLI then you can interact directly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Functional languages with concurrent garbage collectors? Microsoft's new F# programming language provides the powerful combination of functional programming (first-class lexical closures and tail calls) with an efficient concurrent garbage collector that makes it easy to leverage multicores.
OCaml, Haskell, Erlang a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I a implement DisposeBase abstract class? Is there a catch or hidden problem in using a DisposableBase base class instead of recoding the Dispose pattern on every class?
Why aren't everyone using such a relevant class?
Edits:
*
*I naturally only meant classes that implement IDisposable
*I know it uses up the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compile a version agnostic DLL in .NET Scenario
I have two wrappers around Microsoft Office, one for 2003 and one for 2007. Since having two versions of Microsoft Office running side by side is "not officially possible" nor recommended by Microsoft, we have two boxes, one with Office 2003 and the other with Office 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Get originating port from ActionExecutingContext? Is it possible to get the originating port from an ActionExecutingContext object? If so, how?
A: Yes, look at ActionExecutingContext.HttpContext.Request.Url.Port;
A: use this:
context.HttpContext.Request.Path
OR
context.HttpContext.Request.PathBase
A: ActionExecut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Loading a list on an EJB I have a remote EJB with a method that validates an object (returning true or false). I want to be able to pass it an ArrayList object and have the EJB load it with the errors encountered during validation, while still receiving true/false as result.
How can I do this? So far, I can send it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hyperlink that will open document using DAV protocol? I have a DAV server (Oracle Portal in this case). If I open word and then enter the DAV URL of a document, I'm correctly prompted for username/password and the document is checked out. I can edit it and just click Save to save it back to the server. So far, so go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: script language for flash and c++? I spend hours every week coding my own personal projects.
I have a nice C++ backend. For my next idea, it is small and lite enough to be done in flash. But i want to do it in a scripting language so i can call the code in my C++ projects. What script can i use in flash along with c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write something to .txt log file from .aspx page (c#) This code does not seem to compile, I just need to write something to a small log text file (a new row to end of file).
<%@ Import Namespace="System.IO" %>
void Page_Load( object sender, EventArgs e ){
FileSystem myFileSystem = new FileSystem();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple methods that need to be handled the same way In a piece of C# that I am writing at the moment I need to handle several methods with the same signature in the same way. Also there might be more of these methods in the future. Instead of repeating the same kind of logic over and over I thought up the followin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Templating We're building a text templating engine out of a custom HttpModule that replaces tags in our HTML with whole sections of text from an XML file.
Currently the XML file is loaded into memory as a string/string Dictionary so that the lookup/replace done by the HttpModule can be performed very quickly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why, when I impersonate within a WCF service, can my service not load System.Transactions when I try to run a LINQ to SQL query? I have a WCF service, hosted in IIS 7.0 that needs to run database queries. In order to get the right permissions to do this I am impersonating within the service as follows:
Code
[Operati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Where is the constant for "HttpRequest.RequestType" and "WebRequest.Method" values in .NET? I need to check the RequestType of an HttpRequest in ASP.NET (or WebRequest.Method). I know that I can just use the string values "POST" or "GET" for the request type, but I could have sworn there was a constant somewhere in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: ebay query into mysql? I would like to know if it is possible,
To extract the userid from an ebay page and insert it into mysql as part of an insert statement? Otherwise what would be the best way to do this?
I have files to import, which contain hundred of ebay auction urls, and I must grab the seller id from each ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How/Where to learn laying out Webforms in ASP.NET 2.0+ versus Winforms (VB.NET)? Looking for some direction here as I'm running into some migration problems.
We have a legacy application. The 'infrastructure' is running just fine. Business logic and data access layers written in VB calling SQL Server for the datab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: strtolower on passing a session to a variable, is that legal? Is it alright to do this?
$author = strtolower($_SESSION['valid_username']);
I want to enter all authors into the table as lower case.
A: Yes, that's fine as long as $_SESSION['valid_username'] is set, otherwise you'll get a notice (if your error report... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I run sql server stored procedures in parallel? I want to do something like:
exec sproc1 and sproc2 at the same time
when they are both finished exec sproc3
I can do this in dts.
Is there a way to do it in transact sql?
Or is there a way to do it with a batch script (eg vbs or powershell)?
A: You could cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: In ASP.NET what is the best way to convert a PDF file to HTML? What my users will do is select a PDF document on their machine, upload it to my website, where I will convert into an HTML document for display on the website. The document will be stored in a database after conversion.
What's the best way to convert a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I get PHPUnit MockObjects to return different values based on a parameter? I've got a PHPUnit mock object that returns 'return value' no matter what its arguments:
// From inside a test...
$mock = $this->getMock('myObject', 'methodToMock');
$mock->expects($this->any))
->method('methodToMock')
->wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "164"
} |
Q: Python Argument Binders How can I bind arguments to a Python function so that I can call it later without arguments (or with fewer additional arguments)?
For example:
def add(x, y):
return x + y
add_5 = magic_function(add, 5)
assert add_5(3) == 8
What is the magic_function I need here?
It often happens with f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: Longest running unit tests? How can we find the junit tests in our suite that take the longest amount of time to run? The default output of the junitreport ant task is helpful, but our suite has thousands of tests organized into many smaller suites, so it gets tedious, and the worst offenders are always changing.
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: how to disable default context menu for certain elements in mozilla using Prototype? I'm trying to expand navigation options of the context menu on certain elements (specifically, h1 and h2 tags)
I want to prevent the browser's default action when right-clicking on those elements.
I found nice information at this pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Too much physical memory for an asp.net app? My huge 32-bit web services LLBLGen-based data access application is running alone on a dedicated 64-bit machine. Its physical memory consumption steadily grows up to approximately 2GB when the process releases almost all of the allocated space (up to 1,5GB) and continues... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a Maximum Length for userPrincipalName in Active Directory? I am writing an application that is linked to Active Directory, and I need to store the userPrincipalName in a database table, but I do not know how big the field would need to be.
On MSDN, no Length is given, and neither in RFC 822. Now, before I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Email Notification The company I work for has consultants that work off site. Because of policy we are not allowed to set up email forwarding so these users can receive their email. Obviously this is a problem as these users may miss important email. Can anyone recommend a way that we could inform these users the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add custom column to existing WSS list template I need to use feature stapler to add some text columns to Posts list inside OOTB blog site definition. I plan not to use site columns, but only to add those columns to list (I don't use site columns because I have multiple site collections and there will be on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Algorithm to add two digits to the end of a number to calculate a specific modulus? So, lets say I have a number 123456. 123456 % 97 = 72. How can I determine what two digits need to be added to the end of 123456 such that the new number % 97 = 1? Note--it must always be two digits.
For example, 12345676 % 97 = 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSEclipse Alternatives in Ganymede I've been having a lot of problems with JSEclipse in Ganymede, but I haven't had much luck finding an alternative that's compatible with Ganymede (eclipse 3.4).
All I'm really looking for is code-highlighting. Anyone have any good alternatives, or do I just need to suck it up and g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the functional equivalent of Windows Communication Foundation in Java 6? What is the functional equivalent of Windows Communication Foundation in Java 6?
A: WCF offers several communication options. A nice presentation is this white paper by David Chappel. There the following options are described:
*
*In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to display credits I want to give credit to all open source libraries we use in our (commercial) application. I thought of showing a HTML page in our about dialog. Our build process uses ant and the third party libs are committed in svn.
What do you think is the best way of generating the HTML-Page?
*
*Hard ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Passing Parameter to struts2 component I am attempting to create a struts2 component using freemarker. I created an ftl file with code like this:
<script type="text/javascript" src="${parameters.library?default('')}"></script>
Which is expecting a parameter named library to be passed to the component. If the parame... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Have you tinkered with Rel? I would like to hear opinions or peoples experiences regarding Rel. Is it destined for the dustbin, or is it the next big thing in programming? I haven't tried doing anything with it yet (and it looks like you really can't at this point), but I'm intrigued by a few of the concepts discu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to read structured binary files with Java I have to read a binary file in a legacy format with Java.
In a nutshell the file has a header consisting of several integers, bytes and fixed-length char arrays, followed by a list of records which also consist of integers and chars.
In any other language I would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Are there any MySQL functions to get all rows with with a start or end date that fall between a given start and end date? I have a table of events with a recorded start and end time as a MySQL DATETIME object (in the format YYYY-MM-DD HH:MM:SS. I want to find all events that occur in a specific date range. However, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Invoke Blue Screen of Death using Managed Code Just curious here: is it possible to invoke a Windows Blue Screen of Death using .net managed code under Windows XP/Vista? And if it is possible, what could the example code be?
Just for the record, this is not for any malicious purpose, I am just wondering what kind of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Dictionary or If statements, Jython I am writing a script at the moment that will grab certain information from HTML using dom4j.
Since Python/Jython does not have a native switch statement I decided to use a whole bunch of if statements that call the appropriate method, like below:
if type == 'extractTitle':
ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: displaytag, grouping and blank lines I'm looking for a way to do grouping with displaytag but with the group title separated from the detail. It's probably not all that clear, so here is an example :
If I just add groups to a displaytag table, I end up with something like :
| group1 | item1 |
| | item2 |
| ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remove 'standalone="yes"' from generated XML Do you know of a JAXB setting to prevent standalone="yes" from being generated in the resulting XML?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
A: just if someone else is still struggeling with this problem, you may consider using
marshaller.setProperty(Mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: Best practice for moving live web apps to new servers? I am tasked with moving quite a few web apps including the databases to new servers, they are ASP.NET. I was not the one to create and setup these originally so I must try to figure out what exactly I need to replicate in order to not break anything and so the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to use the unix "find" command to find all the cpp and h files? I know that to find all the .h files I need to use:
find . -name "*.h"
but how to find all the .h AND .cpp files?
A: Paul Tomblin Has Already provided a terrific answer, but I thought I saw a pattern in what you were doing.
Chances are you'll b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/277999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Alternatives to MS project server I manage a small group and I'd keep my work breakdown in project. However, it's difficult to provide my team with an adequate view into the project and ability to report on their progress. I looked at MS Project Server (the sharepoint webpart) but it's an expensive proposition.
Ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to force a control to not pass a click event up the tree? WPF C# Is it possible to set up a Grid or other container control to be sort of an event dam? So that when any events, specifically a left click, that start within it are working their way up that they stop at that control and go no further?
A: PreviewM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to turn on SecureSocketLayer with DirectoryServices.Protocols.LdapConnection I am trying to fix a bug with SSL in a product and noticed that although the code sets SSL to be true, in the next line in the code SSL is still at false. I wrote a unit test for this and the unit test confirms my suspicions.
[Tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Calling an XLL from (unmanaged) C++ I have an XLL Excel addin and now another team wants to use the same functionality in their project (unmanaged C++). Is there a way to interface with this XLL directly from C++?
A: Is you XLL un managed or unmanaged code?
As far as I know, an unmanaged C++ XLL file is in fact a D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way store a date/time for different timezones What's the best way to store timezone information with dates/times in a uniform way so people can enter times from anywhere in the world in their own local time? Other users would then have the ability to view the times in their own local time and the original loca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How-to: Proper redirect with Relative URLs ASP.NET I have an authentication script (CheckLogin.aspx), and if any of the credentials do not match my application will redirect (via Server.Transfer) to the access denied page (forbidden.aspx). Each time my script runs,it gets an InvalidOperationException: Failed to map... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SOAP Client in C# without access to a WSDL-file I'm working with a third party to integrate some of our systems with theirs and they provide us with a SOAP interface to make certain requests and changes in their connected systems. The problem for me is that they do not supply a WSDL-file for me to work against. If I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I set my mouse cursor to the hybrid hourglass and arrow in code? (.NET) I have a timely operation that runs on a background thread. While running, I currently put the cursor in a wait state:
Mouse.OverrideCursor = Cursors.Wait
I just implemented a feature that allows the user to click a "Cancel" button if t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: iPhone image upload in background I'm writing an app with an image upload feature. Right now I'm using NSURL POST like: 125306.
When the app is closed as far as I can tell all of the uploads abort and the threads die. Is there
1) a way to make these upload threads persist when the app is no longer in the foreground... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Free NHibernate helper tools? Are there any free tools to help simplify working with an NHibernate project in .NET 3.5? Primarily, I'm looking for some kind of code and config file generator to automate some of the more tedious parts of working with NHibernate.
A: NHibernate Query Analyzer is a must for constructi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Converting HDD Serial # VB6 code into VB.NET code I've got a cool piece of code taken from a VC++ project which gets complete information of the hard disk drive WITHOUT using WMI (since WMI has got its own problems).
I ask those of you who are comfortable with API functions to try to convert this VB6 code into VB.NE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does Application.ExecutablePath return different values depending on the test runner? I'm trying to see if there's a way to get a consistent unit test result across multiple test runners. The current situation is that we have a test assembly where 4 of the tests pass if you run them in NUnit GUI, but fail if you ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I add a spotlights to an image I have an image that I want to show some 'spotlights' on, like they do on TV. The rest of the image should be darker than the original, and the person that I'm spotlighting should be normal. I have the x,y and radius of the spotlight, but I'm not sure how to change the brightn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the CPU Usage in C#? I want to get the overall total CPU usage for an application in C#. I've found many ways to dig into the properties of processes, but I only want the CPU usage of the processes, and the total CPU like you get in the TaskManager.
How do I do that?
A: You can use WMI to get CPU percent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "245"
} |
Q: Filewatcher created event I am monitoring a folder with a .net filewatcher for certain kind of files(*.mbxml). I am using the created event of filewatcher for it. Once the created event fires I have to move this file to another folder. The problem with this approach is that the created event is fired as soon as the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Resolving a Git conflict with binary files I've been using Git on Windows (msysgit) to track changes for some design work I've been doing.
Today I've been working on a different PC (with remote repo brian) and I'm now trying to merge the edits done today back into my regular local version on my laptop.
On my laptop,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "559"
} |
Q: OpenOffice spreadsheet import into HSQLDB OpenOffice ships with HSQLDB. Is it possible to easily import the contents of an OO spreadsheet into the built in database? An added nice to have would be to include the formatting of the cell contents. ie. colors, line feeds, etc.
This question has gone unanswered so I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does one copy a dialog resource from one project to another in Visual Studio 6.0 or Embedded VC++ (eVC)? I've got two branches of code. 1 has a dialog box that the other doesn't, but because of politics the dialog box wasn't moved into the newest branch. Now they want it in...
So is it possible to copy a dialog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Javascript to sort contents of select element is there a quick way to sort the items of a select element?
Or I have to resort to writing javascript?
Please any ideas.
<select size="4" name="lstALL" multiple="multiple" id="lstALL" tabindex="12" style="font-size:XX-Small;height:95%;width:100%;">
<option value="0"> XXX... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How can I create or read OpenOffice spreadsheets from Perl? What is a good way to create and read an OpenOffice spreadsheet in Perl?
A: I used OpenOffice::OOCBuilder for creating large color-coded tables. Liked it very much.
For simpler tasks, I often use plain CSV format that is readily opened by any spreadsheet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Free OpenMosix replacement? I was shocked to learn that OpenMosix is closed. Can you suggest any similar free tool for linux.
For those who don't know, OpenMosix is
a software package that turns networked computers running GNU/Linux into a cluster. It automatically balances the load between different nodes of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to group multiple result sets in a report? I am using ActiveReports with ASP.NET but I think answer for any similar reporting component will do.
I have two resultset to merge and show in a single report, like:
Table 1:
Name Job Start End
Jack Some service 1992 1997
Jack Some Sales Exp 1998 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Webcam library for C on Linux? Is there any c library to get a video from the webcam on linux?
A: v4l2 official examples
What you get:
*
*./v4l2grab: capture a few snapshots to files outNNN.ppm
*./v4l2gl: show video live on a window using an OpenGL texture (immediate rendering, hey!) and raw X11 windowing (plus ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: User Control in Folder Home Page Doesn't Initialize I am programming Outlook 2003 add-in using Visual Studio 2008.
Add-in uses embedded user control in folder's home page, like as it was
recommended. Here is HTML code for folder's home page:
<html><head><style type="text/css">body{overflow: hidden}</style></head>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Combine LocBaml and Resources in single satellite assembly Its my understanding that the recommended approach to localization in WPF is to use the LocBaml tool to extract the localizable items into e.g. a csv file, translate the items into the desired language and regenerate a new sattelite assembly from this csv fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to Force Javascript to Execute within HTML Response to Ajax Request We're using Prototype for all of our Ajax request handling and to keep things simple we simple render HTML content which is then assigned to the appropriate div using the following function:
function ajaxModify(controller, parameters, div_id)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What simple syntax can be used for rich text? I want in an application with a simple text input, enriched with some marks to include formatting or semantic labeling. I want the syntax as easy as possible and I want to include self-defined labels.
Example:
[bold]Stackoverflow[/bold] is a [tag]good[/tag] resource for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET: Impersonate against a domain on VMWare I need to impersonate myself as a domain user in a ASP.NET application running on VMWare machine. Since the VMWare machine is not itself in the domain, ASP.NET is unable to resolve the user token (specified in web.config). Is there a way to do that?
Thanks in advance,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is system.globalization And what's the difference between it and localization and to spice things a bit , what is the best approach for globalization in Asp.net Mvc App
A: Globalization is about producing a map from strings or identifiers to translations in other languages, while Localization is about using t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: .NET set image display size I am using some custom controls one of which is a tooltip controller that can display images, so I am using th ebelow code to instantiate it:
Image newImage = Image.FromFile(imagePath);
e.ToolTipImage = newImage;
obviously could inline it but just testing at the moment. The trouble is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.Net Client Events on DropDownList? Is there a client event that I can use for when a DropDownList's data has been loaded/bound onto the control? I need to trigger event on their side when this happens.
Basically, I am trying to lock out the controls while the data is being loaded as if there is a slowdown (not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278140",
"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.