text stringlengths 8 267k | meta dict |
|---|---|
Q: How can I get a JsonResult object as a string so I can modify it? I am using the FlexiGrid jQuery plug in and I need to get a JSON object back form my MVC App, simple enough if the FlexiGrid took just the object but I need to add a few items to the response string for it to work properly with FlexiGrid.
So here is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the "SDK vs. 'bits on the wire'" debate about? There appears to be some debate about "the divide is between wanting an SDK and wanting to know the underlying protocol" (see http://www.tbray.org/ongoing/When/199x/1999/08/18/BitsOnTheWire).
I don't really understand what this is referring to, or why they are m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Simple way to interpolate between points in 3D space to form a smooth surface I'm trying to come up with a simple and efficient way to create a smooth surface which intersects a number of given "sample" points.
For any X,Y point on the surface, I identify up to 4 sample points in each of the 4 directions (the next h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is there any function to add space in PL/SQL In T-SQL, SPACE() function is used to add spaces to a string. For e.g.
@s = 'He' + space(5) + 'llo'
Output
He llo
So is there any function in PL/SQL that is equivalent to SPACE()?
Thank you.
A: Jeffrey using rpad(' ',n,' ') gives n+1 spaces
select RPAD('A',3,'-')|... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the route to catch the default page? I don't want to use the default route that vs.net creates:
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Managing multiple versions in cruise-control, team city, etc In my shop (as I expect it is in most), you have multiple releases of different software components (let's call them foo-client and bar-service). In my cc.net configuration, I currently have one "project" for foo-client at trunk, one project for foo-clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to join DML statemens in an object command's CommandText For taking data from SQL Server database, I can use the code as below
Dim sql As String = "SELECT emp_id, emp_name FROM emp; SELECT dep_id, dep_name FROM department;"
Dim da As New SqlClient.SqlDataAdapter(sql, connString)
Dim ds As New DataSet("Data")
da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Declare a dictionary inside a static class How to declare a static dictionary object inside a static class? I tried
public static class ErrorCode
{
public const IDictionary<string, string> ErrorCodeDic = new Dictionary<string, string>()
{
{ "1", "User name or password problem" }
};
}
But th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "112"
} |
Q: MVC contraint for anything that is only numeric I need help with a constraint:
Constraints = new RouteValueDictionary(new { filename = @"" })
It has to be only numeric (no letters, slashes etc).
A: I'm not sure I understood the question, but as far as I know, you can simply provide regular expressions in the Const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get the Node value from XML How do I use XPathNavigator.Evaluate ( or other methods in XPathNavigator) to obtain the ISBN value for the following xml input?
<?xml version="1.0"?>
<!-- a fragment of a book store inventory database -->
<bookstore xmlns:bk="urn:samples">
<book genre="novel" publicationdate="1997" bk:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reporting Services - Percentages in a Matrix Reporting Services 2000 SP2
I've got a matrix displaying the number of employees
Business1 Business2 Business3
StartBefore99 9 14 4
StartAfter99 30 20 34
I'd like to display percentages e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linux kernel /proc FIFO/pipe I'm currently trying to create a kernel module that will produce data based on kernel events and push them to a file. After reading that this is bad (and I agree), I decided it would make more sense to have the data in a /proc file that a user program could pull from when necessary. Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Crystal Reports for VS 2008 - "The user function manager DLL (ufmanager.dll) could not be found." StackOverflow, you're my only hope!
I am unfortunate enough to have inherited an ASP.NET 3.5 application roughly 3/4 in development. This project uses Crystal Reports Basic for VS 2008 to generate a PDF file from a data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When logging when is an error fatal? In logging frameworks like log4j & log4net you have the ability to log various levels of information. Most of the levels have obvious intentions (such as what a "Debug" log is vs. a "Error"). However, one thing that I have always been timid on was classifying my logging as "Fatal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Annoying vim (un)indent rules When editing PHP code (I'm not sure if it's specific to that language) and I create a new line in the middle of comma-separated lists that span multiple lines, the indent rules always unindent the line I'm leaving. Here's a video of it. This happens in arrays, function argument lists, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Should a beginning PHP programmer consider frameworks? I'm a complete beginner when it comes to programming. I'm taking a stab at PHP, and have seen how powerful the frameworks can be. But should I even consider trying to work with a framework until I have a strong grasp of PHP itself?
Note: I'd most likely be using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Piecing together 2D images through PyOpenGL I am trying to cobble together a scene that basically consists of:
*
*A 2D image of the earth (think NASA satellite photography) that has been rotated into a view similar to this and,
*Cylindrical tubes that I want place at specific lat/lon coordinates.
I have manage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to object initialize in PHP and then what function do I make within the class which runs automatically? hi i forgot the code which in a sample class you have to add so that it runs automatically?
is it wakeup or something?
like so:
class something {
function automaticxxx_something_which_runs when class is creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Web reference in WCF In WCF if we use webreference in the client project additional argument called "IsSpecified of bool" is automatically added for each of the argument that written in the Service.
Why it was happening?
A: This property is added to the proxy class for any types that can be ignored during serializa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is SSL and how does it relate to HTTPS? What is SSL and how does it relate to HTTPS?
A: HTTPS: (RFC 2818) is for providing secure communication. It is an application layer protocol on TCP/IP stack (similar to HTTP).
SSL: It is a layer in TCP/IP Stack between Application layer and Transport layer. It mentions c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: ANSI 92 Recursive SQL Statement required I am translating SQL Server SQL Statements into their ANSI generic equivalent at present, and am stuck with a recursive statement using a WITH statement.
For the sake of concentrating on the issue, I'll simplify the issue as follows
If I have two tables
*
*ReportingUnit
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is a good pricing model for Windows Azure? Windows Azure looks like a promising cloud platform. The big unknown right now is the pricing model. Microsoft says that they are still working on that, but it will be competitive. What do you think would make a good pricing model?
Let's hope that Microsoft will t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NSInvocation for Dummies? How exactly does NSInvocation work? Is there a good introduction?
I’m specifically having issues understanding how the following code (from Cocoa Programming for Mac OS X, 3rd Edition) works, but then also be able to apply the concepts independently of the tutorial sample. The code:
- (void... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: Streaming jquery(JS files) from a CDN (Google) This one is a case of not doing your homework.:-)
Apart from dynamic loading advantage, does it make sense to include a JavaScript library(jQuery in my case ) from a Google server when I can load it from my server as a single file comprised of the 19kb jQuery zip file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: IE 7 not displaying a simple JS Alert? Try clicking on the "Print" button on the following page:
(link removed - consensus is that everything was working fine and the problem was my setup)
For debugging purposes, I've replaced a chunk of javascript with a simple alert("test"), and even that isn't showing up in IE7 f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best way to store the days of the week an event takes place on in a relational database? We're writing a records management product for schools and one of the requirements is the ability to manage course schedules. I haven't looked at the code for how we deal with this (I'm on a different project at the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Running time of set union operation Given two sets A and B, what is the common algorithm used to find their union, and what is it's running time?
My intuition:
a = set((1, 2, 3))
b = set((2, 3, 5))
union = set()
for el in a:
union.add(el)
for el in b:
union.add(el)
Add checks for a collision, which is O(1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: C++ extend a vector with another vector I'm a C/Python programmer in C++ land working with the STL for the first time.
In Python, extending a list with another list uses the .extend method:
>>> v = [1, 2, 3]
>>> v_prime = [4, 5, 6]
>>> v.extend(v_prime)
>>> print(v)
[1, 2, 3, 4, 5, 6]
I currently use this algorithm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Problem setting path to jquery in mvc app I am having trouble setting the path to jquery in an mvc app. In my master page I have the script declared and jquery works at the root of my app. When I navigate to a content view page in my app jquery does not get loaded properly. Do I need to set the path in the content p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: are there any commands that are usually used for comparing time in bash shell script? this was for an old computer class project which I am over with and now am wondering if there was a better way of doing things .
we used to program an appointment.sh program where I solved the comparing time using an algorithm whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Read Schema of Flat File using Reflection in C# How to Read Schema of Flat File using Reflection in C#
The brief overview that I have is- There's some server which is storing the data as flat files and I have to push data from SQL Server to these flat files. For that I need to know their schema.
I have no ide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Content controls have to be top-level controls I have a website that can be accessed from www.blahblah.com and special.blahblah.com. The www site always works but occasionly I get a 'Content controls have to be top-level controls in a content page or a nested master page that references a master page' error on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can anyone quantify performance differences between C++ and Java? Java was initially slow before the JIT but today performance is pretty close to C++. I want to know if someone has done measurable performance comparisons between the two languages? Where does Java fall short when compared to C++? Java provides man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Active connection name - Iphone I want to get the name of internet connection type in iPhone?
Any help would be appreciated.
Regards
Uddhalaka
A: With the SCNetworkReachability API you can tell if you're in one of three states:
*
*no network
*cellular network (EDGE or 3G)
*Wifi network
There's no way to dist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RayTracer project in C# When I was at university, I took a subject in raytracing (graphics synthesis) and we got a chance to write a 3D ray tracer in C++. That was heaps of fun, except I long ago lost my code in the great hard drive crash of '04'....many files were lost...
Is there a RayTracer I can play with in C# ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio: hotkeys to move line up/down and move through recent changes I'm moving from Eclipse to Visual Studio .NET and have found all my beloved hotkeys except two:
*
*in Eclipse you can press ALT-← and ALT-→ to visit recent changes you have made, something I use frequently to go back to where I was in som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Storing vim settings with a document Is there any way to save the state of vim settings with a document?
To clarify: I'm editing a document and I change a bunch of settings. I don't necessarily recall which; and I don't want to use these settings again, except for the current document. I don't want to manually try t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Having trouble with rounded corners with jquery that do not round immediately in asp.net mvc app I am using the rounded corners plugin for jquery and have it working rounding elements in my page. The only issue I have is that the elements appear on the page un-rounded and then round. What do I need to do so that the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is using tables for website layout such an evil I am a Winforms and business engine developer who is using asp.net for the first time in over 2 years, and in that time I have noticed a few convention changes.
What is the logic behind the anti-'tables for layout' movement?
Is it to allow css classes to be used to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: part time business for programmers I would like to start a small part time business other than my full time programming job. Have you guys done that before? I know programmers who teach in evening schools after work. But then again, that is not business. What would you recommend to get another income stream going?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How best to make a link submit a form What's the best way to get a regular anchor (<a href="...">) to submit the form it is embedded in when clicked?
<form>
<ul>
<li>
<p>
The link could be <span>embedded <a href="" onclick="?">at any level</a></span>
in the for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Includes: SSI or PHP for basic HTML and Javascript in separate files I got my Xampp server running and can run my html in subdirectories now, as well (can't have spaces in the subdirectory names).
SSI Includes or PHP Includes:
Xampp says SSI is deactivated. Tried uncommenting the lines for includes, but it doesn't c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Printing an OOXML document without MS Word installed Is there any way to print an OOXML document (.docx file) without having MS Word installed?
It works nicely via the MS Word interface but I need to find a way to use it on servers where MS Word is not installed. I've been digging through the API and haven't found ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP Best Practices Overhead Assume a typical, database and session driven ASP application developed using best practices just before the first release of .NET. Assign the amount of effort required for seasoned professionals to implement it properly and efficiently to be 1.0.
What would you estimate to be the amoun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disable SSL on Websphere Application Server Is there a way to disable SSL on WAS? So you can just log on using a username and password. That isnt tied to disabling the Global Security?
Cheers
A: First of all, the login part of the application has nothing to do with the protocol you use to reach your application, e.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Algorithm for shortening a series of actions? It's been awhile since my algorithms class in school, so forgive me if my terminology is not exact.
I have a series of actions that, when run, produces some desired state (it's basically a set of steps to reproduce a bug, but that doesn't matter for the sake of this que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Internal global property..bad smell? I have run into a bit of a desgin issue with some code that I have been working on:
My code basic looks like this:
Main COM wrapper:
public class MapinfoWrapper
{
public MapinfoWrapper()
{
Publics.InternalMapinfo = new MapinfoWrapper();
}
public void Do(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simple algorithm tutorials? I want to learn algorithms using some very basic simple tutorials. Are there any out there? I have heard of recursion and stuff and I would like to get good at it. Any help would be appreciated.
A: If you want to learn algorithms this book is the best choice.
(source: mcgraw-hill.com)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Workaround for disabled php.ini features--- We are using shared hosting and the follow features are disabled.
file_uploads = Off
allow_url_fopen = Off
allow_url_include = Off
We are unable to change hosting and need to figure out some workarounds. The hosting co is also not able/willing to enable these features. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Interaction between Java and C# Is it possible to write a user interface in Java for an application written in C#?
I am working on a user interface of a project that is written in C#, but I have no experience with C# and I am an avid Java user. Is it possible to build the user interface in Java using Java's Swing an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Light C Unicode Library I'm looking for a small C library to handle utf8 strings.
Specifically, splitting based on unicode delimiters for use with stemming algorithms.
Related posts have suggested:
ICU http://www.icu-project.org/ (I found it too bulky for my purposes on embedded devices)
UTF8-CPP: http://utfcpp.sour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: how can I determine the number of affected rows in a SQLite 2 query in PHP I'm writing an application in PHP 5. I want to delete some rows in a SQLite v2 database file. I'm doing something like this:
$sqliteConnection = new SQLiteDatabase('path/to/db');
$queryString = "DELETE FROM myTable WHERE status='not good'";
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hierarchical table column in Java Is there any Java library that supports hierarchical column?
For example (the first three row are columns) :
------------------------------------------------
2008 |
------------------------------------------------
January | Feb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is TempData collection used for in asp.net MVC? What is the actual use of TempData collection in asp.net MVC, I need pros and cons of that collection, and when do I need to use it, which views it is shared upon, or any useful information about it, finally if someone can tell me when to use it rather than ViewDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: LDAP socket keep-alive We are using OpenLDAP client library to conect to an LDAP server. The problem is that if there is no activity for some time, server (or firewall in the middle) drops TCP connection.
Our current implementation of "keep-alive" just does search for baseDN from time to time - any better ideas ?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Filling up a TreeView control I have a N-Ary non sorted in any way tree and each node can have 0-N children. Given the data structure below, how can I fill the tree view assuming you have an array of TermNodes and that array is the first level of the TreeView? I have not been able to come up with a recursive way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the concept of erasure in generics in Java? What is the concept of erasure in generics in Java?
A: Complementing the already-complemented Jon Skeet answer...
It has been mentioned that implementing generics through erasure leads to some annoying limitations (e.g. no new T[42]). It has also been mentioned t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "155"
} |
Q: JDBC simplified connection Is there any library that would simplify the task of connecting to a server with JDBC? Something that can take a string like mysql://username:password@host/db, similar to what PHP MDB2 do as in here.
I'm not interested in any ORM or complex library such as Spring as I'm not even doing this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set height to the SimpleHistogramBin bin in SimpleHistogramDataset? I used setItemsCount() method to manage height of the bin in my SimpleHistogram from JFreeChart. Yet, it does something weird: when I set for example 1, it shows 1.4
Besides this method's argument is Integer, while I need double
A: I'd sugge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET control in JQuery modal Ok, I am new to JQuery, I have a modal that has a asp:Literal control in it. The literal is controled by whatever link is clicked to activate the modal. So, I had hoped it would be as easy as giving the literal value onClick of the link but that's not it.
I'm hoping: the value of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Json or Html? How to tell? I have a controller that returns either JSON or partial html depending on if the user is logged in.
Is there anyway to tell the difference once the result has been returned??
What is the best way.
Obviously i have different actions to complete if the response is json or if it is the parti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Powershell script to change service account Does anyone have a Powershell script to change the credentials used by a Windows service?
A: A slight variation on the other scripts here, is below. This one will set credentials for any/all services running under a given login account. It will only attempt to restart the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Worker threads in Ruby I am writing a simple memory game using ruby + qt (trying to get away from c++ for while...)
In order to allow a X second timeout to view two open pieces, I need either timers or do the work in a background thread.
What is the simplest way of implementing this without reinventing the wheel?
Ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using one delegate to manage two UIActionSheets I have two UIActionSheets and I am thinking that I will control them with one delegate (the UIViewController that instantiates them). The delegate will capture an actionSheet call and try to figure out which of the two threw the event.
I tried to get the modalView's t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is a workflow system? How can I differentiate a Workflow system from a normal application that automates some work? Are there any specific feature a system must have to be categorized as a workflow system?
A: A workflow management system pushes users through a process that hops across more than one function wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: When I publish my ASP.NET site in RELEASE mode, will tracing still work? When I publish my ASP.NET site in RELEASE mode, and set compilation debug="false", will my ASP.NET and System.Diagnostics Tracing still work?
A: I believe that tracing is set separately from debugging in the configuration, so yes, if properly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to associate a specified type of file with my program? I have a self-developed program which I want to use as the default opening tool for .jpg and .bmp files. How can I achieve the goal progrmmatically?
Some said that I have to add some registry entries. But I don't konw exactly what I should do. Can anyone te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Work offline in Team Foundation Server Is there a way to set "work offline" in TFS without having to try opening a solution, waiting for it to time out, and then having Visual Studio work out that it has failed?
It seems a touch ridiculous that I can't just tick a box to tell it myself, seeing as I'm probably the on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: Merge from PROD to HEAD or HEAD to PROD? We have two branches:
1. HEAD - the latest version (AKA Trunc)
2. PROD - the released version
When you fix bugs in the released version, which of these do you do:
*
*Fix it in PROD, then merge to HEAD
*Fix it in HEAD, then merge to PROD
The advantage of (1) is that this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Wcf Client Error: "The client was unable to retrieve service metadata" "The client was unable to retrieve service metadata. Make sure the service is running and exposing metadata" this error is occuring in .net 2008 while executing the wcf application. I used wcf service library template. What is the reason for the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scaffold Generator problem in Rails 2.1+ I have fresh Rails 2.2 install, thing is that everything work fine until I use scaffold generator.
$ script/generate scaffold pages \
title:string description:string content:text
$ rake db:migrate
But when I launch server with this address: http://localhost:3000/pages/ I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to calculate/save memory useage of .NET app on terminal servers? I do some C# fat application on Citrix/Terminal Server.
How to measure actual memory usage per-session?
What can I do to reduce the memory usage in total?
We still working on .NET 1.1. Does it have a difference if we upgrade our .NET runtime?
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I want to run program on background . pref C# I want to run program on background . pref C#
I want put icon in the tray.
On specified time it’s synchronizes folders (I know how to sync folders) .
How to run it on background and start sync ( for example at 2am)?
A: You need to consider using the windows schedul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setup Content Server This is more of a strategy question instead of a 'help with code' question.
I have a content server and need to supply content to various shared hosting and would love to know how you guys would set this up. We would like the content to be 'cached' on the servers so that is appears as static (a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best method to ping in c++ under linux? I have to call ping from c++ code.I'd like to easily read the output for further utilizations.
I have come up with two solutions:
*
*use a fork and a pipe, redirect ping output to the pipe and then parse it
*find a library suited for the purpose to use a ping(i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What could cause Visual Studio / C# error MSB3105: Duplicate resources While working on an existing project I suddenly got the following error when trying to compile the solution:
error MSB3105: The item "[filename]" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: GoogleMaps getLatLng Did you mean suggestion I am trying to integrate the function into a map where you can enter an address and it puts a marker on the map. But with Google Maps getLatLng if there is a slight error in the name of the address it doesn't work anymore is there a did you mean function?
A: API Tutorial... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to implement and extend Joshua's builder pattern in .net?
*
*How can we implement the Builder
pattern of Joshua's
Effective Java in C#?
Below is the code I have tried, is there a better way to do this?
public class NutritionFacts
{
public static NutritionFacts.Builder Build(string name, int s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Is a good idea to enable jmx (lambda probe) on a production server? We are experiencing some slowdowns on our web-app deployed on a Tomcat 5.5.17 running on a Sun VM 1.5.0_06-b05 and our hosting company doesn't gives enough data to find the problem.
We are considering installing lambda probe on the production server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Access DropDownList.SelectedIndex in DataList.ItemCreatedCommand (EventBubbling or other solutions) How am I to bubble the event caused when itemIndex is changed in a dropdownlist - so that I can use the itemindex-value in my ItemCreatedCommand-function?
A solution is found at:
http://209.85.129.132/search?q=cache:c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to prevent a Winforms control from listening to the keyboard For a certain inputform, I'd like to make it possible to do input with the keyboard. I know how to read the keys through KeyPressed and KeyUp, but the problem is that when a control has got the focus and the user presses the Enter key, that control r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a cron-like service written in Perl? I am mulling over a web-app in Perl that will allow users to create bug monitors. So essentially each "bug watch" will be a bug ID that will be passed to a sub routine along with the "sleep" time, and once the "sleep time" is over it must recur without blocking the pare... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Char array to a class I have a incoming stream of bytes (unsigned char) from either a file or network. I need this data placed in a class, and is looking for a NET-way of doing this.
I bet some does this all the time, so I guess there is a better method to do this than using BitConverter.
I realize I supplied too ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Preferred way to keep control centered on resize What is your preferred way of keeping controls centered on its parent when the parent change width or height?
A: If by 'centered' you mean "it was already in the middle and you want to keep it there without resizing it", then remove all anchors. If it should be res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best Practice for Multi-programming-language Projects Does anyone have any experience with doing this? I'm working on a Java decompiler right now in C++, but would like a higher level language to do the actual transformations of the internal trees. I'm curious if the overhead of marshaling data between languages i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MYSQL - What does STRAIGHT_JOIN do in this code? What does STRAIGHT_JOIN do in this code ?
SELECT STRAIGHT_JOIN ClosingBalance
FROM Accounts
WHERE idAccounts = FidDebit;
A: From here:
STRAIGHT_JOIN is similar to JOIN, except that the left table is always read before the right table. This can be used for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Equivalent msbuild command for Publish from VS2008 any idea which is the command for publish in msbuild corresponding to the one in VS2008?
What I want is the resulting output to be the same, without that _PublishedWebSites subdirectory.
Is this achievable from command line or I should use a build file?
Thanks.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: DatePicker for a Mobile Website? What is best way to allow user to pick date from a mobile device from usability prospective?
A: I'd detest any form of drop-down, select-list when using a mobile app.
Unfortunately, three separate boxes (for day, month and year) would be equally painful on a MIDP-profile device.
I'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Port 443 on iSeries v5r4 is ‘filtered’ to internet clients, even it is allowed in firewall rules. How can I make it ‘open’? Port was filtered by ISP.
The problem is that HTTPS 443 port isn't accessible from internet, but it is open in our local network.
Our iSeries v5r4 is connected to inet via L2TP withot IPSec.
If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: generate dependencies for a makefile for a project in C/C++ I have a project that has a makefile with broken dependencies. Is there any best known way to generate a list of dependencies for the project that I can use in the makefile, other than examining each source file by hand or with a hand written perl script?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Localization of date-time using custom patterns I am working on localization for an app where custom patterns are used to format the date-time.
one example is:
dd-MM HH:mm
I need to get localized versions of this custom format for dates, so that I get the date using numbers, and the time, basically using the local ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Underlying object Type of an empty Array Hej,
assuming I have a code that looks like this:
List<User> userList = GetUserByName (u => u.Name == name);
DoSomethingWithTheUsers (userList.ToArray ());
Now I want to know the type of the objects in the Array in the method DoSomethingWithTheUsers (object[] myObjects)
Sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Redirect to action in other controller I want to redirect from an action in one controller to an action in a second controller. Normally I would use RedirectToAction("actionName", "controllerName", objects);
The method I want to redirect to has two overloads:
*
*One for HttpVerbs.Get that is used for direct linki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Disabling progress bar animation on Vista Aero I'm using a Delphi 2009 VCL TProgressBar as a kind of "empty/full" gauge.
On Vista, with Aero theme enabled, this has an animation associated with it, which is annoying and inappropriate for an gauge.
Is there any way of disabling this (NOT by adjusting user's theme set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I programmatically deploy BIDS artifacts to remote SQL Server instance? I would like to automate the deployment of my SSIS and SSAS artifacts to remote development SQL Server 2005 & 2008 instances on a scheduled basis.
What would be the best solution for this? I am using TFS 2008 as the source control syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Multiple Interface injection with castle windsor How can you get castle Windsor to choose the right implantation of a interface at run time when you have multiple implementations in the container.
For example lets say i have a simple interface called IExamCalc that does calculations to work out how someone did in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Anyone encountered a INT 3 debugger break in mscorwks.dll? We host the .NET runtime as part of a Win32 program, and lately it has begun to consistently break at a specific address, in mscorwks.dll.
At the specified address, there is a 0xCC byte, which is a INT 3 instruction, which fires the debugger.
Has anyone else... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way to get the users location without having the user install Google Gears? I don't want to have the user install Google Gears so I can show him his guessed location. Is there a way to get the location without having to use Google Gears?
I have found http://www.wipmania.com/de/blog/google-geolocation-api/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Object Oriented PHP <?php
class Box {
var $contents;
function Box($contents) {
$this->contents = $contents;
}
function get_whats_inside() {
return $this->contents;
}
}
?>
I am going through a OO tutorial. I am familiar with PHP and the concept of OO but it is still an uph... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to access win32 console App Data in VC++ MFC GUI I have two apps:
*
*Win32 Console App.
*MFC GUI App.
I wanted to execute the console app in MFC GUI and I am want to get data from that Console app and display them in GUI.
I get this error while compiling:
fatal error C1189: #error : Building MFC applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/313814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.