text stringlengths 8 267k | meta dict |
|---|---|
Q: Community Server the new version do you recommend it? can you integrate new modules to it? I am planning to use community sever for one of our projects, i used it in the past but we had a lot of problems customizing it and understanding how things work, im affraid to get into that again, and i would like to add some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem using NSURLRequest to POST data to server I create an NSURLRequest to post my data in the iPhone application to a server to proceed the PHP script. My PHP script is look like this.
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$link = mysql_connect("localhost", "fffasfdas","Nfdsafafs")... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Problem in parsing .plist file I've one plist file and I want to parse it and copy it's content into NSArray,and code that I am using for that is.
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
NSString *documentsPath = [paths objectAtIndex:0];
NSString *fooPat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Alesis QS MIDI Sysex Data Conversion My aim is to convert a stream of byte code sent from an Alesis synthesizer to a human readable format. I need to be able to take a "Program Dump" and read the 10 character string that makes up the patch name.
In order to receive the "Program Dump" from the synth, I sent the synt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting started with Shell Scripting? I'm not familiar with shell scripting, so I'm not sure how to do it or if it is possible. If you can give me links or advice, that would be great.
What I want to do is:
*
*Create a file, simple text file
EX:
param1 (RANDOMVALUE)
Where randomvalue is a random number generated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which are the most useful resources to learn to draw the UML class diagram in Visio? I am stuck at properly aligning the generalization arrow between the classes. I could not make them appear as in the UML books.
A: Visio UML stencils are not very good and is very frustrating to work with them. Have a look at http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Retrieving product information from an unmanaged executing application in C#/.NET In C#, it is possible to retrieve assembly related information like product name, version etc using reflection:
string productName = Assembly.GetCallingAssembly().GetName().Name;
string versionString = Assembly.GetCallingAssembly().Get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: connecting SQL SERVER 2005 from Oracle i am running Oracle and SQL SERVER 2oo5 on the same server.
Plstform win 2003 Enterprise.
i have created a System file DSN.
Make the entry in listener.ora and tnsnames.ora.
but when i m tring to ping my dsn system dont responds. and when i m trying to create a database link us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keycodes for arrow keys Can anyone please help me to get the keycodes for the arrow keys in c# .net keypress events? Can you help me to get out of this check point?
best regards,
Arun.
A: http://msdn.microsoft.com/en-us/library/system.windows.forms.keys.aspx
Keys.Up, Keys.Left, Keys.Right, Keys.Down.
A: Do you mea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why can't I call a public method in another class? I have got these two classes interacting and I am trying to call four different classes from class one for use in class two.
The methods are public and they do return values but for some reason there is not a connection being made.
The error I get when I try is: "An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: SQL Server Database File and WCF I have a WCF Service that exposes a method GetCustomers(). The internals of the method uses a Data Layer along with a Business Layer to return a List of Customers. Currently I am using an SQL Server Database file saved on the server. Everything works fine on my local network but I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any web-based, standalone (no-install), or no-admin installer compilers for C# I'm looking to spend a bit of my lunch break each day teaching myself some C#. I have access to some books on the subject via my employer-paid Books24x7 subscription, but I have no way of running code while I'm at work.
My work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How much logic should you put in the UI class? I'm not sure if this has been asked or not yet, but how much logic should you put in your UI classes?
When I started programming I used to put all my code behind events on the form which as everyone would know makes it an absolute pain in the butt to test and maintain. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you change directories using FtpWebRequest (.NET)? Can someone tell me how to change directories using FtpWebRequest? This seems like it should be an easy thing to do, but I'm not seeing it.
EDIT
I just want to add...I don't have my heart set on FtpWebRequest. If there's a better (easier) way to do FTP in .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: printing floating point numbers in D It's been quite a while since I last used D Programming Language, and now I'm using it for some project that involves scientific calculations.
I have a bunch of floating point data, but when I print them using writefln, I get results like: 4.62593E-172 which is a zero! How do I u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What license do I need to use gSOAP in a commercial product? I'd like to use gSOAP in a product which will be distributed commercially. The use I have in mind is what I suspect is a pretty typical workflow—generating a header using wsdl2h, consuming the header with soapcpp2, and then calling the functions generated ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Is this broken double checked locking? Checkstyle reports this code as "The double-checked locking idiom is broken", but I don't think that my code actually is affected by the problems with double-checked locking.
The code is supposed to create a row in a database if a row with that id doesn't exist. It runs in a mu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Safe To Modify std::pair::first in vector of pairs? I'm currently working on a DNA database class and I currently associate each row in the database with both a match score (based on edit distance) and the actual DNA sequence itself, is it safe to modify first this way within an iteration loop?
typedef std::pair<int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GPS signal cleaning & road network matching I'm using GPS units and mobile computers to track individual pedestrians' travels. I'd like to in real time "clean" the incoming GPS signal to improve its accuracy. Also, after the fact, not necessarily in real time, I would like to "lock" individuals' GPS fixes to positio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to use Mono static compilation on Windows? I was wondering if it is possible to use Mono static compilation on Windows. If so, what should I do?
A: To statically compile your code, you use the tool `mkbundle'.
The mkbundle tool requires a cygwin setup (it needs the assembler, linker and compiler) t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: I Want To Optimally Check Defined Constants in PHP In PHP, depending on your error reporting level, if you don't define a constant and then call it like so:
<?= MESSAGE ?>
It may print the name of the constant instead of the value!
So, I wrote the following function to get around this problem, but I wanted to know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How come MD5 hash values are not reversible? One concept I've always wondered about is the use of cryptographic hash functions and values. I understand that these functions can generate a hash value that is unique and virtually impossible to reverse, but here's what I've always wondered:
If on my server, in PHP I pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "102"
} |
Q: Php function to determine if a string consist of only alphanumerical characters? Is there a Php function to determine if a string consist of only ASCII alphanumerical characters?
Note: I'm sorry if the question sounds dumb to some, but I couldn't easily find such a function in the Php manual.
A: Try ctype_alnum
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strategy for large scale refactoring I'm currently working in a piece of code where both logic and data access are present in the GUI classes. Obviously, I would like to improve on this situation.
The current structure is basically:
*
*Big ball of mud
The ultimate goal is to achieve a DDD-like structure:
*
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: SQL Division using 'not exists' in mysql I have the following table:
'committee' table
commname profname
========================
commA bill
commA jack
commA piper
commB bill
commB piper
and I am trying to find the professors who are in every committee that 'piper' is in
(answer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How To: Change Image visibility on rdlc export I Have an Image in rdlc report.
in the report i set visibility to false
I want that when I Export to PDF or EXCEL
To set the Image visibility to true.
*
*How do I do This?
*Is The a way to Catch the Export Event ?
*I don`t want to create a custom 'export'.
Thanks... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to apply a line wrap/continuation style and code formatting with css When presenting preformatted text on the web (e.g. code samples), line wrapping can be a problem. You want to wrap for readability without scrolling, but also need it to be unambiguous to the user that it is all one line with no line break.
For... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Setting LinqDataSource bound DropDownList using URL querystring This is a puzzle for me, I am able to get three DropDownLists to behave like a cascade (it fetches the correct data) but where I run into problem is where I try to set the value for the dropdownlist based on the value of the querystring.
Only the firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does DB2 have an "insert or update" statement? From my code (Java) I want to ensure that a row exists in the database (DB2) after my code is executed.
My code now does a select and if no result is returned it does an insert. I really don't like this code since it exposes me to concurrency issues when running in a m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: I have an array of integers, how do I use each one in a mysql query (in php)? I have an array full of random content item ids. I need to run a mysql query (id in the array goes in the WHERE clause), using each ID that's in the array, in the order that they appear in the said array. How would I do this?
This will be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Creating a Windows service with user notification in C#? I want to create Windows service in such a way :
-> It takes input database information ...
-> at completion of service it notifies user for completion of process.
How can I do this with Windows service in C#.Net?
Thanks
A: I think you are asking three questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to configure binlog to get User-Information? I need to get an auditrail in mysql; is there a way to configure the binary log to get not only the changes, also the user, (connection) who made this change? Or do I have to use mySQL Proxy?
TIA
Peter
A: I don't think its possible to have the binlog show connection ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to restrict NULL as parameter to stored procedure SQL Server? Is it possible to create a stored procedure as
CREATE PROCEDURE Dummy
@ID INT NOT NULL
AS
BEGIN
END
Why is it not possible to do something like this?
A: You could check for its NULL-ness in the sproc and RAISERROR to report the state back to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Timeout period in Webservices I need to change the timeout period of my webservice which was invoked by .net console application.
How to change the timeout period.
Its not hosted in IIS. Its single WSDL. I dont want to write any code. I need to change it in app.config
A: Most web services eventually derive from Web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing Workflow History Autocleanup I am facing a rather peculiar problem here. We have an OOTB approval workflow, which logs all the workflow history into a workflow history list. This list gets purged every 60 days. To increase this time period for which the workflow history is retained, I googled around and fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why we can not have Shared(static) function/methods in an interface/abstract class? In .net we are not allowed to have shared function/methods in abstract classes and interfaces.
Why they are not allowed ?
Is this same in other languages. like Java ?
What can be the potential problem if the Shared methods are allo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get username without domain In an aspx page I get the Windows username with the function Request.LogonUserIdentity.Name. This function returns a string in the format "domain\user".
Is there some function to only get the username, without resorting to the IndexOf and Substring, like this?
public static string ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: jQuery $.get() charset of reply when no header is set? I just recently installed Winamp Song Requester wich is a Winamp web song requester plugin with a built in minimal HTTP CGI Server.
What the plugin does is that it runs a web server, serves a html page with some special variables wich it replaces with actual dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Parsing a string for nested patterns What would be the best way to do this.
The input string is
<133_3><135_3><116_2>The other system worked for about 1 month</116_2> got some good images <137_3>on it then it started doing the same thing as the first one</137_3> so then I quit using either camera now they are just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I close a firefox tab from a greasemonkey script? I have a greasemonkey user script with this single line of code...
window.close();
but firefox does not allow a user script to close a window (as reported by an error message in the error console)
Is there a work around to this problem?
A: By now some of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Re-Generating Scaffold Is there any way to re-generate views from newly updated model?
A: I had the same need, I just backed up some changes and did a destroy/generate, Take care, destroy deletes Everything related to the Model :
rails destroy scaffold Model -f
before I generate again.
rails generate scaffold Mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C# read a JPEG from file and store as an Image How can I read a JPEG on my filesystem and store it as a System.Drawing.Image within my C# code?
A: Image i = Image.FromFile("image.jpg");
If you need more information, here is the link.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/330346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Which On-Screen Keyboard for Touch Screen Application? I'm developing an application in C++ that's partially driven by touch-screen on Windows XP Embedded. Some text entry will be necessary for the user. So far we've been using the standard Windows On-Screen Keyboard (osk.exe), but there are two main problems:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How would one make Python objects persistent in a web-app? I'm writing a reasonably complex web application. The Python backend runs an algorithm whose state depends on data stored in several interrelated database tables which does not change often, plus user specific data which does change often. The algorithm's pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are Databases and Functional Programming at odds? I've been a web developer for some time now, and have recently started learning some functional programming. Like others, I've had some significant trouble apply many of these concepts to my professional work. For me, the primary reason for this is I see a conflict... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "133"
} |
Q: long long implementation in 32 bit machine As per c99 standard, size of long long should be minimum 64 bits. How is this implemented in a 32 bit machine (eg. addition or multiplication of 2 long longs). Also, What is the equivalent of long long in C++.
A: As everyone has stated, a 64-bit integer is typically implem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: jython date conversion Given a string as below, I need to convert:
1 Dec 2008 06:43:00 +0100
to
MM/DD/YYYY HH:MM:SSAM
using jython what is the best way to do this?
A: I don't have jython handy, but I'd expect something like this to work:
import java
sdf = java.text.SimpleDateFormat
fmt_in = sdf('d MMM yyyy HH:mm:s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Uses of KeyedByTypeCollection in .Net? While checking out the generic collection in .net i found about KeyedByTypeCollection. Although I worked with it and got to know how to use it, I did not get in which scenario it will be useful.
I read through ServiceProvider, cache etc. done with generics without cast, but cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Managing ABAP Source Code in Source Control Our product currently spans a large number of technologies, including Java, PL/SQL, VB.Net and ABAP. We have a fairly mature source control and build system set up for all of the languages except ABAP, which is still in the stone ages. Since SAP has a build system set up w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Restart ASP.NET application when folder contents change I'm writing a web application that will have "plugins". The plugins will be .DLL files which will export their functionality through predefined interfaces 'n stuff. All the .DLL files are in a folder called "Plugins", and the ASP.NET application loads them all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Markdown in outlook Because this is not the kind of company where wiki's are accepted, we tend to do a lot of communication through outlook. Sending code snippets through it is painfull.
Is there some way to get the markdown thing we have here, but in outlook?
A: Since Outlook uses Word as an email editor (Outlook ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: DNS problem, nslookup works, ping doesn't I am setting up a development server in my flat. I have set up an Ubuntu DNS server on it and have added the zone weddinglist (just weddinglist - no TLD. It's just an internal domain.)
This works fine on my Ubuntu laptop.
On all my Windows PCs (Vista and XP) I get the follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: T-SQL: How to make cell-values unique? If I have a table where the cells in a column should not have the same values, how do I check this and update? (I know I can set constraints in the settings, but I don't want to do that.)
Say the column name is called unique hash name and contains
Peter
Peter
Peter
Dave
Dave
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I disable SOP (Same Origin Policy) on any browser for development? I want to develop JavaScript on my Windows machine. Do you know a browser where I can turn off Same Origin Policy so I can develop locally? Firefox would be optimal.
Or if you know a proxy I could use for a SOAP/WSDL site it would be great too.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How do I handle click events in a data bound menu in WPF I've got a MenuItem whos ItemsSource is databound to a simple list of strings, its showing correctly, but I'm struggling to see how I can handle click events for them!
Here's a simple app that demonstrates it:
<Window x:Class="WPFDataBoundMenu.Window1"
xmlns="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Convert .cs to .dll How can I compile a .cs file into a DLL?
My project name is WA. In my bin folder after the compilation, I found:
*
*WA.exe
*WA.vshost.exe
*WA.pdb
A: Are you using Visual Studio?
If you create a Class Library project in VS, add your .cs file and then compile the project, the output will be a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET ListView select and highlight line through checkbox I am trying to get an ASP.NET 3.5 ListView control to select and highlight lines through checkboxes displayed in the first column. If I use an asp:LinkButton instead of a checkbox, the line selection is supported automatically through the LinkButton's prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I determine the local machine's IP addresses from Perl? Is there a clean and OS independent way to determine the local machine's IP addresses from Perl?
So far I have found the following solutions:
*
*parse the output of ifconfig and ipconfig (hard, different windows versions have different ipconfig outpu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to get battery status? How do I get the battery status on an iPhone?
A: Iphone SDK 3.0 beta supports this.
A: UIDevice *myDevice = [UIDevice currentDevice];
[myDevice setBatteryMonitoringEnabled:YES];
float batLeft = [myDevice batteryLevel];
int i=[myDevice batteryState];
int batinfo=(batLeft*100);
NSLog(@"B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: c# why can't a nullable int be assigned null as a value Explain why a nullable int can't be assigned the value of null e.g
int? accom = (accomStr == "noval" ? null : Convert.ToInt32(accomStr));
What's wrong with that code?
A: Another option is to use
int? accom = (accomStr == "noval" ? Convert.DBNull : Convert.To... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "142"
} |
Q: What are the major benefits of SQL Server 2005/2008 compared to SQL Server 2000? One of our clients is upgrading their servers because the old machines can't handle the load of the database anymore. They have been using sql 2000 for the last 6 years and the db has grown to hold a few GB of data.
Will it be worth upg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to create ContextMenuStrip in C# which items are images? I want to create context menu in C# which items are images of different heights and widths.
Main problem I don't know how to solve is how to set width and height for menu items and context menu.
If autosize for menu items is enabled, then heights of all me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to save a ordered List to the Database while keeping the ordering I was wondering if anyone has a good solution to a problem I've encountered numerous times during the last years.
I have a shopping cart and my customer explicitly requests that it's order is significant. So I need to persist the order to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: UI components for touch screen winforms applications? I have seen this question:
Are there any decent UI components for touch screen web applications? and have allmost exact the same question but Im focused on winforms.
I working on an application that is not primary made for using with a touch screen, but now I se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Join collection of objects into comma-separated string In many places in our code we have collections of objects, from which we need to create a comma-separated list. The type of collection varies: it may be a DataTable from which we need a certain column, or a List<Customer>, etc.
Now we loop through the collection... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How do I test connectivity to an unknown web service in C#? I'm busy writing a class that monitors the status of RAS connections. I need to test to make sure that the connection is not only connected, but also that it can communicate with my web service. Since this class will be used in many future projects, I'd l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: C++ Constructor coding errors I just stumbled across this bug in some legacy code:
class MyAPIHandler
{
private:
int handle;
public:
void MyApiHandler() // default constructor
{
handle = 42;
};
};
It compiles fine, with no warnings - but the behaviour wasn't what I intended, becaus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to resolve this VC++ 6.0 linker error? This is a Windows Console application (actually a service) that a previous guy built 4 years ago and is installed and running. I now need to make some changes but can't even build the current version! Here is the build output:
--------------------Configuration: MyApp - Win3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Blocking version of System.IO.Stream.Read(byte[], int, int) I'm using System.IO.Stream.Read(byte[] buffer, int offset, int count). Is there an alternative to that method (or a property to set) so that the method won't return until all count is read (or end of stream is reached)? Or should I do something of like this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to recognize fax numbers? What should be the best way to recognize that a number is connected to a fax without actually sending faxes around ?
I suppose that a short phone call can be made: the goal is to determine if a number that is declared as a fax line is really a fax line, working and available.
A: If you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does the registry value for the outlook(2003) msgfile extension stand for? If you want to open an msg Email file with the extension .msg, Outlook 2003 will be started with some parameters. Therefore you can find the following registry keys:
HKEY_CLASSES_ROOT\msgfile\shell\Open\command\(standard)
HKEY_CLASSES_RO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Change dynamically NavigateUrl HyperLinkField In my code i create a HyperLinkField object. Depending on a database field value, i want to set the NavigateUrl property. This is my problem, i don't know how.
With:
objHF.DataNavigateUrlFields = new[] { "id", "Stype" };
i get my database field. Now i want to check t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between selectitem and selectitems tags What is the difference between the selectitem and selectitems tags in jsf?
A: The difference is exactly what you would expect. The selectitem tag adds a single item to the HTML list while selectitems adds multiple items.
From JSF Core Tag Reference:
SelectItem:
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Cruise Control and PHP projects I'm looking for a complete solution to a automated "building" and testing of PHP application. I came across PhpUnderControl, a solution for running automated application builds created around Cruise Control.
Unfortunately PhpUC is still in it's early stages of development and I can't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Setting the iPhone keyboard language I'd like the iPhone virtual keyboard to appear pre-set to a particular language (Russian for example) when the user taps a UITextField. Is there a way to do this in Cocoa code?
A: This is a user defined setting and can not be messed with by the programmer, unfortunately.
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: error outputting html with javascript I have this php code, with which I am trying to generate a popup window that will contain the contents of a html file, however after adding in the script tags, no html is displayed. I tried echoing out $row2, but the word array is printed to the screen and nothing else.
<?php
se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ajax architecture question I have a page with 3 layers, one for navigation, one for database records and one for results. When I click on a database record, the results are displayed in the result layer via ajax. For navigation, the links will simply be different queries. I am wondering if it would make sense to hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Backup and disaster management plans for mysql database I've got a multi-user application having some critical data of the users. I am working on the backup and disaster recovery plan for the application..
Would like to know some best practices regarding this..
Thanks.
A: Note: you may want to include failover in y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Java Statistics Package? (Markov Chains and advanced distributions) I'm having trouble searching for a decent Java library that provides Markov chains, and other advanced distributions (as in, statistics).
I've found http://sourceforge.net/projects/hydra-mcmc/ on source forge, and it looks somewhat useable, but do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Using vim Sessions Only With GUI? My usage-scenario may seem a bit unusual, but here it is: When using vim (it's one of about 4 different editors I use regularly), I use it in two different situations. The first is via the GUI, in which I'll have multiple buffers and have some settings different than when I use it f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XSLT, XPath and InStr Is there a way to find a node matched on part of a value.
If I have the following:
<competition id="100" name="Barclays Premier League"/>
<competition id="101" name="CocaCola Championship" />
<competition id="102" name="CocaCola League 1" />
Given the string "Premier League" or even "Prem", ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: DataBound DropDownList in DataGrid - order of binding I have a DataGrid that looks like this (slightly simplified here):
<asp:DataGrid ID="grdQuotas" runat="server" AutoGenerateColumns="False">
<HeaderStyle CssClass="quotas-header" />
<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CherryPy for a webhosting control panel application For quite a long time I've wanted to start a pet project that will aim in
time to become a web hosting control panel, but mainly focused on Python hosting --
meaning I would like to make a way for users to generate/start Django/
other frameworks projects right from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Application_BeginRequest for url rewriting Up till now we've been rewriting URL's using a custon 404 page: the url would not map to any file in the site, and we configured the IIS to send 404 error to a aspx page which redirected those url's to the correct URL.
Now we want to stop using redirects, so after rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is itemStateChanged on JComboBox is called twice when changed? I'm using a JComboBox with an ItemListener on it. When the value is changed, the itemStateChanged event is called twice. The first call, the ItemEvent is showing the original item selected. On the second time, it is showing the item that has been jus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: zend framework stack trace Is there a way to make stack trace to display the whole generated SQL statement when there is an error instead just the first few characters of it?
This is what it currently displays
...\Zend\Db\Adapter\Pdo\Abstract.php(220): Zend_Db_Adapter_Abstract->query('UPDATE "diction...', Array)
.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Changing IIS6 Site Home Directory with Powershell I'm trying to change a site's home directory using powershell. This is what I have so far, but it isn't saving the changes...
$server = "localhost"
$siteName = "mysite"
$iis = [ADSI]"IIS://$server/W3SVC"
$site = $iis.psbase.children | where { $_.keyType -eq "IIsWebSe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I trigger a callback when a NSAnimationContext ends? I have an animation which moves some views around. When this animation completes I want the window to recalculate the keyview loop. My code is simmilar to the follow mock code:
[NSAnimationContext beginGrouping];
[newView setAlpha: 0.0]; //hide newV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL find non-null columns I have a table of time-series data of which I need to find all columns that contain at least one non-null value within a given time period. So far I am using the following query:
select max(field1),max(field2),max(field3),...
from series where t_stamp between x and y
Afterwards I check... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Programming language where you can refer to a array element by . (dot) In C# language when you refer to an array element you can write:
myclass.my_array['element_name'] = new Point(1,1);
I think about refering to a element with name element_name by using dot in place of backets:
myclass.my_array.element_name = new P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asp.Net ListView how to delete a row without deleting from datasource Through CommandName="Delete" I try to delete a line from the ListView control but not from the datasource. On Pressing Delete I expect the webpage to reload and show me the updated ListView(with one line deleted). But nothing changes, the ListView... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you disable caching on Modal dialogs in IE? We have implemented a popup window as a modal dialog using the IE method:
window.showModalDialog('...aspx')
The target of the popup window is itself an ASP.Net web page.
Assume for the following steps that the popup has never been launched:
*
*Launch popup.
*Pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: PowerShell based database synchronisation using a binary file I have written a database application using a binary file as storage. it is accessed via powershell cmdlets.
You can put information into the database using the put- and you can read information using get-.
The problem is synchronisation. What is the best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Form Submits same checkbox values on subsequent submit action in MVC I have followed the suggestion in this question...
[How to handle checkboxes in ASP.NET MVC forms?
...to setup multiple checkboxes with the same name="..." attribute and the form behaves as expected the FIRST time its submitted. Subsequent submiss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RBuf8 to char* in Symbian C++ I am downloading a text string from a web service into an RBuf8 using this kind of code (it works..)
void CMyApp::BodyReceivedL( const TDesC8& data ) {
int newLength = iTextBuffer.Length() + data.Length();
if (iTextBuffer.MaxLength() < newLength)
{
iTextBuffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ::Base part meaning in ActiveRecord::Base What does ::Base part mean in Person < ActiveRecord::Base class declaration?
I'm new to ruby and from what I've gathered so far, Person < ActiveRecord should be used.
Thank you.
A: in Ruby, :: accesses static class or module constants. ActiveRecord::Base indicates that the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Authorize proxy access in code if customer is using Microsoft ISA Server my code is providing an access to our web service.
WebProxy proxy = new WebProxy(ProxyURL, ProxyPort);
proxy.UseDefaultCredentials = false;
NetworkCredential nc = new NetworkCredential( ProxyLogin, ProxyPassword);
proxy.Credentials = nc;
myWebS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Subversion in a single picture Does anybody know good illustration for basic Subversion usage? Something like images in this directory: http://www.ivy.fr/mercurial/ref/v1.0/ (they are for Mercurial), single image illustrating most common actions.
A: That one is more detailed (From Subversion (svn) quickstart):
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I create a schedule for n-pastors visiting n-churches? I want to make a schedule for many pastors. The conditions are:
*
*Every month, each pastor must must go to another church,
*The pastor must not go to same church where he came
*In 1 year he must go to 12 different churches
*There is 13 churches an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: multiple search criteria I'm using the following query, but I currently have to enter a value in every parameter for the query to work. Is there a way of making the parameters optional, so that 1 or more values will return a result?
SELECT * FROM film
WHERE day LIKE '%day%'
AND month LIKE '%month%'
AND year LIKE '%y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.