text stringlengths 8 267k | meta dict |
|---|---|
Q: I need a LAMP stack *with memcache* -- which webhost? I'm a PHP developer and I've made something I want to push live.
It requires memcache, and I'm expecting a fair amount of traffic, at least at launch, so I'd like it to be fast.
I'm really awesome at programming, but when it comes to getting hosting stuff set-up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google search code in ASP.NET Master Page I'm trying to put the following Google generated search box code into a Master page on a site:
<form action="http://www.google.com/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-xxxxxxxxxx:u3qsil-l6ut" />
<input type="hidden" name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to clear an internal list in Scheme? I have the following code and would like to add a 'clear message that removes all the stored numbers from the internal list. How would I do this?
(define (make-stat)
(let ((values (list)))
(lambda (op . args)
(cond ((eq? op 'add)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Complex builds in Visual Studio I have a few things that I cannot find a good way to perform in Visual Studio:
*
*Pre-build step invokes a code generator that generates some source files which are later compiled. This can be solved to a limited extent by adding blank files to the project (which are later replaced... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to stop stepping into .NET source code using TestDriven.NET? I just started using TestDriven.NET to debug on my tests, here is my setup
TestDriven.NET 2.17
VS 2008 SP1
Windows XP
The problem I run into is on exception it keeps stepping into the .NET Framework source code. I checked Tools > Options > Debuggin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VMR9Allocator (DirectShow .NET + SlimDX) I was trying to convert and run the VMR9Allocator sample for DirectShow .NET with SlimDX instead of MDX. I got an exception when it reach this line
return vmrSurfaceAllocatorNotify.SetD3DDevice(unmanagedDevice, hMonitor)
In the AdviseNotify method in Allocator.cs.
The except... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the difference between CString in vc6 and vc7? What is the difference between CString in vc6 and vc7?
A: CString was removed from MFC in VC7 so that it could be used in both MFC and ATL projects. The architecture was completely changed:
*
*In VC6, CString had no base class. In VC7, the base class is CStr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex for parsing SQL parameters If I have a query such as SELECT * from authors where name = @name_param, is there a regex to parse out the parameter names (specifically the "name_param")?
Thanks
A: This is tricky because params can also occur inside quoted strings.
SELECT * FROM authors WHERE name = @name_param
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Changing the MAC Address in Vista - Broadcom adapter Is there a way that we could override the default mac address / set a new mac address on a Vista machine for a Broadcom adapter ?
A: Can't say for your particular case, but I've used one of the two tools mentioned over here to spoof/change the MAC address of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC vs. Observer Pattern I've recently asked a question on StackoverFlow about the MVC: Can the MVC Design Pattern / Architectural pattern be used in Desktop Application Development?
Based on the answer provided I started research on how this would be implemented in a Windows form Application. I came upon the follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IIS, Asp.NET pipeline and concurrency I'm wondering how the concurrency in a web application actually works. Ive read several articles and to my understanding multiple instances of HttpApplication would be working at the same time. Now, I created a simple web app to test concurrency and put the following to global.a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does file.delete() return true or false for non-existent file? In java, does file.delete() return true or false where File file refers to a non-existent file?
I realize this is kind of a basic question, and easy to very through test, but I'm getting strange results and would appreciate confirmation.
A: From http://... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I get the database name from a Perl MySQL DBI handle? I've connected to a MySQL database using Perl DBI. I would like to find out which database I'm connected to.
I don't think I can use:
$dbh->{Name}
because I call USE new_database and $dbh->{Name} only reports the database that I initially connected to.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I conditionally create a table in Sybase (TSQL)? OK, so Sybase (12.5.4) will let me do the following to DROP a table if it already exists:
IF EXISTS (
SELECT 1
FROM sysobjects
WHERE name = 'a_table'
AND type = 'U'
)
DROP TABLE a_table
GO
But if I try to do the same with table creation, I alwa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to delete files older than N weeks from a Microsoft FTP server I run an OpenSuse server that uploads zipped source code backups to a Microsoft FTP server every night. I have written a Bash script that does this through a cron job.
I want to delete backed up files that are older than a certain date. How could I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: interview program example There are several topics about what questions will be raised in an interview for a programming job, but none actually talk about a small problem that some companies want: an example program.
My question is based on my last job application, where I've been asked to create a simple program a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: countdown timer in JSP/Servlets I am developing an online examination using servlets/jsp.I need to add a count down (hh/mm/ss) timer to the questions page that would end the exam and redirects to results page.
I am done with all the other functionalities except the timer one.
Can someone provide some help on this.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET Passing properties to dynamically generated user controls I am struggling on something that, I am sure, should be easy. I have been living in backend and winforms code for a long time, and I'm am building my first ASP.NET page in over a year, so apologies for any noobishness
I am inside a User Control on a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where is the current version of the Emacs calc? I lost my installation of Dave Gillespie's calc.el by reinstalling Cygwin. It is not included with the default Cygwin install of Emacs. Who is considered the master maintainer these days? Is version 2.02f still most current?
A: In the Emacs CVS tree. See the calc p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are download usage statistics available through the iPhone API? You're my last hope stackoverflowers.
A: No that is not possible on iphone.
A: No.
You need to go through the itunes connect web site for that
| {
"language": "en",
"url": "https://stackoverflow.com/questions/307969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What SQL query shows me the tables and indexes used by a view on Informix? What SQL query shows me the tables & indexes used by a view on Informix?
I know how to find the "original create statement" for a view in SYS_VIEWS, but that requires a human brain scanning/grokking that select. I believe I can find if the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Declare a generic type instance dynamically Is it possible to declare an instance of a generic without knowing the type at design-time?
Example:
Int i = 1;
List<typeof(i)> list = new List<typeof(i)>();
where the type of i could be anything, instead of having to do:
List<int> list = new List<int();
A: If you don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/307984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Where can I get postal codes for all countries? I once read about an open source database for postal codes with geolocation data but now I can't remember its name. Can someone help?
A: Find all countries at GeoNames or run a ready-parsed MySQL script (INSERTs):
Download delivery_zip.zip (11 Mb)
A: My guess is tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: jQuery slideUp().remove() doesn't seem to show the slideUp animation before remove occurs I have this line of JavaScript and the behavior I am seeing is that the selectedLi instantly disappears without "sliding up". This is not the behavior that I expected.
What should I be doing so that the selectedLi slides up be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: Can you hint return types in PHP 5.2.5? I think my eclipse's ctrl+clicking links might benefit greatly...
Edit: I'm using eclipse PDT.
Edit 2: I'm very happy with the solution of putting docblocks before functions (and variables) with an @return or @var statement, I've just updated the documentation of my app and no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Loading Dojo Library from AOL and Widget Codes from Local? I just started to learn Dojo. I followed one site Widget example with some different ways to load Dojo libraries. I like to use AOL reference to load dojo.js like this:
<script type="text/javascript"
src="http://o.aolcdn.com/dojo/1.2.0/dojo/dojo.xd.js">
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's your Objective-C coding style? The first thing I do when I incorporate any third party code into my application is reformat it to my personal coding preference:
// Single line comments only
// I never put spaces inside my parenthesis
-(void)myOCDMethod
{
// If an if or for statement has only one ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pagination Problem [PHP] So I'm doing this in PHP but it is a logic issue so I'll try to write it as generically as possible.
To start here's how this pagination script works:
*
*for (draw first three pages links)
*if (draw ellipsis (...) if there are pages between #1's pages and #3's pages)
*for (draw current ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Learning how to use AJAX with CodeIgniter It's kind of embarassing that I find it so difficult to learn JavaScript, but ..
Let's say I have a really simple controller like this:
class front extends Controller {
public function __construct()
{
parent::Controller();
}
public function inde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why do I need to explicitly output the HTTP header for IIS but not Apache? I am trying to set up apache instead of IIS because IIS needlessly crashes all the time, and it would be nice to be able to have my own checkout of the source instead of all of us editing a common checkout.
In IIS we must do something like th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Virtualization in Super Class Constructor I was of the opinion that virtualization doesnt work in the super class constructor as per the design of OOP. For example, consider the following C# code.
using System;
namespace Problem
{
public class BaseClass
{
public BaseClass()
{
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: DropDownList Setting Default Value How should I get a value displayed in the DropDownList when redirected through a cancel buttton. The value in the page where cancel button is there in a TextBox should be caught in the DropDownList.
This DropDownList has SelectedIndexChanged event also fired for which on selection ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I build a LR state machine parser? I'm wanting to play around with creating an LR parser generators. Does anyone know of a good (free) resource describing how to create a state machine table from a grammar?
A: For a free resource, consider the Python source code for PLY - a full implementation of Lex and Ya... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Graceful Degradation I want to spruce up some areas of my website with a few jQuery animations here and there, and I'm looking to replace my AJAX code entirely since my existing code is having some cross-browser compatibility issues. However, since jQuery is a JavaScript library, I'm worried about my pages no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is it possible to configure a UITableView to allow multiple-selection? For the iPhone, is it possible to configure a UITableView such that it will allow multiple-selection?
I've tried overriding -setSelected:animated: for each UITableViewCell, but trying to fudge the required behavior is tricky as it's difficult to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How to Query A DataGridView Using Linq I have a DataGridView that I want to query using Linq (C# WinForm). I want to "count" rows where a certain criteria is met. For example,
variable1 = "count rows where ColumnBoxAge > 3 || < 5"
label1.Text = variable1
How to do this in C# WinForm using Linq?
A: I don't know i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: which are the most informative .net screencasts watched by you? I have learned so much from http://www.summerofnhibernate.com/ nhibernate screen casts that i wonder why they are given as free!. Did you know about other such .net screen casts?
A: Rob Conery's MVC Storefront series has been excellent. It has covered... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing data to .NET C# WPF applications/DLLs I have a .NET C# WPF application that I am trying to make into a single-instance application using a Mutex.
This .NET application is called by a C++-based DLL using CreateProcessAsUser() and is given parameters via environment variables.
Subsequent instances will also ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Web Services (plural) or Web Service with multiple classes I am struggling to make a decision regarding the correct organisation for a web service. Should I have multiple ASMX's representing the different functionality in the web service, or should I have a single ASMX?
If I have multiple ASMX's, does this n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Path from where an ASP.NET application is run An ASP.NET application sends letters in HTML format with links to external images. These images are placed in the same folder where the application is deployed. So before sending it modifies a letter template in such way what the links are correct.
Now I use
new UriBuild... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When do you use <% -%> instead of <% %> I've noticed that in some lines of rails views, this is used:
<% # Code... -%>
instead of:
<% # Code... %>
What is the difference?
A: The different options for evaluating code in ERB are as follows (they can be accessed in Textmate using Ctrl-Shift-. ):
*
*<% %> Just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .NET Copy Third Party Libraries to Bin\Release We use Microsoft Smart client, Enterprise Library, Composite Application Block and Infragistics and some more third party libraries.
In the project, we added references to the libraries in the Visual Studio 'Add Reference' and selecting from .NET component lists.
How t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NHibernate - creating records in related tables Hibernate version: 2.0.1GA
I'm trying to add a single record in two tables. The tables are related. I have a beginner's knowledge of NHiberate so I'm hoping there's a better way to do this.
Presently, I am under the belief that the only way I can get the ID of a newl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Simple regular expression for a decimal with a precision of 2 What is the regular expression for a decimal with a precision of 2?
Valid examples:
123.12
2
56754
92929292929292.12
0.21
3.1
Invalid examples:
12.1232
2.23332
e666.76
The decimal point may be optional, and integers may also be included.
A: I use this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "295"
} |
Q: Firebug-like debugger for Google Chrome Is there anything like Firebug that you can use within Google Chrome?
Essential features I would like:
*
*Inspect HTML source (select elements, delete them, etc.)
*check CSS values (the built-in solution is weird, somehow)
A: You can set this bookmarklet in your "Bookmar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "280"
} |
Q: How to find Object ID in PHP? I'm using PHP 5.2. I'd like to find a way to output a unique id for every object, so it's easy when looking over logs to see which objects are the same.
In Ruby, I'd just say object.object_id to get Ruby's internal identifier for the object. There doesn't seem to be an obvious way to do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: IPhone sync/app backup - can an app do something at that time? I was wondering if there is a hook in the iphone sdk that allows an app to know when its being sync'd / backed up - so that it could do something, eg connect to a website to also backup data.
I am assuming not... but I could be wrong.
Thanks,
Chris
A: C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I enumerate the open windows (~EnumWindows) of another user session I have an application that can list the opened windows of the current session. It uses the EnumWindows method from the user32.dll.
I would like to run this code from a windows service, but as the service is not attached to a user session, it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Possible to import an image into AS3 without PHP? In actionscript 3 is it possible to allow a user to upload an image into a flash movie at runtime without POSTing to a PHP script? I dont want to export the image or save it anywhere I just want to be able to display the image in the flash movie
fingers crossed
A: T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MethodAccessException on CF 2.0 List.Sort I've got some library code that works on a range of .NET runtimes (regular, CF, Silverlight, etc) - but a small block of code is breaking only on CF 2.0, with a MethodAccessException. I'm pretty sure it is a runtime bug, but does anybody know any good workarounds? It works f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Apache serves blank page I have created one sample PHP script to upload excel sheets of very bigger sizes. Also the process happening with each records given in the excel sheets is bit complex. To allow bigger sizes, I have added necessary PHP ini values in the Apache configuration file to override the actual PHP in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Interface inheritance: what do you think of this: When reviewing our codebase, I found an inheritance structure that resembles the following pattern:
interface IBase
{
void Method1();
void Method2();
}
interface IInterface2 : IBase
{
void Method3();
}
class Class1 : IInterface2
{
...
}
class Class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Data access Integration Testing...how do you do it? public class RollBack : OnMethodBoundaryAspect // or another AOP for meth interception
{
public override void OnEntry(MethodExecutionEventArgs eventArgs)
{
try
{
ServiceConfig cfg = new ServiceConfig();
cfg.Transactio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Learning C# help or hinder VB.NET learning I have just moved job and gone from VB 6 to VB.Net and found the learning jump fairly steep, have more a problem with the object / conceptual side of things .. but getting there now ... but as I was a assembler / C++ 10/15 years ago and was considering learning C++/C# .Net ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript "onMouseOver" triggering for children? I can't tell if this is a result of the jQuery I'm using, but this is what I'm trying to do:
<div class="info" style="display: inline;"
onMouseOut="$(this).children('div').hide('normal');"
onMouseOver="$(this).children('div').show('normal');"
>
<img src="imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: help me translate Java code making use of bytes into jython code how do I translate this code into jython?
ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(file + ".zip"));
byte[] buf = new byte[1024];
int len;
//Create a new Zip entry with the file's name.
ZipEntry zipEntry = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Configurable values to MDB annotations I'm trying to use this method for receiving mail in our EJB3 app. In short, that means creating an MDB with the following annotations:
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "mailServer", propertyValue = "imap.company.com"),
@Activation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: fastest way to detect if a value is in a group of values in Javascript I have a group of strings in Javascript and I need to write a function that detects if another specific string belongs to this group or not.
What is the fastest way to achieve this? Is it alright to put the group of values into an array, and then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Custom query with Castle ActiveRecord I'm trying to figure out how to execute a custom query with Castle ActiveRecord.
I was able to run simple query that returns my entity, but what I really need is the query like that below (with custom field set):
select count(1) as cnt, data from workstationevent where serverda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Concrete vs. Bounded Parameterized Type when designing a typesafe API I would like to hear from you guys on how do you decide when you should be using concrete parameterized type vs. bounded parameterized type when designing API, esp. (that I care most) of defining a class/interface.
For instance,
public interface E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Explaining computational complexity theory Assuming some background in mathematics, how would you give a general overview of computational complexity theory to the naive?
I am looking for an explanation of the P = NP question. What is P? What is NP? What is a NP-Hard?
Sometimes Wikipedia is written as if the read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Building a multi-level menu for umbraco I'm trying to build a multi-level dropdrown CSS menu for a website I'm doing on the umbraco content management system.
I need to build it to have the following structure:
<ul id="nav">
<li><a href="..">Page #1</a></li>
<li>
<a href="..">Page #2</a>
<ul>
<li><... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Showing processing message in Python I want to show the processing information or log in the original page when the submitted request is being served until it completes the execution. I thought it would be meaningful to the user to know what is happening behind the request.
I don't find a clue to do so though, can y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Story generation Upon reading a blog post about a minimalist story-generating python program, I was asking myself - and you - which are the most successful attempts at such programs. I remember seeing something using generating grammars, for instance. And which are the best attempts that, like this one, are extremel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java and switch case Does any one know as to why Java does not allow you to switch on numbers larger than integers? Is there any technical reason behind this?
A: As said here, switch works with the byte, short, char, and int primitive data types. It also works with enumerated types and a few special classes that "w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a disadvantage to using "USING" instead of "ON" in MySQL? Two snippets of MySQL:
SELECT * FROM annoyingly_long_left_hand_table
LEFT JOIN annoyingly_long_right_hand_table
ON annoyingly_long_left_hand_table.id = annoyingly_long_right_hand_table.id;
vs
SELECT * FROM annoyingly_long_left_hand_ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using SMO to create and set Database permissions? Is there a way to create new logins and set database permissions on a SQL Server 2005 using C# and SMO?
If so, how? If not, what is the best way of doing that?
A: You can use the Microsoft.SqlServer.Management.Smo.Login class and call the Create method. See here for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create Outlook Task Request from ASP.NET I'm looking for a way to create Outlook Task Request from ASP.NET. I'm using Exchange Server 2003 for email server. Basically, user of my ASP.NET application will do something that will create Outlook Task based on some logic. Is this natively supported in .NET or must I use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to force iPython to use an older version of Python? I am running an Ubuntu 8.10, using Python 2.5 out of the box. This is fine from the system point of view, but I need Python2.4 since I dev on Zope / Plone.
Well, installing python2.4 is no challenge, but I can't find a (clean) way to make iPython use it : no op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Vim Keyword Completion How do I tell the Vim editor about my include files path so that it can auto complete the function names when I press CTRL+N?
For example, I have a C program like below:
#include<stdio.h>
int main()
{
sca // here I press control+N, it does not complete to scanf
}
A: Vim might also know t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Upgrading SQL 2000 32-bit to SQL 2008 64-bit I have a number of databases on a Windows 2000 Server running the 32 bit version of SQL Server 2000. I need to transfer all the data and settings to a new server running the 64 bit version of SQL 2008 on Windows 2003 64 bit.
Is this as simple as backing up the databases a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I call a constructor from another constructor (do constructor chaining) in C++? As a C# developer I'm used to running through constructors:
class Test {
public Test() {
DoSomething();
}
public Test(int count) : this() {
DoSomethingWithCount(count);
}
public Test(int count, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1110"
} |
Q: What are the consequences of ignoring: warning: unused parameter I am working on a C++ project and I noticed that we have a number of warnings about unused parameters.
What effect could it have if these warnings are ignored?
A: The function with an unused parameter may have a real bug in the following cases:
*
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Is it good or bad to implement IPrincipal & IIdentity as the same time? Because IPriincipal had IIdentity property is it good to implement both interface on my User class?
A: Generally, the user and the security context where the user interacts are different things, and therefore if modelled in a generic way, these... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C++ strings: [] vs. * Been thinking, what's the difference between declaring a variable with [] or * ? The way I see it:
char *str = new char[100];
char str2[] = "Hi world!";
.. should be the main difference, though Im unsure if you can do something like
char *str = "Hi all";
.. since the pointer should the refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Procedure to submit iPhone application to App Store? Is it necessary to pay $99 before I can watch the video to submit an iPhone application to the App Store, or it is available free of cost anywhere?
A: You can join the developer program and watch the video without paying. It's on Video → App Store and Distributio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Using Scrum on a "Personal Time" Project I'm starting up a personal project to develop some open source software. I want to use Scrum as the PM process on this (as I like the Product Backlog, prioritisation, and if I can get them, the burndowns) but it seems to me that I won't get the full value because I can't at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why C# append get on property in class written in VB.net? If we make any class in VB.NET and try to access its property in C# by making object of that class. get_ is appended in the property. Can any one please explain the reason.
A: Oh it may be because the whole:
*
*get{}
*set{}
business actually translates i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding web reference While right clicking on the reference in the solution explorer "add webreference is missing" Why it was missing in my machine?
A: Try "Add Service Reference" -> Advanced -> Add Web Reference
A: Another way to add the web reference is to click on the Project in the Solution Explorer then go to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to set windows service username and password through commandline Using sc command we can query, start , stop windows services.
For ex:
sc query "windows service name"
The sc config command changes the configuration of the service, but I don't know how to use it.
Could someone tell me how we can set the user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Good library/libraries for datastructures in assembler Are there any good libraries (preferably with commented source) for standard datastructures (Linked list, array list, queue, stack etc.) for x86 (or others)
in Assembler ?
I don't like to reinvent (and debug !) the wheel....
A: Why not just find a good C librar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading the selected value from asp:RadioButtonList using jQuery I've got code similar to the following...
<p><label>Do you have buffet facilities?</label>
<asp:RadioButtonList ID="blnBuffetMealFacilities:chk" runat="server">
<asp:ListItem Text="Yes" Value="1"></asp:ListItem>
<asp:ListItem Text="No" Value=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Differences between Safari for Windows and Safari for Mac What are the differences from a developer point of view between Safari for Mac and Safari for Windows?
I think it boils down to evaluate differences between (if I missed something, please correct):
- Layout rendering
- Javascript behavior
The final decision t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Setting file version number in Visual Studio 2005 C++ Can anyone point me in the right direction how to configure Visual Studio 2005 with our C++ console project how we can include a 'File Version' in the details section of the file properties.
I've tried resource files without any luck. This is with a C++ project j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: CSV for Excel, Including Both Leading Zeros and Commas I want to generate a CSV file for user to use Excel to open it.
If I want to escape the comma in values, I can write it as "640,480".
If I want to keep the leading zeros, I can use ="001234".
But if I want to keep both comma and leading zeros in the value, writi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: When and why should I consider asp.net MVC? I've noticed a lot of talk about asp.net MVC lately, but I haven't come across a clear or compelling description of when, where or why I would want to use it over WebForms.
Let's say I wanted to build a small web application that allows a person to advertise some items onl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Need to create shared data in virtual memory in vxWorks We want to create shared data in the virtual memory area in vxWorks. We got some information that we need to use vmLib API for mapping virtual memory to our application. But we dont know much about how to use this. If anybody has used the same or related thing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What column type in Oracle can take full range of java double values What column type in Oracle 10g can be used to store any value of java double up to and including Double.MAX_VALUE and Double.MIN_VALUE?
A: From the Oracle SQL Reference:
The NUMBER datatype stores zero as well as positive and negative fixed numbe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL grouping I have a table with the following columns:
A B C
---------
1 10 X
1 11 X
2 15 X
3 20 Y
4 15 Y
4 20 Y
I want to group the data based on the B and C columns and count the distinct values of the A column. But if there are two ore more rows where the value on the A column is the sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Preventing Screen burn I've written a helpdesk monitor application that is designed to sit on a big plasma screen in a support department, the application has 5 views that it revolves around, the content of most of those screens is different, but they have some common components, being one silverlight control and a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to have read permission in a recent created folder and file in C? I've created a a folder and after I open a file inside of that folder a write on it.
It happens that after that I try to open the file but I have no permissions thus I have to change it manually.
/* str1 has tha name of the folder */
/* str the by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you handle/react to user input concurrency on the GUI layer? What are good ways to handle user input concurrency?
As the answers to this question already rule out database locking, how do you handle concurrent user inputs in general?
Is locking always a bad idea, even if it is not implemented by row locking? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: The Standard For Linking Tag Elements Is either:
<a href="#"><h1>text here</h1></a>
or
<h1><a href="#">text here</a></h1>
"correct". Is there any benefit of using the first one, it seems more logical to me. Perhaps from an SEO point?
A: Your second example is the only allowed structure. The first puts a block-le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Label/Texbox separation in Microsoft Access 2007 forms I'm trying to create a very simple form in an Access database. Whenever I drag a textbox on the form, a label gets created with it. I want to be able to move the label without moving the textbox,but whenever I try to do that, the textbox moves with it. Its like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: C++ bitfield packing with bools I've just done a test with bitfields, and the results are surprising me.
class test1 {
public:
bool test_a:1;
bool test_b:1;
bool test_c:1;
bool test_d:1;
bool test_e:1;
bool test_f:1;
bool test_g:1;
bool test_h:1;
};
class test2 {
public:
int tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: WCF DataContract/ServiceOperation involving .NET XmlDocument type im just wondering about data contracts to be sent over the wire in WCF communication. i know for the sake of interoperability it is not advisable (maybe not even allowed?) to send native .NET types as part of a data contract.
I wish to have a service ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to modify http-headers on static files served by JBoss I have a web application (.war) that contains some static files (e.g. MS word documents). When I try to download these files, JBoss automatically sets some HTTP-headers in the response. Is there a way to configure JBoss (version 3.2.7) to set these headers t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert a string to a date in C++ I know this may be simple but being C++ I doubt it will be. How do I convert a string in the form 01/01/2008 to a date so I can manipulate it? I am happy to break the string into the day month year constituents. Also happy if solution is Windows only.
A: I figured it out without us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Cookie problems with virtual directories in IIS (deleting unwanted cookies) I've just had a small nightmare with unwanted cookies somehow being created. I swear my code never created a cookie in a certain virtual directory, it just read it, but somehow my browser ended up with a root cookie and a copy of this cookie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: struts property tag to retrieve Object Is it possible to get an Object's attribute through the property tag in struts?
For example, if I have a user object that consist of user name and email, is it possible to modify the code below to have it return the user name and email instead of the whole object?
print("<s:ite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/308396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.