text stringlengths 8 267k | meta dict |
|---|---|
Q: If I turn a collection of Number into a table, what's the name of the column? 10gR2 If I wanted to replace the * with a column name, what would it be?
create type mytable$t as table of number;
/
declare
mytmou mytable$t := myTable$T();
cnt pls_integer ;
begin
mytmou := myTable$T(1,2,3,4,5,6);
SELECT ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to disable console options Is it possible to disable the options dialog box for a .net console application? Or somehow keep the user from changing the console properties?
A: No. It is not possible.
Actually, it might be possible by acquiring the hWnd of the console window and tinkering with it. But this will c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL - querying via a textbox which could take different values Developing a website and just trying to get back into the swing of (clever) SQL queries etc, my mind had totally gone tonight!
There is a website http://www.ufindus.com/ which has a textbox allowing you to enter either a place name or a postcode/zipcode.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Special Characters in URL We're currently replacing all special characters and spaces in our URLs with hypens (-). From an SEO and readability point-of-view this works fine. However, in some cases, we are feeding parts of the URL into a search after stripping the hyphens out. The problem occurs when the search term ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Windows, how can I launch cygwin shells n times and then resize their windows? My hope is to one-click a shortcut, and get a grid of cygwin shells laid out before me, filling up my whole screen.
Any idea where I should start looking?
A: Short answer: .pif files and a batch file... Long answer: Write some code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it better to have one UpdatePanel around multiple controls or separate UpdatePanels? I have a web form that has multiple ListBoxes, TextBoxes, DropDowns. If I put one UpdatePanel around the whole page, I noticed the page is slower. Is this because, every control is being updated? If I put different UpdatePanel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: If abstract base class is an interface, is it obligatory to call base class constructor in derived class constructor? class AbstractQuery {
virtual bool isCanBeExecuted()=0;
public:
AbstractQuery() {}
virtual bool Execute()=0;
};
class DropTableQuery: public AbstractQuery {
vector< std::pair< string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are there any tools for checking symbols in cross compiled .so files? I've got an application that loads .so files as plugins at startup, using dlopen()
The build environment is running on x86 hardware, but the application is being cross compiled for another platform.
It would be great if I could (as part of the aut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MouseCapture prevents all mouse based triggers from firing in WPF I am using CaptureMouse() during a drag and drop operation to make sure I don't miss the MouseUp event, but this seems to prevent any mouse events reaching any other objects on my Canvas. This means that my IsMouseOver based triggers don't work, but I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When scoping a project, how can I capture the marketing feature requirements to ensure a project's success? In the situation of having a project initiated by a marketing or sales team, how can we capture the not so obvious requirements that the project be marketable, or even better, self marketing?
In many cases th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET - Storing SQL Queries in Global Resource File? Is it a good idea to store my SQL queries in a global resource file instead of having it in my codebehind? I know stored procedures would be a better solution but I don't have that luxury on this project.
I don't want queries all over my pages and thought a cen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Scroll to bottom of div? I am creating a chat using Ajax requests and I'm trying to get messages div to scroll to the bottom without much luck.
I am wrapping everything in this div:
#scroll {
height:400px;
overflow:scroll;
}
Is there a way to keep it scrolled to the bottom by default using JS?
Is there a wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1027"
} |
Q: Use .NET COM in vb6 Im having trouble using a .NET COM in vb6, It compiles ok and I use regasm to register it, add a reference to it in the vb6 project, it even has intellisense. But when I try to make make an instance it gives me an 'Automation Error'. Any one can help?
Thanks in advance.
A: You probably need to m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .Net 3.5 Windows Forms Application: x86 vs x64 load times on 64 bit Vista We are developing a Winforms application and in the process of optimizing the start-up time.
The app runs on 64 bit Vista machines. In our testing we found what seems like a counter intuitive result. All else equal, targeting 32-bit vs 64-bit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to build an ActiveX object in C++ that can be scripted using Javascript I can use VS08's MFC/ActiveX template to create a C++ ActiveX object that I can load into a HTML page and script with Javascript. But I can't figure out how to create an interface that allows me to call custom methods on my component with Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 3rd Party Password Management with Complete Integration I use C#, IIS, ASP.NET, SQL Server.
Is there a third-party platform I can easily integrate into my system, to handle password management?
It would have to integrate 100% (no OpenID), so that the users would not notice.
A: ASP.NET actually has some built-in fe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Run a script when either locking or unlocking Windows XP I have a Windows XP machine and a Linux machine running Ubuntu. I share the keyboard/mouse from the Windows machine via Synergy. What I would like to do is lock/unlock the Linux machine whenever I lock/unlock the Windows machine.
So I'd like to be able to run ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using Lists in C# I am an upper level Software Engineering student currently in a Data Structures and Algorithms class. Our professor wants us to write a program using the List structure found in the C++ STL. I have been trying to use C# more and more, and was wondering if the ArrayList structure in .NET is a good... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to represent a wide grid for printing? We have many WIDE html grids which scroll horizontally within a DIV in our web application.
I would like to find the best strategy for printing these grids on a portrait A4 page.
What I would like to know is what is the best way to present/display grids/data like this.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to use custom fonts in a PDF file? Well basically I'm finishing school in mid December so I'm just brushing up my resume and I'm wondering if there's a way to use custom fonts (in this case Calibri and Cambria) in a PDF file and make them render correctly on all computers.
Thanks in advance!
EDIT: I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the best way for a .NET Compact Framework executable to delete itself? I'd like my .NET Compact Framework app to delete itself after it finishes executing. What's the best way to do this?
On a Windows machine it's possible to do this using a .bat file, but that's not an option on mobile devices.
A: In Windo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tkinter: invoke event in main loop How do you invoke a tkinter event from a separate object?
I'm looking for something like wxWidgets wx.CallAfter. For example, If I create an object, and pass to it my Tk root instance, and then try to call a method of that root window from my object, my app locks up.
The best I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: What guidelines do you adhere to for writing good logging statements I recently found a log statement in my projects codebase that says
"here i am with search parameter==>===========11/30/2008===1====00:00 AM"
what guidelines do you adhere to for writing good log messages in an application?
A: Do not do String conc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: CMS versioning strategies for content I'm looking at building basic CMS functionality into our web product and am researching tips and design ideas for versioning content. I'm specifically looking for database schemas in use today.
What are you using for content versioning? What patterns apply if you have different ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: barebone asp.net Is it possible to do Web form without using server control or set runat attribute on html control? How do you call the code behind function?
A: You can't call codebehind functions without a runat="server" tag at a minimum. If you created a Web Service instead, you could create a pure html/javascrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: unicode in postscript Is there anyway to use unicode strings (most probably in UTF-8, but could be any encoding) in PostScript?
So far, i've been using this function to transforms fonts to Latin1 encoding:
/latinize {
findfont
dup length dict begin
{ 1 index /FID ne {def}{pop pop} ifelse }forall
/Encoding IS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Print PDF from ASP.Net without preview I've generated a pdf using iTextSharp and I can preview it very well in ASP.Net but I need to send it directly to printer without a preview. I want the user to click the print button and automatically the document prints.
I know that a page can be sent directly to printer using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: man sections How do I access specific sections of man pages?
A: To add to what Jason said: if you're not sure what section something is in, you can also see all of the man pages for a given topic by typing
man -a topic
This is useful for topics such as printf, for which there is both a command and a C function tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Return a value from a insert statement Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB. Is there a way to have an insert statement return a value? I have a sequence set up to number entries as they go into the database, but I need that value to come back after the insert so I ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Any advice on 'breaking' an object out of its layout in Flex - for animation purposes? If I have an object in a layout in Flex what is a good way to 'break it out' of that layout to be able to animate it.
For instance I have an image and a caption arranged at an angle. I want to make the image 'zoom out' slightly wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating PDF Invoices - Are there any templating solutions? Our company is looking to integrate invoices into a new system we are developing.
We require a solution to create a layout of the invoice and then convert to pdf.
We have considered just laying out the invoice in html/css then converting to pdf.
We have al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: string array with garbage character at end I have a char array buffer that I am using to store characters that the user will input one by one. My code below works but has a few glitches that I can't figure out:
*
*when I execute a printf to see what's in Buffer, it does fill up but I get garbage characters at th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Delphi 2009 generics compilation problem I'm checking out the Delphi 2009 Trial, but run into problems with the generics stuff right away.
The following code does not compile, and I haven't the slightest idea why it's giving me E2015 for the Equals() method:
type
TPrimaryKey<T> = class(TObject)
strict private
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How would I go about figuring out the maximum load my server(s) can handle? In Joel's article for Inc. entitled How Hard Could It Be?: The Unproven Path, he wrote:
...it turns out that Jeff and his
programmers were so good that they
built a site that could serve 80,000
visitors a day (roughly 755,000 page
v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I determine all of my IP addresses when I have multiple NICs? I have multiple Network Interface Cards on my computer, each with its own IP address.
When I use gethostbyname(gethostname()) from Python's (built-in) socket module, it will only return one of them. How do I get the others?
A: All addresses in on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: What symbols are used after base 36 Since Hex (base 16) uses 0-9A-F, and (I'm assuming here) Base 17 uses 0-9A-G and so on. What symbols are used once 0-9A-Z are all used up.
A: The standard way to write IPv4 adresses can be viewed as a base 256 representation, where decimal numbers are separated by points.
A: wel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Data structure for soundex algorithm? Can anyone suggest me on what data structure to use for a soundex algorithm program? The language to be used is Java. If anybody has worked on this before in Java. The program should have these features:
be able to read about 50,000 words
should be able to read a word and retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I use cperl-mode with perl-mode colorization? The Emacs cperl-mode seems to get confused less than perl-mode, but the Skittles effect makes the thing unusable for me. Does anyone have or know of an example of a .emacs block that causes cperl-mode to use the colorization from perl-mode, ideally in a form readabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Recommended Java/AJAX design pattern? We need some input on what is a good design pattern on using AJAX in a Java application.
Consider a simple scenario:
*
*User clicks a button which sends a request to a Java method to fetch data from DB.
*Java object is returned by method and needs to be converted into a HTM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to get the origin IP address from a JMS message? I have a system in which different server processes are handling requests passed as JMS messages from various clients via a JMS broker.
I am trying to identify the source of the messages. Is there a way to get the IP or some identifying information abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I deserialize this simple xml config with the XmlSerializer class? I have the following xml I'd like to deserialize into a class
<?xml version="1.0" encoding="utf-8" ?>
<root>
<element1>String1</element1>
<element2>String2</element2>
</root>
I am trying to serialize it into the following class:
[XmlR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need an XNA framework equivalent, that WORKS with system.windows.forms (it doesn't have to work with XBox 360) Next Semester I will be taking a "Software Practive II" class. In that class, my professor wants us to learn XNA. I have been playing around with XNA for quite sometime, and enjoy its functionality and sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why does Hibernate/JDBC/MySQL drop connections after a day or so? I have several server processes that once in a while respond to messages from the clients and perform read-only transactions.
After about a few days that the servers are running, they stop working correctly and when I check it turns out that there's a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: In Windows, how do I run a shortcut into the background from a command prompt? cmd /C "myshortcut1.lnk"
cmd /C "myshortcut2.lnk"
Works, but gives me a pop-up DOS window which, when closed, kills my two loaded programs. Same is true for this:
start /B cmd /C "1.lnk"
start /B cmd /C "2.lnk"
start /B cmd /C "3.lnk"
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I drop and create indexes on my tables that SQL Server created? In an effort to get rid of some fragmentation left from rebuilding and defraging
we thought that we would drop and create indexes so I went to write a script.
It identifies a clustered index that needs work and drops indexes and primary keys
and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extensible rule-based access pattern I control access to some of my static web resources with some PHP logic. Because directory-based authorization through the webserver is not suitable or easily possible.
A combination of things determines whether access is granted or denied. And these rules change from time to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Delegate calling generic method inside of a generic class pegs CPU during deserialization Has anyone else run into this problem before? I've got a method that calls a generic method with a delegate, inside of a generic class. I've marked the class as Serializable, and it serializes without complaint. But, when I try... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Internationalizing Desktop App within a couple years... What should we do now? So we are sure that we will be taking our product internationally and will eventually need to internationalize it. How much internationalizing would you recommend we do as we go along?
I guess in other words, is there any internationaliza... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: SharePoint searching external database We're looking at doing a MOSS 2007 site which will have a fairly dynamic component (an external product catalog). The external produces will be stored in a database (not managed by SharePoint) and all interaction will occur via Web Parts.
Is it possible to configure the SharePo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I bind a function to a component programatically in Actionscript? I am trying to provide my own labelFunction for a CategoryAxis programatically but am completely stumped. The regular way is to do it in your MXML file, but I want to do it in my Actionscript file.
The regular way of doing it is:
<mx:Script>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are we all looking for the same IRepository? I've been trying to come up with a way to write generic repositories that work against various data stores:
public interface IRepository
{
IQueryable<T> GetAll<T>();
void Save<T>(T item);
void Delete<T>(T item);
}
public class MemoryRepository : IRepository {.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is it possible to share a DataTrigger? I have a DataTrigger defined in my XAML which I want to use in several places. Is it possible to define it as a resource and then share it?
Here's my trigger:
<TextBlock.Style>
<Style>
<Style.Triggers>
<DataTrigger Binding="{Binding HasCurrentTest}" Valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Efficiently updating database using SQLAlchemy ORM I'm starting a new application and looking at using an ORM -- in particular, SQLAlchemy.
Say I've got a column 'foo' in my database and I want to increment it. In straight sqlite, this is easy:
db = sqlite3.connect('mydata.sqlitedb')
cur = db.cursor()
cur.execute('... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "150"
} |
Q: Writing large strings with DataOutputStream I've been doing some socket programming to transmit information across the wire. I've run into a problem with DataOutputStream.writeUTF(). It seems to allow strings of up to 64k but I have a few situations where I can run over this. Are there any good alternatives that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: CakePHP 1.2: How do I lock a given controller from access from anyone but admins? I'm not looking for the whole ACO-ARO implementation... I just want to use Auth, and check against the user's role....
What do I put where in order to simply deny users from a given controller unless they have a certain role.
I'm tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does this map statement in Perl not compile? This fails:
my @a = ("a", "b", "c", "d", "e");
my %h = map { "prefix-$_" => 1 } @a;
with this error:
Not enough arguments for map at foo.pl line 4, near "} @a"
but this works:
my @a = ("a", "b", "c", "d", "e");
my %h = map { "prefix-" . $_ => 1 } @a;
why?
A: Also,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Attach labels to items in TFS from the PowerBuilder IDE? We do this using the Advanced button on the checkin dialog now (with Merant, nee PVCS) but the Advanced button is disabled when I set TFS as my SCC provider. Is there a switch we can flip on either side to enable this?
*
*Or do we need to write some cust... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why should I declare a virtual destructor for an abstract class in C++? I know it is a good practice to declare virtual destructors for base classes in C++, but is it always important to declare virtual destructors even for abstract classes that function as interfaces? Please provide some reasons and examples why.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "173"
} |
Q: How do you get the HTTP status code for a remote domain in php? I would like to create a batch script, to go through 20,000 links in a DB, and weed out all the 404s and such. How would I get the HTTP status code for a remote url?
Preferably not using curl, since I dont have it installed.
A: If im not mistaken none... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Passing values with Parallel Extensions and VB.net I am looking for an example of how to do the following in VB.net with Parallel Extensions.
Dim T As Thread = New Thread(AddressOf functiontodowork)
T1.Start(InputValueforWork)
Where I'm getting stuck is on how to pass into the task my parameter InputValueforWork
Di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PageRequestManager is undefined I am seeing this error intermittently. My app throws PageRequestManager is undefined and so fails to load. Oddly enough this only happens in firefox, ie loads fine. Anyone know what this error means. I've been working on the app for some time and I just started seeing this today.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a difference between name decoration/mangling and attribute decoration? I've been reading a text about an extension to C# and at one point it says that "An attribute decoration X may only be applied to fields of type Y."
I haven't been able to find a definition for attribute decoration, and I'm not making m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I determine what WebMethod was called in a webservice The situation is this. I have an asp.net webservice application...say a page called api.asmx
In the code behind I have several methods, for example:
[WebMethod(Description="Method1")]
public int GetSomething(int num1, int num2){
try{
return SomeObj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does Visual Studio have debug symbols available? I'd like to track down a possible bug in Visual Studio, but that's awfully hard without the debug symbols for Visual Studio itself. Does Microsoft make these available?
A: An up-to-date Visual Studio should already have the option to load symbols from Microsoft (Chec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using Emacs to recursively find and replace in text files not already open As a follow-up to this question, it's trying to find out how to do something like this which should be easy, that especially stops me from getting more used to using Emacs and instead starting up the editor I'm already familiar with. I use th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "227"
} |
Q: Highly complex, integrated web app - which language would you use? Say you had to develop a web-based application that needs to be able to read the contents of a .NET DLL, and from that, populate the local database with a list of all the namespaces, classes, etc.
It has to also do the same thing with Java JAR files.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prevent 'cp' from outputting the file name from a bash script I have a shell script which copies a few files to the current directory, compresses them, and streams the compressed file to stdout.
On the client side I use plink to execute the script and stream stdin to a file.
This almost works.
It seems that the cp c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL C API using results I am using the MySQL C API to query the database and I have the results stored in MYSQL_ROW types. I am able to print the results to the console with
printf("%s", row[0]);
however, according to the MySQL C API documentation, I cannot use them as null-terminated strings.
At the bottom of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to break when an event occurs, or determine associated handlers? I'm using a large open-source control and I can't seem to find the code that handles a double-click event. Could I perhaps have the debugger break when a double-click occurs or otherwise learn what code is associated with that event?
A: Well, I st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to have Authenticate for a Web Service We have a .NET web service API. Currently, people use the SOAP definition to consume the API, because we require authentication through a custom Authentication element in the SOAP header. Works perfectly. fine.
SOAP requires the request to be a POST. We wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can any one provide me a sample of Singleton in c++? I write a singleton c++ in the follow way:
class A {
private:
static A* m_pA;
A();
virtual ~A();
public:
static A* GetInstance();
static void FreeInstance();
void WORK1();
void WORK2();
void... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How to preserve an ampersand (&) while using FOR XML PATH on SQL 2005 Are there any tricks for preventing SQL Server from entitizing chars like &, <, and >? I'm trying to output a URL in my XML file but SQL wants to replace any '&' with '&'
Take the following query:
SELECT 'http://foosite.com/' + RTRIM(li.image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: LinkedList remove method What is a doubly linked list's remove method?
A: public void remove ()
{
if (getPreviousNode () != null)
getPreviousNode ().setNextNode (getNextNode ());
if (getNextNode () != null)
getNextNode ().setPreviousNode (getPreviousNode ());
}
A: The same algorithm th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Creating/Recreating a Migration-generated Record in the Test Database with RSpec I have a migration in Rails that inserts a record into the database. The Category model depends on this record. Since RSpec clears the database before each example, this record is lost and furthermore never seems to be created since RSp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I apply authenticated proxy exceptions to an opener using urllib2? When using urllib2 (and maybe urllib) on windows python seems to magically pick up the authenticated proxy setting applied to InternetExplorer. However, it doesn't seem to check and process the Advance setting "Exceptions" list.
Is there a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: g++ partial linking instead of archives? I'm pretty new to the C++ build flow, and I'm thinking of switching to use partial linking for my libraries instead of creating ar archives. I'm hoping to reduce link time in an inevitable final compilation step that I have, and I figure partial linking some libraries once co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there an Open-Source Web Search Library that does not use a Search Index File? I'm looking for an open-source web search library that does not use a search index file.
Do you know any?
Thanks,
Kenneth
A: The original poster clarified in a comment to this reply that what he is looking for is essentially "greplike... | {
"language": "en",
"url": "https://stackoverflow.com/questions/270997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Anyone know of a set of C# bindings for FFMPEG? Does anyone know of a set of bindings for C# to drive the FFMpeg library directly ? I could shell to ffmpeg.exe directly but I found it hard to sync/control as a separate process. any help would be appreciated.
A: I've seen this library:
ffmpeg-sharp a wrapper library... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Best IT/back-office system hacks? Lots of people have things that their systems do for them or for their teams. Source control post-commit hooks are a standard example: have an automated build system that checks out the latest source, compiles, tests, and packages it is a back-office hack that most of us probably us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Should I install SQL Server 2008 on my DEV machine? I'm wondering if I'll have trouble installing SQL Server 2008 on my development machine whilst our production server is 2005? E.g. is something change so that my 2005 databases/sps/functions/views will not work correctly or other issues I should think about?
Would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Designing a Stored procedure to create XML tree I need to write a Stored procedure in SQL server whose data returned will be used to generate a XML file.
My XML file to be in structure of
<root>
<ANode></ANode>
<BNode></BNode>
<CNode>
<C1Node>
<C11Node></C11Node>
<C12Node></C12Node>
</C1Node>
<C2Node>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you minimise the number of auxiliary scan descriptors for a table in T-SQL? I've recently seen occasional problems with stored procedures on a legacy system which displays error messages like this:
Server Message: Number 10901, Severity 17:
This query requires X auxiliary scan
descriptors but currentl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading an email string from a cookie in java My application needs to store the users email address in a cookie so that I can pre-populate a login form (username == email address). I set the cookie value in JavaScript. If I read it from JavaScript, I get foo@bar.com. If I look at it in the cookie viewer in Firefox I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: invoking functions while debugging with Visual Studio 2005? Here's something I know is probably possible but I've never managed to do
In VS2005(C++), While debugging, to be able to invoke a function from the code which I'm debugging.
This feature is sometimes essential when debugging complex data structures which ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: jquery $.post empty array I'm using jQuery to post a form to a php file, simple script to verify user details.
var emailval = $("#email").val();
var invoiceIdval = $("#invoiceId").val();
$.post("includes/verify.php",
{invoiceId:invoiceIdval , email:emailval },
function(data) {
//stuff here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Easy Way to Consume/Display RSS Feed in MVC ASP.NET I'm new to the MVC framework and wondering how to pass the RSS data from the controller to a view. I know there is a need to convert to an IEnumerable list of some sort. I have seen some examples of creating an anonymous type but can not figure out how to convert a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why do I get the exception - Unable to load DLL '?????.dll': The specified module could not be found I'm using Emgu.CV which is a C# wrapper for the OpenCV libraries.
I changed the Emgu.CV source to invoke from the latest OpenCV library cv110.dll instead of cv100.dll and now I get this error (where ????? is cv110.d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Suggested initial Emacs config? I would like to to try Emacs, and want to give it the best chance possible.
To do this, it seems like having a good .emacs file is important.
I primarily use Mac OS X (so I have looked at Aquamacs), and I mainly do Python programming, so anything specifically for that would be great.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How can I make a TextArea 100% width without overflowing when padding is present in CSS? I have the following CSS and HTML snippet being rendered.
textarea
{
border:1px solid #999999;
width:100%;
margin:5px 0;
padding:3px;
}
<div style="display: block;" id="rulesformitem" class="formitem">
<label for="ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "472"
} |
Q: What is the difference between an int and a long in C++? Correct me if I am wrong,
int is 4 bytes, with a range of values from -2,147,483,648 to 2,147,483,647 (2^31)
long is 4 bytes, with a range of values from -2,147,483,648 to 2,147,483,647 (2^31)
What is the difference in C++? Can they be used interchangeably?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "130"
} |
Q: Django - How to do tuple unpacking in a template 'for' loop In my views.py, I'm building a list of two-tuples, where the second item in the tuple is another list, like this:
[ Product_Type_1, [ product_1, product_2 ],
Product_Type_2, [ product_3, product_4 ]]
In plain old Python, I could iteration the list like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: How to statically link an existing linux executable? Looking for a way to convert a dynamically linked executable to a static executable. Seems like it should be possible but man pages are turning up short and google's not helping either.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/271089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Automate SSH without using public key authentication or expect(1) Is there a way to pass a password to ssh automatically. I would like to automatically ssh to a server without using public key authentication or expect scripts, by somehow getting ssh to read the password from stdin or a file.
The reason it has to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to convert JspxIncludePathReferenceProvider for IntelliJ IDEA 8 I wrote an IntelliJ IDEA plugin for version 7.0 that uses JspxIncludePathReferenceProvider to allow autocomplete in a custom JSP tag (e.g. dsp:include src="/path/to/file.jsp").
The new version 8 of IntelliJ has changed the API for the Reference prov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple calculator program in C/C++ I am trying to get this program to give me an out put that when I do an addition, subtraction, multiplication, or division problem it will give me the answer. However, it is not working can anyone help.
int main ()
{
int choice;
float a, b;
float sum;
float differen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iterate static int values in java I have a simple question. Is there a way ( using reflections I suppose ) to iterate all the static values of a class?
For instance
class Any {
static int one = 1;
static int two = 2;
static int three = 3;
public static void main( String [] args ) {
for( i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: jetty - reload tag file in jar I have my main web project and a common project which houses my tag files. Currently I use jetty in exploded structure and I jar up my common project with my tag files and place into web-inf/lib.
When I make a change to my tag file, I can rejar and place into web-inf/lib again, though ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does an OS generally go about managing kernel memory and page handling? I'm working on kernel design, and I've got some questions concerning paging.
The basic idea that I have so far is this: Each program gets its own (or so it thinks) 4G of memory, minus a section somewhere that I reserve for kernel functions t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Ruby on Rails plugin for showing line numbers in log for SQL queries Does anybody know any plugin, that can show line numbers for SQL queries in Rails logs? Something like this:
User Load (0.003154) SELECT * FROM `users` WHERE (`users`.`id` = 1) - (user.rb, line 24)
Thanks!
A: This plugin puts the stack trace in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Nexus CMS - Google Search Appliance indexing http://nexuscms.com/
Anybody use this CMS? i dont know much about it, need to index a site which was built using it with a GSA (google search appliance), but there is very little documentation about it on their website.
wondering if there will be any pitfalls, what type o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/271131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.