text string | meta dict |
|---|---|
Q: SqlCacheDependecy command notification not working I been trying to get sqlcachedependecy working, but it doesn't appear to work
I got the proper settings in my web.config and also global.asa, however when I run this query and the changes are made to the database from either with in or outside the web site the cach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web Subversion repository-browsing tool, with a twist I've seen a number of questions asking about a web SVN repository-browsing tool. However, of the ones I've taken a look at, they either require a specific username/password to be configured, rely on default access to the repository being available, or require a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: java message bundle - property file naming convention when using variants? what is the naming convention for message bundle property files when using variants?
for instance, if the locale is EN US, the property file lookup will be
message_en_US.properties
though, what if I instantiate a local EN US though the varian... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing database connection by reference in PHP The question is if a database connection should be passed in by reference or by value?
For me I'm specifically questioning a PHP to MySQL connection, but I think it applies to all databases.
I have heard that in PHP when you pass a variable to a function or object, tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Color regex matches - without dropping misses When using grep --color=always I can get pretty color highlighting for regex matches.
However, grep only returns lines with at least one match. Instead, I am looking for a way to simply highlight regex matches, while leaving all other input alone, without dropping lines... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Remove C and C++ comments using Python? I'm looking for Python code that removes C and C++ comments from a string. (Assume the string contains an entire C source file.)
I realize that I could .match() substrings with a Regex, but that doesn't solve nesting /*, or having a // inside a /* */.
Ideally, I would prefer a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How can I stream cross-platform video without using RealServer (Helix) and Real Player? For years we've been using RealNetworks' Helix server to serve streaming video courses.
It has been a pretty reliable solution up until now.
As of late, our support calls due to RealPlayer issues has gone from 2 or 3 a week (most... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to change the format of substitution variables in a template I need to to iterate over the files in a directory and perform the following replacement.
Before:
Hello ${USER_NAME}, you live at
${HOME_ADDRESS}. It is now ${TIME}
After:
Hello ${userName}, you live at
${homeAddress}. It is now ${time}
The num... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XmlReader - Self-closing element does not fire a EndElement event? I am using XmlReader in .NET to parse an XML file using a loop:
while (xml.Read()) {
switch xml.NodeType {
case XmlNodeType.Element:
//Do something
case XmlNodeType.Text:
//Do something
case XmlNodeType.EndElement:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: When to use static classes in C# Here's what MSDN has to say under When to Use Static Classes:
static class CompanyInfo
{
public static string GetCompanyName() { return "CompanyName"; }
public static string GetCompanyAddress() { return "CompanyAddress"; }
//...
}
Use a static class as a unit of
organ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "670"
} |
Q: For ruby/webrick, I need windows to recognize shebang (#!) notation (Bear with me, I promise this gets to shebang and windows.)
I have about the simplest of WEBRick servers put together:
require 'webrick'
include WEBrick
s = HTTPServer.new(:Port=>2000, :DocumentRoot=>Dir::pwd)
s.start
Couldn't be simpler. This ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to display Swing components in a JSP? I was wondering if I could pop up JOptionPanes or other Swing components from within a browser using JSP.
A: If you embed an applet. But I don't think that's what you want. Swing is for desktop apps. JSP web pages. If you want components, try looking into JSF or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What exactly is the deal with oracle connection identifiers separated by a period I've been wondering this for a while but since it hasn't come up much I've left it in the 'mysterious wizardy' column.
It seems to me that there is some sort of relationship between a connection identifier like ABC and ABC.DEFG and I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you unit test different class access levels? I admit - I'm a complete novice when it comes to unit testing. I can grasp the concepts easily enough (test one thing, break-fix-test-repeat, etc.), but I'm having a bit of a problem getting my mind around this one...
I've been tasked with rewriting a large section... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: best way to generate and highlight menu items on server (asp.net) I have an ascx component, that holds two-level menu, because there are several user types, and the menu needs to be computed on server.
Anyways - I'm also doing the highlighting of current menu item on server (adding a selected class/css to an item).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does $#array mean in Perl? I'm looking at the following code snippet:
my @ret = <someMethod>
return (undef) if( $DB_ERROR );
return (undef) unless ($#ret >= 0);
Does $# just give you a count of elements in a array?
A: Be aware that the $#array expression will return -1 when array has zero elements.
A: $#arra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Older MS software with developer licenses? I produce server software and have been fine with all Linux environments so far, both for production and as deployment target. However, I want to provide a broader choice of target environments in the future and I'm also planning features that would consume and produce Offi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Continuous Integration: how do you tie back your builds to requirements/tasks/bugs? How do you answer the following questions from managers, testers and other people in your team:
In what build is bug #829 fixed? What tasks have been completed in our current test build?
So simply put, how do you achieve traceability... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Header control in WinForms - any such thing? I'm trying to use the windows native (Theme-aware) header control to display just some column headers. The main purpose is to avoid manually drawing the column headers and rely on the natively supported functionality.
So the 2 options I was thinking of are:
*
*Use a He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can I target an element before it's closed? I'm wanting to add a class to the body tag without waiting for the DOM to load, but I'm wanting to know if the following approach would be valid. I'm more concerned with validity than whether the browsers support it for now.
<body>
$("body").addClass("active");
...
</b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get a list of domain user accounts with win32 api? How do I get a list of domain user accounts with win32 api?
In particular, I can't get this list when the computer is not the domain controller. Instead it is a member of the domain.
A: Look into the LDAP API. This will let you query the LDAP server w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you convert a string to a byte array in .NET? I have a string that I need to convert to the equivalent array of bytes in .NET.
This ought to be easy, but I am having a brain cramp.
A: Like this:
string test = "text";
byte[] arr = Encoding.UTF8.GetBytes(test);
A: First work out which encoding you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: Get the names of attributes from an element in a SQL XML column For this xml (in a SQL 2005 XML column):
<doc>
<a>1</a>
<b ba="1" bb="2" bc="3" />
<c bd="3"/>
<doc>
I'd like to be able to retrieve the names of the attributes (ba, bb, bc, bd) rather than the values inside SQL Server 2005. Well, XPath certainly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to set specific IMEI in Nokia S60 SDK emulator I'm also interested in other Symbian SDKs that allow to set their emulator's IMEI.
A: My general approach to these kinds of things is do it in software.
*
*Put the IMEI fetching code into one globally-accessible function, and only use this function for IMEI fetc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the meaning of CHECKDB=FALSE in MSI? When running an MSI through the command line what does passing the arguement "CHECKDB=FALSE" really do?
The MSI of course can be anything from Microsoft, to Compuware DevPartner, to a programmer compiled MSI from .NET.
A: Running an MSI with that parameter would set the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to play sound in JavaFX? I'm experimenting with JavaFX making a small game.
I want to add sound.
How?
I tried MediaPlayer with media defined with relative source attribute like:
attribute media = Media{
source: "{__FILE__}/sound/hormpipe.mp3"
}
attribute player = MediaPlayer{
autoPlay:true
m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to manage database connection for a Java servlet What is the best way to manage a database connection in a Java servlet?
Currently, I simply open a connection in the init() function, and then close it in destroy().
However, I am concerned that "permanently" holding onto a database connection could be a bad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Does anyone know of anyone working on a LINQ-to-Memcached provider? As title. I didn't find one via google, at any rate.
Update: thanks for the links from the two answers; this is very useful, but not what I was after - I am curious to see whether it is possible to query an IRepository backed by memcached (or some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: "Join" of time series I am designing a simple internal framework for handling time series data.
Given that LINQ is my current toy hammer, I want to hit everything with it.
I want to implement methods in class TimeSeries (Select(), Where() and so on) so that I can use LINQ syntax to handle time series data
Some thing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the best references for using jQuery? I'm interested in what you find are the best development references for learning and using jQuery. Books, websites, etc. are all welcome.
A: jQuery in Action, FTW
A: I've found both the official documentation and the VisualJQuery references are very solid.
A: See Whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Purpose of Movable Type mt-*.cgi scripts? I'm building an extra layer on top of Movable Type for integration with another system. Part of this involves pre-processing and filtering requests before they get to the MT scripts (comment control, translating external users into MT users etc).
For example, new comments to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reading collections of extended elements in an RSS feed with Universal Feed Parser Is there any way to read a collection of extension elements with Universal Feed Parser?
This is just a short snippet from Kuler RSS feed:
<channel>
<item>
<!-- snip: regular RSS elements -->
<kuler:themeItem>
<kuler:th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How would one implement a sidebar similar to Mail/iTunes/Finder/etc in Cocoa/IB? I think the title pretty much says it all... I'm looking to implement an interface similar to the standard OS X sidebar used in all the above mentioned programs, and I'm wondering if anybody has any thoughts as to the easiest way to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Best way to manage whitespace between inline list items My HTML is as follows:
<ul id="nav">
<li><a href="./">Home</a></li>
<li><a href="/About">About</a></li>
<li><a href="/Contact">Contact</a></li>
</ul>
And my css:
#nav {
display: inline;
}
However the whitespace between the li's shows up. I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Deploying New Web Parts I've been trying to follow the information from:
Long URL clipped to stop breaking the page
and
http://msdn.microsoft.com/en-us/library/ms415817.aspx
Which more or less have the same instructions. I've been copying the .dll file from the build over to the BIN directory of the Sharepoint site... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Howto determine the size of a string give the current font in wxWidgets Is there a way to determine the display length of a given string (in pixels) based on the currently selected font in (C++) wxWidgets?
For example if I print out the string "Speed:" and want to put 10 pixels between the ':' and the value about to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strip WordML from a string I've been tasked with build an accessible RSS feed for my company's job listings. I already have an RSS feed from our recruiting partner; so I'm transforming their RSS XML to our own proxy RSS feed to add additional data as well limit the number of items in the feed so we list on the lates... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I want a program that writes every possible combination to a different line of a text file I want to write a program that would print every combination of a set of variables to a text file, creating a word list. Each answer should be written on a separate line and write all of the results for 1 digit, 2 digits, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: LinqToSql Best Practices I just started creating my data-access layer using LinqToSql. Everybody is talking about the cool syntax and I really like Linq in general.
But when I saw how your classes get generated if you drag some tables on the LinqContext I was amazed: So much code which nobody would need?!
So I look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is the scope of finalizer thread - per application domain or per process? Based on all my reading there should be one GC thread to invoke all finalizers. Now, the question is what is the scope of this "one" thread - per process or per application domain, as the whole intention of domains is to separate and make... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Can unchecked warnings be avoided when overriding a method with raw type parameters? I am extending a class defined in a library which I cannot change:
public class Parent
{
public void init(Map properties) { ... }
}
If I am defining a class 'Child' that extends Parent and I am using Java 6 with generics, what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to use an Open Source License I'm a little unsure how the open source licensing stuff works. If I were to choose a particular open source license, what do you actually have to do to make it applicable to your software? I would imagine it would be a little more involved than just 'stating' that you're releasing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How can I rollback clickOnce if I have a minimum required version? We decided to use the minimumRequiredVersion in our clickOnce application manifest, and now when we try to rollback to a previous version when the user launches the application it fails to start. It says the application manifest has a earlier version... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Highlighting Text in a .net Webbrowser Control I'd like to highlight certain words in the document displayed in an embedded webbrowser control. I can envision a solution where the innerhtml property of the document is modified to add a colorizing < span > tag around the desired text, but I can't help feeling that th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery & ASP.Net Resources & Gotchas What are some good jQuery Resources along with some gotchas when using it with ASP.Net?
A: ASP.Net's autogenerated id's make using jQuery's selector syntax somewhat difficult.
Two easy ways around this problem:
*
*Search for objects using css class instead of id
*You can wee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Auto start print html page using javascript Is there anyway to automatically run javascript:window.print() when the page finishes loading?
A: Add the following code in your HTML page, and it will show print preview on page load.
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Visual Studio Team System 2008 Test Edition books or online training? Our testers are in the process of evaluating Visual Studio Team System 2008 Test Edition. As they are unfamiliar with the use of Visual Studio, I would like to give them as much help as I can.
I have had a look on Amazon for books on the Test edit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Framework/CMS suggestions for enterprise website & intranet (I've got to convince the president its solid!) Dear stack overflow community,
I've been given the task of overhauling a couple of websites for a large corporation I'm working for, as well as developing an internal intranet site for content management and d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Reporting Services 2000 - email different report to many people Reporting Services 2000 Standard Edition (currently RTM but hope to have SP2 soon).
I have a report which takes in a parameter - PlantID
I'd like to email a pdf of this report every month to the 80 different plant managers
So I have a table:
PlantID ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the easiest or most effective way to convert month's abbreviation to a number in Perl? (ie "jan" to 1) If I import a library to use a method, would it be worth it? Does importing take up a lot of memory?
A: Another way to do this using a hash slice:
@month{qw(jan feb mar apr may jun jul aug sep oct nov dec)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Boost C++ libraries for gcc-arm toolchain I have no trouble building 1.35.0, as well as 1.36.0 on the timesys arm-gcc toolchain, both statically (link-static) as well as dynamically (.so, default option).
However, when I try to link a simple sample filesystem app:
#include <boost/filesystem.hpp>
#include <iostream>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are your favorite open source or free library for .NET Charts and Gauges? For a in-house hardware monitoring utility, I need to use gauges and charts to help visualize various metrics. Is there any good open source or free charting and gauge library available for .NET? I am not interested in purchasing any comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: SSO between ASP.NET, ASP and PHP I'm working on a site which is at the core/ master of a number of sites. We are also responsible for handling the authentication across all the sites under the brand banner.
The client has wanted a single-sign-on operation to be included, so if I was to sign into any of the sites I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CRC preset and residue I am working with a device that requires me to generate a 16 bit CRC.
The datasheet for the device says it needs the following CRC Definition:
CRC Type Length Polynomial Direction Preset Residue
CRC-CCITT 16 bits x16 + x12 + x5 + 1 Forward FFFF (16) 1D0F (16)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Paging with Oracle I am not as familiar with Oracle as I would like to be. I have some 250k records, and I want to display them 100 per page. Currently I have one stored procedure which retrieves all quarter of a million records to a dataset using a data adapter, and dataset, and the dataadapter.Fill(dataset) meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "126"
} |
Q: How can one avoid illegal characters when composing a URL? I'm writing a web application that dynamically creates URL's based off of some input, to be consumed by a client at another time. For discussion sake these URL's can contain certain characters, like a forward slash (i.e. '/'), which should not be interpreted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I detect how to escape spaces in a path In Cygwin a space in a path has to be escaped with a backslash
Not true in Windows, put the whole path in a quote
Is there a way to convert to this automatically in Ruby?
Otherwise, how in Ruby do I detect if I am running with Windows or Cygwin?
A: Quoting paths in Cyg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a custom filter for the Drupal View's Module? I have the Profile, CCK, and Views2 modules installed on a Drupal 6 site. I added a string field to the user profile. I can filter easily on preset values, thru the Views GUI builder, really nicely. However, I'd like the filter criteria to be dynamically... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Indexing vs. no indexing when inserting records I have a few questions about whether or not it would be best to not use indexing.
BACKGROUND:
My records have a timestamp attribute, and the records will be inserted in order of their timestamps (i.e., inserted chronologically).
QUESTIONS:
*
*If I DON'T use indexing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Processing large (over 1 Gig) files in PHP using stream_filter_* $fp_src=fopen('file','r');
$filter = stream_filter_prepend($fp_src, 'convert.iconv.ISO-8859-1/UTF-8');
while(fread($fp_src,4096)){
++$count;
if($count%1000==0) print ftell($fp_src)."\n";
}
When I run this the script ends up consuming ~ 200 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can't use certain characters in a regex if(!eregi("^([0-9a-z_\[\]\*\- ])+$", $subuser))
$form->setError($field, "* Username not alphanumeric");
Can anybody tell me why it is not allowing characters such as - and *?
if(!eregi("^([0-9a-z])+$", $subuser))
$form->setError($field, "* Username not alphanumeric");... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sieve of Eratosthenes in Ruby Rather than scraping a Ruby version of this algorithm off the net I wanted to create my own based on its description here. However I cannot figure out two things
def primeSieve(n)
primes = Array.new
for i in 0..n-2
primes[i] = i+2
end
index = 0
while Math.sqrt(primes.last... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: C# How can I send a break to another sub routine? I have a loop running that will process 1000's of records, currently once the loop is running it can't be stopped and the user must wait until it is finished. How can I stop the loop when someone clicks a 'Cancel' button? How do I break into that other routine?
Thank... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to disable PHP session cookie? I am writing PHP code where I want to pass the session id myself using POST. I don't want a cookie to store the session, as it should get lost when the user gets out of the POST cycle.
PHP automatically sets the cookie where available. I learned it is possible to change this behavi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Using Nagios/Monit/Munin with Windows I'm building a .NET 3.5 web app and I am thinking about all the fundamental issues as I work through the project, like monitoring, exception handling, the lot.
The app will obviously be small in size when it is rolled out because it won't have a high load until the site is heavi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I make a UIView "scrollable" in my iPhone app? I have a UIView that will eventually contain about 2 screens worth of information. I want to give the user the ability to scroll down via flicking (just standard flicking like in Safari).
How do I do this?
A: Place your UIView inside a UIScrollView. Apple has s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Calling a Webservice from VBA using SOAP I'm trying to call a web service in an Excel Macro:
Set objHTTP = New MSXML.XMLHTTPRequest
objHTTP.Open "post", "https://www.server.com/EIDEServer/EIDEService.asmx"
objHTTP.setRequestHeader "Content-Type", "text/xml"
objHTTP.setRequestHeader "SOAPAction", "PutSchedule"
objHTT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I select an item by its text value in a dropdown using jQuery? If I had the following select, and did not know the value to use to select an item in advance like in this question or the index of the item I wanted selected, how could I select one of the options with jQuery if I did know the text value like Opt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Is there a good way to bypass restrictions on running EXE files? I have to compute at libraries quite often these days, and have been having some issues with my U3 smart drive. Despite working on some computers, public libraries here restrict the execution of EXE files and disable AutoPlay, rendering my U3 apps usel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Same fields in most tables In a database prototype, I have a set of fields (like name, description, status) that are required in multiple, functionally different tables.
These fields always have the same end user functionality for labeling, display, search, filtering etc. They are not part of a foreign key constrain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Equivalent of Array() in VB.NET? In VB6 you can do this:
Dim a As Variant
a = Array(1, 2, 3)
Can you do a similar thing in VB.NET with specific types, like so?:
Dim a() As Integer
a = Array(1, 2, 3)
A: Dim a() As Integer = New Integer() {1, 2, 3}
A: If you are new to .NET you will want to learn about the List col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Net::SSLeay post_https compilation error: Too many arguments I'm interfacing with a payment gateway and not having any luck with Net::SSLeay and its post_https subroutine. The payment gateway has issued me a client certificate that must be used for authentication. The Net::SSLeay perldoc has the following example:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parse DateTime with time zone of form PST/CEST/UTC/etc I'm trying to parse an international datetime string similar to:
24-okt-08 21:09:06 CEST
So far I've got something like:
CultureInfo culture = CultureInfo.CreateSpecificCulture("nl-BE");
DateTime dt = DateTime.ParseExact("24-okt-08 21:09:06 CEST",
"dd-MMM-y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Best way to access user/site settings There have been a couple of questions that sort of dealt with this but not covering my exact question so here we go.
For site settings, if these are stored in a database do you:
*
*retrieve them from the db every time someone makes a request
*store them in a session variable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java: When is Java 6 ready for end-user desktop application? I am writing a desktop application written in Swing developed using Java 1.5. Some of the users seem to be using Mac, but I am interested in Java 6's scripting feature (Java 6 ships with Rhino). Java 6, although it came out almost 2 years ago, doesn't seem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: XML best practices: attributes vs additional elements What's the difference between the two and when should I use each:
<person>
<firstname>Joe</firstname>
<lastname>Plumber</lastname>
</person>
versus
<person firstname="Joe" lastname="Plumber" />
Thanks
A: There are element centric and attribute centri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: VB runtime functions in VB.NET for VB6 programmers I'm preparing a class on Visual Basic 2005 targeting Visual Basic 6 programmers migrating to the .NET platform.
My primary concern is to teach my students the best practices for developing in .NET, and I am wondering about whether to consider the use of the VB runti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you go about compiling a modified version of FreeBSD? I'm working on an assigned group project at University where we have to re-implement the TCP/IP stack to support some extra stuff (http://discolab.rutgers.edu/mtcp/), and then demonstrate it.
The thesis/design we're working from says the original researche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's a good way to profile the connection speed of Web users? I have a client whose desired Web UI is graphically intense; we would like to gather statistics on the average bandwidth of those connecting to the site. Is there an easy way to do that? The "simplest thing that could possibly work" would seem to be a F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MySource Matrix - Opinions Has anyone had experience with MySource Matrix as a content management system? If so, thoughts/opinions/comments?
Thanks in advance.
A: Absolutely excellent. It takes little while to get used to how it does things with its asset structure, but it is really flexible and powerful. Simple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to tell how much main memory an app uses I need to choose a database management system (DBMS) that uses the least amount of main memory since we are severely constrained. Since a DBMS will use more and more memory to hold the index in main memory, how exactly do I tell which DBMS has the smallest memory footpri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing an NSXMLElement in Cocoa I'm trying to use XPath to parse an XML document. One of my NSXMLElement's looks like the following, hypothetically speaking:
<foo bar="yummy">
I'm trying to get the value for the attribute bar, however any interpretation of code I use, gives me back bar="woo", which means I need to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the quickest way to get the String contents of a URL using Cocoa/iPhoneSDK? Say I want to get the HTML of
http://www.google.com
as a String using some built-in classes of the Cocoa Touch framework.
What is the least amount of code I need to write?
I've gotten this far, but can't figure out how to progress. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I centralize an entire website engine? Prefer responses via php or ROR if possible!
Example:
The slide widget at www.slide.com can
be deployed anywhere on the web. But
the slide developers have
centralized edit capabilities to these
widgets. A change to the widget core,
will update across all ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I recover international characters mistakenly stored in a varchar field? My client has an old MS SQL 2000 database that uses varchar(50) fields to store names. He tried to use this database to capture some data (via a web form). Some of the form-fillers are from other countries, and the varchar fields went nutty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Visual Studio Source control explorer displays wrong folder names My Source control explorer is displaying wrong random or empty names, i.e. in the folders area I see TFSServer > TeamProject > Branch > "Do not share t" while the source location textbox has the correct $/TFSServer/TeamProject/Branch/FolderName. I'm n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SVN Watchlists? I know that it's possible to get SVN to send emails after a commit using hooks, but I was just wondering if there's any way to create a personal "watch list" like MediaWiki (Wikipedia) has, whereby you only get notified if there have been changes to certain files?
A: The way we take care of this is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Removing first line from stdin and redirect to stdout i need to redirect all of the stdout of a program except the first line into a file.
Is there a common unix program that removes lines from stdin and spits the rest out to stdout?
A: tail -n +2 -f -
A: Others have already mentioned "tail". sed will also work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Full Resolution Camera Access in j2me I'm trying to do an image capture on a high end Nokia phone (N95). The phone's internal camera is very good (4 megapixels) but in j2me I only seem to be able to get a maximum of 1360x1020 image out. I drew largely from this example http://developers.sun.com/mobility/midp/artic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Property Grid on Composite objects When I bind this object
public class MyObject
{
public AgeWrapper Age
{
get;
set;
}
}
public class AgeWrapper
{
public int Age
{
get;
set;
}
}
to a property grid, what is shown in the value section of the property grid is the class name of AgeWrapper, but the value for AgeWrap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SUDS - programmatic access to methods and types I'm investigating SUDS as a SOAP client for python. I want to inspect the methods available from a specified service, and the types required by a specified method.
The aim is to generate a user interface, allowing users to select a method, then fill in values in a dyn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What is it about PHP's fgets() that makes it so horrible on large files? What is it about fgets() implementation that makes it so horrible on large files vs fread?
To demonstrate, run this code:
<?php
$line = str_repeat('HelloWorld', 100000) . "\n";
for($i=0; $i<10000; ++$i)
file_put_contents('myfile', $line, FI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to alternate HTML table row colors using JSP? How do I alternate HTML table row colors using JSP?
My CSS looks something like:
tr.odd {background-color: #EEDDEE}
tr.even {background-color: #EEEEDD}
I want to use <c:forEach> to iterate over a collection.
<c:forEach items="${element}" var="myCollection">
<tr>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How can you create an ASP.Net 2.0 web service that consumes and produces JSON objects? I would like create a web service in ASP.Net 2.0 that will supports JSON. Is there a way to do this without WCF and .Net 3.5? Can anyone point me to a good article or sample code?
Clarification
I need direction on what is the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NCover on 64-bit system What do you suggest to use for code coverage on 64-bit environment. It seems that NCover supports 64-bit only in Enterprise version which seems to be quite expensive. Or isn't it? What are people using on 64-bit systems for .NET code coverage?
EDIT: I am aware of the CorFlag workaround. I wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to execute a text file from SQL query? I have a number of generated .sql files that I want to run in succession. I'd like to run them from a SQL statement in a query (i.e. Query Analyzer/Server Management Studio).
Is it possible to do something like this and if so what is the syntax for doing this?
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Gentle introduction to JIT and dynamic compilation / code generation The deceptively simple foundation of dynamic code generation within a C/C++ framework has already been covered in another question. Are there any gentle introductions into topic with code examples?
My eyes are starting to bleed staring at highly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can CListCtrl use OnMeasureItem() method? I want to change item's height and width according to a slider, but as far as I know, there's no measureitem method as CListBox. How can I fix this?
Thank you!
A: All items in CListCtrl have to have the same size. I believe you can use OnMeasureItem in the container that ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Edit in Place Update Script Security I'm using an Edit in Place jquery plugin which needs to post the data to a script that will do the actual database update.
The URL to this update script is easily viewable in the html source as well as with Firebug, so I need to add some sort of authentication check before the up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Checking lists and running handlers I find myself writing code that looks like this a lot:
set<int> affected_items;
while (string code = GetKeyCodeFromSomewhere())
{
if (code == "some constant" || code == "some other constant") {
affected_items.insert(some_constant_id);
} else if (code == "yet anothe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/241955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |