text stringlengths 8 267k | meta dict |
|---|---|
Q: making a python program executable from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1}},
windows = [{'script': "single.py"}],
zipfile = None,
)
in this setup file for py2exe where it says single.py is that where I place the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Where is "CDO.Appointment" I'm using VB .NET 2005 and Exchange Server 2003 installed
I have found some code which gives me the ability to connect in an Exchange Server and create an appointment.
The thing is that I cannot find the CDO. Appointment.
Where can I find it and make the below code to work ?
I have tried ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mx:Move race conditions in Flex In Flex I have a lot of Move effects and AnimateProperty effects.
What I have found in several different places in my code is that far too frequently the effect stops halfway through for no apparent reason.
I have found this in numerous places in my application and it occurs whether o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Share HttpContext code between web and non-web application I've got a VB.NET module that reads from a resource file to display text in the correct language. Here's my problem - this code is shared between a web application and a non-web application, In the web application, I'm using System.Web.HttpContext to determi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: py2exe generator not working I ran this setup.py file
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundles_files': 1}},
windows = [{'script': "Driverscript.py"}],
zipfile = None,
)
This creates the executable file and packages but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does the .Net run-time compiler support C# 3.0? It looks like the run-time compiler doesn't support the same language as the command-line compiler so if you want to use lambda expressions, extensions methods or LINQ, well, you're stuck.
There's more detail here:
http://metadatalabs.com/blog/
Is this correct or is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why doesn't a swap / exchange operator exist in imperative or OO languages like C/C++/C#/Java...? I was always wondering why such a simple and basic operation like swapping the contents of two variables is not built-in for many languages.
It is one of the most basic programming exercises in computer science classes;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Tracd creating Environment I was trying to create a Tracd Environment using the following command :
trac-admin D:\My_Project initenv
I get an error saying
Import Error : No module named pkg_resources
What am I missing? I have installed Genshi and Python 2.5.2
Thanks...
A: Read the Trac wiki. You need setuptools, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accounting for a changing path In relation to another question, how do you account for paths that may change? For example, if a program is calling a file in the same directory as the program, you can simply use the path ".\foo.py" in *nix. However, apparently Windows likes to have the path hard-coded, e.g. "C:\Pytho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IBM DB2 LPAD/RPAD I use db2 v.9.1 on windows 2003 server so it can not use LPAD or RPAD functions scalar.
because that functions support only z/OS right?
Now, I use this way for pad zero when COLUMN1 type is VARCHAR
RIGHT('0000' || COLUMN1 ,4) AS RPAD
LEFT('0000' || COLUMN1 ,4) AS LPAD
Have better way for rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add Excel ribbon controls at runtime (VSTO 2005SE) Does anyone know how to modify the content of the Excel ribbon at runtime with VSTO 2005SE? Not only update labels or dynamic menus, but also add or remove buttons, tabs, groups, drop downs etc. At runtime means not only at my add-in startup, but also during work wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I create a zip file by using Objective C? I am developing an iOS application, and trying to zip the file I have created in the application, is there any built in function able to do this?
A: As Alex pointed out, I responded to this question by pointing out the NSData category contributed by users of the Coc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is there a slim reader/writer lock for .NET 2.0? I've looked at the ReaderWriterLock in .NET 2.0 and the ReaderWriterLockSlim in .NET 3.5, and the slim version doesn't use kernel objects for the locking. For my context, which can potentially generate a large (but not huge) amount of objects, this sounds better.
But ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I trigger a style change if DataContext is null or not using WPF I have a page with several controls. The controls are bound to display values which they get from the page's DataContext. What I would like to do is display another look of the page should the DataContext be null. In some cases the controls of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: YUI: RTE: focus and blur events Is it possible to get the equivalent of the focus and blur events that we have on other form controls for the RTE? That is, I would like to know when a given RTE gets the focus and when it loses it.
I see that the RTE supports lots of events (http://developer.yahoo.com/yui/editor/#eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't connect to SQL Server Express using sqlcmd.exe Env.: Vista SP1, SQL Server Express 2005
I'm able to connect to my localhost SQL Server using SQL Server Management Studio, using Windows authentication and, to the best of my knowledge, all default parameters, including network protocol.
Now I try to connect usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FileStream StreamReader problem in C# I'm testing how the classes FileStream and StreamReader work togheter. Via a Console application.
I'm trying to go in a file and read the lines and print them on the console.
I've been able to do it with a while-loop, but I want to try it with a foreach loop.
using System;
using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Enumerating all available drive letters in Windows I want to enumerate all available drive letters (which aren't already taken) in Windows using VC++.
How can I do this?
A: GetLogicalDriveStrings can get you just the list of currently used drive letters.
GetVolumeInformation can be used to get more information abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to create an automated way of monitoring to see if this application is running We have a application that should always be running. Does anyone know of a way to create an automated way of monitoring to see if this application is running (possibly using a batch file)? If it is not running, then send an email noti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF: Problem with Checkbox when binding datatrigger to property "Ischecked" I have a checkbox in GridViewColumn which i use for show/change database value. The click event for the checkbox is used for change value in the database. For handling the state of property "IsChecked" I'm using datatrigger and a setter, se ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Find out name of PL/SQL procedure Can PL/SQL procedure in Oracle know it's own name?
Let me explain:
CREATE OR REPLACE procedure some_procedure is
v_procedure_name varchar2(32);
begin
v_procedure_name := %%something%%;
end;
After %%something%% executes, variable v_procedure_name should contain 'SOME_PROCEDU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Django multiselect checkboxes I have a list of objects, each with it's own checkbox, where the user can select multiple of these. The list is a result of a query.
How can I mark in the view which checkboxes are already selected? There doesn't seem to be an in operator in the template language.
I want something along... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Microsoft AX and Business Connector / Enterprise Portal / Application Integration Framework I've been working a while with a project aiming to integrate AX with the Web.
The company who delivered AX has chosen to use Business Connector (BC.net) directly on my side of the backend.
I've searched a bit, and for me it l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby source code analyzer (something like pylint) Does Ruby have any tools along the lines of pylint for analyzing source code for errors and simple coding standards?
It would be nice if it could be integrated with cruisecontrolrb for continuous integration.
Or does everyone write such good tests that they don't nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: In a QTableWidget, changing the text color of the selected row I'm using a QTableWidget to display several rows. Some of these rows should reflect an error and their text color is changed :
Rows reflecting that there is no error are displayed with a default color (black text on white background on my computer).
Rows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I translate init.d scripts from Ubuntu/Debian Linux to Solaris? I have several init.d scripts that I'm using to start some daemons. Most of these scripts I've found on the internet and they all use start-stop-daemon. My understanding is that "start-stop-daemon" is a command that is specific to Linux or BSD di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I invoke (web) Button.Click in c#? As the title really, I'm in one part of my code and I would like to invoke any methods that have been added to the Button.Click handler.
How can I do this?
A: Do you mean you need to access it from elsewhere in your code? It may be an idea to refactor that section to it's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use Subversion connector SVNKit 1.2.1 from trunk in Eclipse I want to test a feature coming with SVNKit 1.2.1, which is not yet available on the update sites of the Eclipse or the Polarion project.
I got a checkout as described under "Latest Development Version" on svnkit.com/download.php, successfully built it with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Anyone know how to use WMI with C instead of C++? I'd hate to have to relearn C++ just for this! Any libraries/URLs would be great and yes, Google didn't help much here :-(
This is for an upcoming project in which my product (Java based) would provide support for Microsoft's Hyper-V virtualization platform. Unlike ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using a sharepoint document library, how can I create 'permalinks'? I want to be able to link to sharepoint documents without having to refer to the document name which may change.
Is there anyway to programmatically add a unique key to the meta-data and then somehow use this in a link?
A: You can link to the ID o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I print html files (with images, css) from the command-line? I want to print styled html pages with their images from a script. Can anyone suggest an open-source solution?
I'm using linux (Ubuntu 8.04) but would be also be interested in solutions for other operating systems.
A: You have a ton of options: html2p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can I specify interfaces when I declare a member? I need a member of my class to be a Control, and for it to implement an interface we define.
If I declare it like this...
public class MyClass
{
public Control MyMember;
}
... then I don't get the interface methods, but if I declare it like this...
public class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MySQL Caching Last night I added a parameter to a stored procedure in a mySQL database. I accessed it, messed up the parameter, and decided to remove the parameter again, for testing. Still minutes after re-creating the procedure without the parameter, my command object was still complaining about a missing parame... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are you really using unit tests? I have been involved in a lot of projects, both old and new, and one thing that they have in common is that almost none of them have been using unit testing. I prefer to use it, but often the customer isn´t ready to pay for that, and suppose that the code just works as it should.
So,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Mock filesystem in integration testing I'm writing a ruby program that executes some external command-line utilities. How could I mock the filesystem from my rspec tests so that I could easily setup some file hierarchy and verify it after testing. It would also be best to be implemented in ram so that tests would ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Can I be sure that the code I write is always executed in the same thread? I normally work on single threaded applications and have generally never really bothered with dealing with threads. My understanding of how things work - which certainly, may be wrong - is that as long as we're always dealing with single thre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Internals visible to Boo (Binsor) I am using Castle Windsor for IoC and I want to use Binsor to define my configuration.
I want to let my internals be visible to Boo. I have tried to mark my assembly with
InternalsVisibleTo("Boo.Lang") but that didn't do the job. I have tried InternalsVisibleTo("Rhino.Commons") bec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Eclipse CDT 5.0.1 (Ganymede) slow indexer problem I am trying to use Ganymede CDT to index our large codebase. It is painfully slow, can take a whole night to index the C++ files. Same project takes only 5 seconds to index with exuberant ctags 5.7.
Is there some way to find what the root of the problem is and to spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Extending every Ajax.Request onSuccess event (Javascript Prototype Framework) I have an application that uses Ajax.Request and its onSuccess event handler in lots of places.
I need to call a function (that will check the response) before all these onSuccess events fire. I tried using Ajax.Responders.register with o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: KeyListener in Java is abstract; cannot be instantiated? I am trying to create a Key Listener in java however when I try
KeyListener listener = new KeyListener();
Netbeans is telling me that KeyListener is abstract;cannot be instantiated. I know that I am missing some other piece of this key listener, but since th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Changing Keyboard Layout on Windows Mobile In the application there is a dialog where only numeric string entries are valid. Therefore I would like to set the numeric keyboard layout.
Does anyone know how to simulate key press on the keyboard or any other method to change the keyboard layout?
Thanks!
A: You don't n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to transfer data from python to another application in windows? I'm developing an application with a team in .Net (C++) and provide a COM interface to interact with python and other languages.
What we've found is that pushing data through COM turns out to be pretty slow.
I've considered several a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Exception safety/handling with .Net HtmlTextWriter? I am using a .Net HtmlTextWriter to generate HTML.
try
{
htw.RenderBeginTag( HtmlTextWriterTag.Span );
htw.Write(myObject.GenerateHtml());
htw.RenderEndTag( );
}
catch (Exception e)
{
GenerateHtmlErrorMessage(htw);
}
In this example, if an error exce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best Collection To Use? I am reading log files but not all lines want to be processed straight away. I am using a queue / buffer to store the lines while they wait to be processed.
This queue is regularly scanned for particular lines - when they are found, they are removed from the queue (they can be anywhere in it)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Opensource Object Database? Is there any open source Object Database available? I would like to have a look at the source code and see how stuffs are implemented.
A: http://www.zope.org/Wikis/ZODB is the first coming to mind, but here's a list of both commercial and open source object databases:
http://www.odbms.or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Hooking a Stacktrace in Delphi 2009 The Exception class in Delphi 2009 received a number of new features. A number of them are related to getting a stacktrace:
*
*property StackTrace: string read GetStackTrace;
*property StackInfo: Pointer read FStackInfo;
*class var GetExceptionStackInfoProc: function (P: PEx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What is a memory fence? What is meant by using an explicit memory fence?
A: Wikipedia knows all...
Memory barrier, also known as membar
or memory fence, is a class of
instructions which cause a central
processing unit (CPU) to enforce an
ordering constraint on memory
operations issued before and after th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "144"
} |
Q: What use is the Aliases property of assembly references in Visual Studio 8 When I add an assembly reference to a project in Visual Studio 8 the Aliases property, of that reference, is set to "global". What is this property good for and why is it set to global?
MSDN tells me that this is a list of aliases for the as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Casting problem in C# generic method I'm having some trouble with a generic method I'm writing. It has the following signature;
public static ThingCollection<T> GetThings<T>(...) where T : Thing
There are several classes; ThingA, ThingB and ThingC that inherit from Thing; and I want to be able to have code somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get the name of a property by passing it to a method StackOverflow user jolson had a very nice piece of code that exemplifies how one can register menthods without using strings, but expression trees here.
Is it possible to have something similar for properties instead of methods? To pass a property (not the name of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I print the lines in STDIN in random order in Perl? I want to do the inverse of sort(1) : randomize every line of stdin to stdout in Perl.
A: This perl snippet does the trick :
#! /usr/bin/perl
# randomize cat
# fisher_yates_shuffle code copied from Perl Cookbook
# (By Tom Christiansen & Nathan Torkingt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: library for server side image resampling using java? I want to create a serve resampled (downsized) version of images using jsp. The original images are stored in the database as blobs. I want to to create a jsp that serves a downsampled image with decent quality (not pixelated) as per the passed image width/height ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accessing a "nameless" Jbutton in an anonymous class from another anonymous class? I created 26 JButton in an anonymous actionListener labeled as each letter of the alphabet.
for (int i = 65; i < 91; i++){
final char c = (char)i;
final JButton button = new JButton("" + c);
alphabetPanel.add(button);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to download all of the WSDL files exposed by a WCF service? What is the best way to download all of the WSDL files exposed by a WCF service?
For example, the root WSDL file references the following other WSDL files:
<xsd:import schemaLocation="http://localhost:80/?xsd=xsd0" namespace="http://tem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Anyone know of good tutorials for creating an Augmented Reality application from scratch or using an open source framework? I am looking for good tutorials that go through every step of creating an AR application. It would be beneficial if it also covers some of the theory behind optics and such.
A: MXRToolkit have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to find all pages that use a Master Page in Visual Studio Is there a way to find all web pages that implement a specific master page in Visual Studio?
I'm looking for a shortcut like shift F12 that will find all usages of a master page. When I do it on the master page class name it only takes me to the design vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Remoting from a Swing app to GWT server To put it simple, I've written a JSE Swing app that needs to talk to a GWT server I've written earlier.
I absolutely love the way GWT does remoting between it's javascript and server sides and wish I could utilize this mechanism.
Has anyone managed to use GWT-RPC this way? Sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What code changes are required to migrate C++ from VS2003 to VS2005? We are considering moving the win32 build of our cross-platform C++ application from MS Visual Studio 2003 to MS Visual Studio 2005. (Yes, very forward-looking of us ;)
Should we expect to many code changes to get it compiling and working?
A: I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create conditions based on user role using JSF/MyFaces? What options do I have to read the roles of the current user from my JSP pages? I'm aware of the visibleOnUserRole="myRole" attribute on Tomahawk components, but I need roles for a bit more complicated things than simple visibility.
A: The ExternalConte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Setting focus to a button from text box? I have a few text boxes and buttons on my form.
Lets say txtBox1 is next to btnSubmit1,
txtBox2 is next to btnSubmit2,
txtBox3 is next to btnSubmit3.
How can I set the focus on btnSubmit3 when the user starts to type something in txtBox3.
Meaning..... if a user type in a text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NHibernate performance insert I'm doing some tests with nhibernate and I'm modifying batch_size to get bulk inserts.
I'm using mssql2005 and using the northwind db.
I created 1000 object and insert them to the database. I've changed the values of batch_size from 5 to 100 but found no change in the performance. I'm g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to get a file from sourcesafe programmatically? I need to get a file from sourcesafe database programmatically. Any idea of how to do it?
ps: I'll do that by using C#.
A: There is a command-line SS.EXE program that you can call to do source control operations. However, it relies on global SourceSafe configurat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the advantages of VS2008 over VS2005 for C++ development? We are considering switching from MS Visual Studio 2003 to MS Visual Studio 2005 for our C++ development. I think jumping to 2008 might be better.
In what ways are VS2008 better than VS2005 for C++ development?
Are there any disadvantages of VS2008 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Recommended resources for learning about Windows Installer Can you recommend any resources for learning about Windows Installer?
The best book I've found is "The Definitive Guide to Windows Installer" by Phil Wilson, but it's not very beginner friendly.
I've been asked to make recommendations for those wishing to 'g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JSON.NET and nHibernate Lazy Loading of Collections Is anybody using JSON.NET with nHibernate? I notice that I am getting errors when I try to load a class with child collections.
A: I was facing the same problem so I tried to use @Liedman's code but the GetSerializableMembers() was never get called for the proxie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Unresponsive KeyListener for JFrame I'm trying to implement a KeyListener for my JFrame. On the constructor, I'm using this code:
System.out.println("test");
addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent e) { System.out.println( "tester"); }
public void keyReleased(KeyEvent e) { System.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: Get value from dropdownlist en use value in UrlHelper I would try something like this but it isn't allowed.
function GetDynamicModulesProperties() {
var selectedValue = $("#moduletype option:selected").val();
if (selectedValue.lenght() > 0) {
var url = '<%= Url.Action("GetModuleProperties", new { se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inconsistent MySQL date comparison YYYY/MM/DD vs YYYY-MM-DD I have a MySQL (v 5, MyISAM) query that returns different rows depending on date string format.
(1) IFNULL(date1, ADDDATE('2008/10/31 23:59:59',INTERVAL 1 DAY)) > '2008-10-31 23:59:59'
(2) IFNULL(date1, ADDDATE('2008/10/31 23:59:59',INTERVAL 1 DAY)) > '2008... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: abcPDF 7 converting HTML to PDF but only getting the first page converted I'm currently using abcPDF 7 to convert HTML to PDF. This is done via an ASPX page where I override the Render method.
Doc theDoc = new Doc();
theDoc.SetInfo(0, "License", m_License );
theDoc.HtmlOptions.Paged = true;
theDoc.HtmlOptions.Timeou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to add CardSpace support to your ASP.NET application I like the idea of CardSpace but unlike OpenID it seems like a real PITA
to support it in your ASP.NET web application. I've found many examples, even a tutorial
in one of the books I own... but it would seem a lot more is required than what they suggest.
Chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A powerful management tool for MySQL with similar features to SQL Server Management studio I am currently working with a developer who is experienced at Ms-SQL, but not much at MySQL. He has been cursing MySQL for having Bugs, and also being far harder to use.
Is is because his experience has been so good with Manag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How do I convert a float to an int in Objective C? Total newbie question but this is driving me mad!
I'm trying this:
myInt = [myFloat integerValue];
but I get an error saying essentially integerValue doesn't work on floats.
How do I do it?
A: int myInt = (int) myFloat;
Worked fine for me.
int myInt = [[NSNu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Finding out which methods were changed by a checkin? Here's the deal - I want a way to figure out specifically which methods were touched or changed within the last milestone/iteration so that the methods' Javadoc is checked for correct content, especially for the public API methods.
Any ideas on how to do this, per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: InvokeWorkflow activity inside a replicator activity I have an invokeworkflow activity inside a replicator activity. The workflow that I'm trying to invoke requires 2 parameters to be passed to it, an integer and a string parameters, and these should be passed to the workflow by the replicator activity. Any ideas on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: changing users default login shell on RHEL? Here is a command on free bsd
sudo pw usermod ksbuild -s /usr/local/bin/bash
how do I do the equivalent on RHEL?
A: chsh
(Change Shell)
A: Or for just a specific user:
usermod -s /usr/local/bin/bash ksbuild
A: To change the default setting of all new users, edit the se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: $param name in div I have A $param that I am passing into a template. I wish to use the value of this parameter as class name for a div. The class is not taking the value of the parameter but taking the parameter name (in the html page it is $param). Is there any way I can use the value of a parameter as a class nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set web part personalizable property from JavaScript I have defined a personalizable property on a web part and I would like to modify its value from JavaScript. Is it possible?
A: You would have to use AJAX to send a message to the server. There's no way to set it from JavaScript without going to the server.
The A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DNS of the server where ASP.NET application is run How to get to know DNS name of the server where ASP.NET application is run?
I want to get string "www.somehost.com" if my application URL is http://www.somehost.com/somepath/application.aspx
Is there some property of Server, Contex, Session or Request objects for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Export to Excel results to doc lock, cannot edit the sheet please help me solve the following issues.
*
*When I export a report from SQL reports 2005 the image logos are distorted a bit, and the sheets are locked so further editing and sorting is not possible.
*When I unlock the the frozen cells, to allow s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you convert Html to plain text? I have snippets of Html stored in a table. Not entire pages, no tags or the like, just basic formatting.
I would like to be able to display that Html as text only, no formatting, on a given page (actually just the first 30 - 50 characters but that's the easy bit).
How do I pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "128"
} |
Q: How do you use F1 help in Delphi 2007? In my application, originally built with Delphi 7, I use the SPHelpIntegration code to enable CHM help via the F1 interface. I figured that this wasn't needed in Delphi 2007, so I removed the units and built my app. I then press F1 and get a message that no help interface is in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Simple Password Javascript Code? I need a Javascript application that, when run, prompts a password to be entered, and if the password is correct, the script causes the webpage to close. If the password is incorrect, the script prompts for the password to be entered again.
I'm planning on loading this script onto my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to reference two versions of an API? I have a need to reference two different versions of the Sharepoint API dll. I have a webservice that needs to run under both Sharepoint 2 and Sharepoint 3, but also needs to work with new features provided by the Sharepoint 3 API (Checkout and Content Approval)
What is the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Windows Service without the VS2005 template I have the VS2005 standard edition and MS says this:
Note: The Windows Service Application
project templates and associated
functionality are not available in the
Standard Edition of Visual Basic and
Visual C# .NET...
Is it possible to write a Windows Service a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Freezing associated objects Does anyone know of any method in Rails by which an associated object may be frozen. The problem I am having is that I have an order model with many line items which in turn belong to a product or service. When the order is paid for, I need to freeze the details of the ordered items so th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Describe the architecture you use for Java web applications? Let's share Java based web application architectures!
There are lots of different architectures for web applications which are to be implemented using Java. The answers to this question may serve as a library of various web application designs with their p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "148"
} |
Q: Jetlang PoolFiber sample I started with jetlang and the basic samples are pretty clear.
What I didn't found is a good sample for using the PoolFiber. Anybody played around
with that already? I read also the retlang samples but it seems little bit different there.
Thanks for sharing your thoughts!
Okami
A: Using a P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: vb.net - Functions and Arbitrary typed Generics Is there a way to create a function/sub signature that accepts an arbitrary typed generic in vb.net.
A: Its like this:
Public Function DoThing(Of T)(ByVal value As T)
A: You can read about generic types in Visual Basic here http://msdn.microsoft.com/en-us/library/w2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Localization for Winforms from designmode? I need to bind labels or items in a toolstrip to variables in Design Mode.
I don't use the buit-in resources not the settings, so the section Data is not useful. I am taking the values out from an XML that I map to a class.
I know there are many programs like:
http://www.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I load Excel files selectively? I have an SSIS package that needs to lookup two different types of excel files, type A and type B and load the data within to two different staging tables, tableA and tableB. The formats of these excel sheets are different and they match their respective tables.
I have thought ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open file with MIDlet.platformRequest() Is it possible to get a device to open a file on disk using the MIDlet.platformRequest(String url) method? I was hoping to use the following:
midlet.platformRequest("file:///path/to/file/file.png");
But this just throws a ConnectionNotFound exception. I'm specifically using t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reversed offset tokenizer I have a string to tokenize. It's form is HHmmssff where H, m, s, f are digits.
It's supposed to be tokenized into four 2-digit numbers, but I need it to also accept short-hand forms, like sff so it interprets it as 00000sff.
I wanted to use boost::tokenizer's offset_separator but it seems... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java PDF viewer with FDF My company needs a PDF viewer with Java API with the additional requirement on being able to use FDF form data.
The only one i found was JPedal which promises to feature everything we need, but it costs a bunch. So what are my options? Is there another tool to do it?
edit:
I found iText to b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Large file download in background, initiated from the browser Is there any reasonable method to allow users of a webapp to download large files? I'm looking for something other than the browser's built-in download dialog - the requirements are that the user initiates the download from the browser and then some other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What would be the Windows batch equivalent for HTML's input type="password"? I need to get authentication credentials from the users within a Windows script but the classic "first Google result" approach:
SET /P USR=Username:
SET /P PWD=Password:
is less than satisfying, so I was wondering if there's let's say an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Getting Netbeans and Subversion to play together nicely with libraries? I'm having a difficult time figuring out how to add a .jar/library to a Netbeans project in such a way that I can get it committed to the repository.
The typical way to add a library (per the Netbeans documents I've already gone through) ends up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Graphing or charting in windows mobile 6 Do you know of a [free] library for graphing or charting, similar to Zedgraph, but that works for developing on windows mobile 6?
A: A basic, free chart API is http://www.codeproject.com/KB/mobile/pocketbargraph.aspx
If web access and bandwidth are not a problem, http://code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to best create a test DB when doing TDD? what's the best practice for creating test persistence layers when doing an ASP.NET site (eg. ASP.NET MVC site)?
Many examples I've seen use Moq (or another mocking framework) in the unit test project, but I want to, like .. moq out my persistence layer so that my website... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Why are most (all?) Obfuscation-tools directed to C# and other C-languages and not VB? I dont know if I'm right, but allmost everytime I read about obfuscation and tools that handle it, then its about C#, Java, Javascript and all other languages than VB.
As I can see its equal important for me as a VB-developer to p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: remove GAC assembly using vbscript Like the title says, how can I remove GAC assembly file using vbscript?
A: You can run this to uninstall it from GAC:
gacutil /u YourAssembly
A: As I remember gacutil in a .NET enabled shell.
C:\>gacutil
Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.21022.8
Cop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/286894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.