text stringlengths 8 267k | meta dict |
|---|---|
Q: Destructor for pointer to fixed size array Suppose I have a C++ class with two private variables. A fixed size array, data, and a pointer to that array, pnt.
class MyClass
{
private:
double *pnt;
double data[2];
public:
myClass();
virtual ~MyClass();
double* getPnt() const;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is operator && strict in Haskell? For example, I have an operation fnB :: a -> Bool that makes no sense until fnA :: Bool returns False. In C I may compose these two operations in one if block:
if( fnA && fnB(a) ){ doSomething; }
and C will guarantee that fnB will not execute until fnA returns false.
But Haskell is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Macros for Build Commands and Properties in Visual Studio 11 Three-part question first:
*
*Are the build-time macros fully fleshed out in Visual Studio 11?
*How can I edit & define them in the IDE?
*How can I let the macros still have their meaning during the Debugging session?
Note that I'm referring to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How will the "fb app support" on the upcoming facebook mobile app update work? What changes need to be made to fb apps to support it? As outlined here: http://www.cnbc.com/id/44726592
It looks like we'll be able to use FB apps using the Facebook mobile app.
Will applications need to be modified to support this?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JFrame and Nimbus Look And Feel I use Nimbus Look and Feel in a project. However, although every GUI JComponent have a Look and Feel of Nimbus, JFrame always have Windows Look and Feel.
How can JFrame have Nimbus Look And Feel?
Edit: Operating System : Windows XP
A: Try using this:
JFrame.setDefaultLookAndFeelDecor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NSInteger Variable at SQLite Query Can anyone help me with SQLite query in my iOS app? I want to make query, which will depend on NSInteger varialbe at WHERE clause, but i dont know how to add variable into query.
I tried something like this:
MySqlite *sqlConnect = [[MySqlite alloc] init];
sqlite3_stmt *statement ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: use php to generate image, the background is always in wrong color The function is when users upload a picture, program will generate a new white background squre image, and put user's picture in the center of this image.
But the problem is, I set the background to white, it always shows black.
The code is
$capture... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Issue using Select Named LOV in Oracle Application Express I am using Application Express 3.2.1 and I have an application that when run pulls these columns from a database:
Display Name, Email Address, Phone Number, Home Network, Country
I want to make a way to filter the rows by Country, so I created a Select Named... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it safe to end process emulator-arm.exe (Android emulator) instead of closing it by the close button I have noticed that closing the Android emulator by close button (the top right button) takes a lot of time.
Ending process emulator-arm.exe (through task manager) closes it instantly.
When I open the Android em... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't I use the 'await' operator within the body of a lock statement? The await keyword in C# (.NET Async CTP) is not allowed from within a lock statement.
From MSDN:
An
await expression cannot be used in a synchronous function, in a query
expression, in the catch or finally block of an exception handling
state... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "474"
} |
Q: How to redirect console output to file and STILL get it in the console? I want to run an ANT script which prompts the user for input, so it needs to be interactive through the console. at the same time I want to log the console content to a log file.
I know I can use ant >build.log 2<&1 which will redirect to file, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to Create Function Object with attributes in one step This is an academic question, to clarify my understanding of JavaScript.
A function object can be assigned attributes once it is created. However, is it possible to create a function object with attributes in one step?
For example,
function someFunction(){
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lucene.net: Querying and using a filter to limit results As usual I turn to the massive brain power that is the Stackoverflow user base to help solve a Lucene.NET problem I am battling with. First off, I am a complete noob when it comes to Lucene and Lucene.NET and by using the scattered tutorials and code snippets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can Someone Explain This Snippet (Why Are These Braces Here)? I apologize for this overly simplistic question, but I can't seem to figure out this example in the book I'm reading:
void f5()
{
int x;
{
int y;
}
}
What are the braces surrounding int y for? Can you put braces wherever you want? I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is the best way to end a session?
Possible Duplicate:
How do I kill a PHP session?
When ending a session, session_destroy() is supposed to destroy the session and the session variables registered with the session. But I've seen lots of codes that unsets all the registered session variables before destroying ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to delete XML nodes based on an internal value comparison I have an XML file with the following structure:
<tu>
<tuv xml:lang="EN">
<seg>XXX</seg>
</tuv>
<tuv xml:lang="FR">
<seg>YYY</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="EN">
<seg>XXX</seg>
</tuv>
<tuv xml:la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how start developing iPhone web apps using its webviewer? How to develop an iPhone app using its webviewer?
Like in Andriod we can develop an app using webviewer.
It will help me in developing mobile app using Javascript.
Please NOTE:- I want to keep the core logic JS FILE of APP "inside" the phone only. I don't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a hierarical tree and retuning as xml using SQL Server stored procedure I have a following table.
CategoryId Category_name ParentId
1 Products 0
2 Property 0
3 Electronics 1
4 Computer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Spring MVC Request Life Cycle This seems like a pretty basic question but I unfortunately don't know the answer and can't seem to find it.
I'm trying to understand the lifecycle of an initial POST/GET to a Java 6 server running Spring 2.5 on Tomcat 6.
I noticed that for an HttpServletRequest, request.getRequestURL(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: str_replace. replacing numbers from a string HI all I have this code here
$pathinfo = pathinfo($fullpath);
$tags = $shortpath;
$tags = str_replace("/", " ", $tags);
$tags = str_replace("__", " ", $tags);
$tags = str_replace(".png", "", $tags);
$tags = str_replace(".jpg", "", $tags);
$tags = str_replace(".jpeg", "",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Heap memory keeps increasing When starting the application, the application consumes slowly more and more memory. I am trying to figure out why this is happening and haven't been very successful yet.
Our WPF client gets the data pushed in from the server. The backend is in C++ and the data gets pushed into our C# mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: OSX/Cocoa : get Absolute position of docktile icon in screen I am wondering if there is a way to find the absolute position of a docktile in the screen without using the accessibility API?
Thanks in advance.
A: Have you looked at Apple's DockTile example code?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7612657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is an HTTP header element? According to this Apache documentation "Some HTTP headers (such as the set-cookie header) have values that can be decomposed into multiple elements". I can't make much sense of this. For example, when I use the getElements() method on a "Set-Cookie" Header object that has a value of:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Transactions - best performance My webapplication has a class WorkItem with a RecordID (Guid as Primary Key) and a FriendlyID (string) that consists of Type-Date-RandomNumbers.
If I create a new WorkItem, I create a new FriendlyID as well.
The format of the FriendlyID cannot be changed (client specification) and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nditer: possible to manually handle dimensions with different lengths? Using numpy's nditer, is it possible to manually handle dimensions with different
lengths?
For example, lets say I had an array A[5, 100] and I wanted to sample every
10 along the second axis so I would end up with an array B[5,10]. Is it
possibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cucumber - And I should see "first" before "last" - Rails 3.1 [Note: Using Rails 3.1.]
I am trying to test that multiple models are being displayed in the proper order on my page, in my case, by desc date with the most recent on top.
I know I can do the following to check if something exists on the page:
And I shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rails 3 , Jquery.load with no layout My Ajax call is almost working, but i can't figure why my layout is still rendered? here is the context:
I have a contact page on my site that use the linkedIn API. I want to load the LinkedIn info from an ajax call when my page is loaded. This work fine.
But the result of my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Unable to play sound (wav) on event I need to play a short sound. This is the code I wrote
In my header I have:
#import <AVFoundation/AVFoundation.h>
@interface AddItemController : UIViewController < ... , AVAudioPlayerDelegate> {
...
AVAudioPlayer *audio;
}
...
@property (nonatomic, retain) IBOutlet AVAudioPlayer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Servlet redirect resp.sendRedirect("/myurl");
req.getSession().setAttribute("foo", "bar");
In this case, do I have access to the foo attribute after the redirect?
On generally speaking, a servlet is completely executed before the redirect is made or it stops it's execution after the redirect line?
Thanks
A: It con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Function that returns, dynamically, how much code has been executed? I want to do a 'loading screen' that reflects exactly what percentage of my code has executed.
I know that is how: distributing 'flags' by the code, and these flags would assume the value of the percentages. This in conexto static. What I would pop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to deploy Visual C++ redistributables in WiX using Burn We just migrated our installer from WiX 2.x to WiX 3.6 and started using Burn. Previously, we were installing the Visual C++ redistributable by including the .msm files from C:\Program Files\Common Files\Merge Modules to our MSI. Those files are always in s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Tomorrow in NSDateComponents isolate day I'm trying to retrieve tomorrows date based on the current date. I get the correct string, but how do I isolate the day?
NSDateComponents *comps = [[NSDateComponents alloc] init];
[comps setDay:1];
NSDate *tommorrow = [cal dateByAddingComponents:comps toDate:[NSDate date] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How I can compare 2 files without download then by using PHP? I have 1 image (source) stored in one server (this server is only an data server without php or anything), using gd I create another image in a php server with the source as base for creation, so I have one generated image and one source file, for perform... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to query an xml element with xpath with an existing namespace <?xml version="1.0" encoding="utf-8"?>
<Report p1:schemaLocation="TemplateXXX http://localhost?language=en" Name="TemplateXXX" xmlns:p1="http://www.w3.org/2001/XMLSchema-instance" xmlns="TemplateXXX">
<HEADER attr1="one" attr2="two" />
<Table... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I select a schema based on a variable? Consider:
SET @PREFIX='DEV_';
SET @REFRESHDB=CONCAT(@PREFIX,'Refresh');
CREATE TABLE @REFRESHDB.`Metadata`
(
`Key` VARCHAR(30) NOT NULL,
`Value` VARCHAR(30) NOT NULL,
PRIMARY KEY (`Key`)
) ENGINE = InnoDB;
INSERT INTO @REFRESDB.`Metadata` (`Key`, `Value`) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to get the length of the I/O queues which access disks in Linux kernel How to get the length of the I/O queue (all I/O access disks) in Linux kernel?
Is there a function or a variable which can get the length?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7612694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting a Border Control to Have Sunken Border I want my to have a sunken border like a textbox. How to do this? Is there a way to get the controltemplate to mimc the parent border?
A: There is no theme for you to use, but you can work around like this:
Using this MSDN model (http://i.msdn.microsoft.com/dynimg/IC8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Difference between db.collectionX.save and db.collectionX.insert > itemsA = { attrA : "vA", attrB : "vB" }
{ "attrA" : "vA", "attrB" : "vB" }
> db.collectionA.insert(itemsA)
> db.collectionA.find()
{ "_id" : ObjectId("4e85de174808245ad59cc83f"), "attrA" : "vA", "attrB" : "vB" }
> itemsA
{ "attrA" : "vA", "attrB" : "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: make my application start when boot complete on/off Heloo everyone
im new to android development
and im developing an android application for my graduation project
my application must start when the device boot up
so to that i put these lines in the AndroidManifest file
<!--this to make app run at start up-->
<r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP shell_exec() result in txt file? I'd like to try to see the output of two shell_exec() calls in a .txt file.So i tried this:
$data_server = shell_exec('./c5.0demo -f $username -r');
$errorFile = "error.txt";
$fileopen = fopen($errorfile, 'w') or die ("can't open file");
fwrite($fileopen, $data_server);
$data_se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Override libc functions called from another libc function with LD_PRELOAD I've a project aiming to run php-cgi chrooted for mass virtual hosting (more than 10k virtual host), with each virtual host having their own chroot, under Ubuntu Lucid x86_64.
I would like to avoid creating the necessary environment inside eac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: python subprocess and unicode execv() arg 2 must contain only strings I have a django site where I need to call a script using subprocess. The subprocess call works when I'm using ascii characters but when I try to issue arguments that are utf-8 encoded, I get an error:
execv() arg 2 must contain only strings.
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: how to perform tokenization and stopword removal in C#? Basically i want to tokenise each word of the paragraph and then perform stopword removal. Which will be preprocessed data for my algorithm.
A: You can remove all punctuation and split the string for whitespace.
string s = "This is, a sentence.";
s = s.Replace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Loading images into TImage, via array I'm very new to delphi, doing a project for my A level. When I run my code the images just don't show, I've looked everywhere and my teacher can't help me. Can anyone tell me what I'm missing?
const
Animal : array[0..6] of string = ('Bears','Dogs','... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can we have row addition to a grid in a web application using Microsoft technology The GridView in ASP.NET does not allow directly adding a row to the grid. For editing a row, the user has to click the 'Edit' button , make changes , then click 'Update'. To overcome this people use third party Grid from Telerik and o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Maven : What should be the url value under the distributionManagement I am forced by Maven to specify a url under tag insde POM.xml file
<distributionManagement>
<repository>
<id>nexus</id>
<name>Nexus Staging Repo</name>
<url>scp://home/maven2/html</url>
</repository>
</distribu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I hide the Next anchor in my custom Nivo nav if it has less than six images? I'm working on a custom navigation thumbnail slider for the Nivo Slider Jquery plugin.
I'm trying to hide the Next anchor when the thumbnail slider contains less than or equal to 6 thumbnails.
.nivo-control is the anchor the thumbna... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP arrays - a 'set where key=?' type function? Is there a built in php function that allows me to set a value of an array based on a matching key? Maybe i've been writing too much SQL lately, but i wish I could perform the following logic without writing out nested foreach array like the following:
foreach($array1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any issue if I used sync connections in iPhone? I know that the pattern in iPhone is to use ASync connection calls (using the informal protocols that is implemented by the current class).
In my case, I've created a utility class to do the networking staff and then return the data to the ViewController.
I fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mod_rewrite... renaming urls and getting them to work properly Here is the url that I have that works:
example.com/php/statePage.php?region_slug=new-york-colleges
Here is what I am trying to get the url to appear as:
example.com/new-york-colleges.html
I have tried several things so far and I think I am getting c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: post form values to a phpgd script without refreshing the page and without button I am NOT good with server-side technologies (have a hard time wrapping my mind around them at points). I am pretty decent with PHP.
I have a form that offers color options (now in drop-down format, but in future will be an image cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MongoDB connectivity with PHP dropping after idle time I'm building a webapp with MongoDB/PHP, and everything's going great... except one thing.
My database connection is flaky. After X amount of time, when I refresh the page I get errors because queries are failing. I check mongod.exe and what I see is "Connection ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Column_match([[1],[1,1]]) <--- how to make dimensions match with NA values? Any flag for this? Please, see the intended.
>>> numpy.column_stack([[1], [1,2]])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/numpy/lib/shape_base.py", line 296, in column_sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c# outline numbering I am trying to develop an algorithm in C# that can take an array list of URL's and output them in an outline numbered list.
As you can imagine I need some help. Does anyone have any suggestions on the logic to use to generate this list?
Example Output:
1 - http://www.example.com/aboutus
1.2 - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Get values with Perl So I have a reporting tool that spits out job scheduling statistics in an HTML file, and I'm looking to consume this data using Perl. I don't know how to step through a HTML table though.
I know how to do this with jQuery using
$.find('<tr>').each(function(){
variable = $(this).find('<td>').t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Access: Multi-value field I am trying to design a form where the user can search records to filter a report. The user must be able to select many values from a particular field (multivalued field). I understand I can use a list box, but the field has a total of 3,000 records and cycling through is too much. I just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to read oracle number from stored procedure into a variable in c#? I have a number of stored procedures, and I've been trying to find the best way to get an int in C# out of a stored procedure out parameter. So does anyone have advice on the best way to do this? Also, in some of the procedures the returned ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Installing Passenger when Nginx is already installed; Possible? Rather a simple question I believe, is it possible to install passenger when nginx is already installed on your webserver?
If the answer is Yes, I already performed these actions:
At this very moment I already have nginx installed (for my PHP applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to serialize to json on C# application project (no Asp.net)? I wrote an application project in c#.
Is there a way to serialize a collection to Json string format?
If I use C#4? C#3?
Another q: within Visual Studio 2010 ultimate I remember I could search and download dll from the web: Web Downlaoder or so. I cnno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I calculate deciles with a range of 12,000 cells in excel? I have a column of 12,000+ numbers, both positive and negative, sorted from highest to lowest in an Excel spreadsheet.
Is there an easy way to go about dividing this range into deciles?
A: Assuming your data is in column A, in a neighboring column ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Print/Preview Ignoring my Print.css I have an issue thats causing me some headaches. I'm trying to print a report and format it correctly with a print.css but it completely ignores my css everytime. Has anyone had this issue before? I made sure the CSS file is in the correct directory, etc but still no luck.
Here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Suggestions for Optimizing code public Object getValue()
{
ValueItem valueItem = null;
Object returnValue = null;
if(this.value instanceof StringValueImpl)
{
valueItem = (StringValueImpl) this.value;
}
else if(this.value instanceof ListValueImpl)
{
valueItem = (ListValueI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Response based xml -- PHP I submit a value to the Server.. something like this
abc.php
<?php
$input = "some value"
//Some functions
The above generates some unique response say 111
Now i need to upload a xml based on this response something like this
$xml='<?xml version= "1.0 .....>
<id>111</id>(this id should be d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 3.0.9 : ActiveRecord Uniqueness Constraint failing on every updated, doesn't matter if the unique column isn't touched I have a Profile model
class Profile < ActiveRecord::Base
attr_accessible :user_id, :race_id, :nickname, :first_name, :last_name, :gender, :birth_date, :eighteen,
:time_zone, :... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Overriding continuation state storage/restore algorithm? When i saw the first news about await, i was very excited and i thought many ways of using it.
One of these is to use it in my web framework to hide the asynchronous aspect of client/server exchanges like it's done in several frameworks.
So here is the deal:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Grails/Dojo Progress bar getting progress from controller/service Currently I'm using Grails to create a web-based data loading application that in short, takes an excel sheet of arbitrary rows and runs them through a backend system to prep the data for testers.
Everything is working fine, but the last thing I nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Suggestions for Querying Database for Names I have an Oracle database that, like many, has a table containing biographical information. On which, I would like to search by name in a "natural" way.
The table has forename and surname fields and, currently, I am using something like this:
select id, forename, surname
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Adding event tracking to site for PDF/Microsoft Word downloads I am having some difficulty setting up event tracking. I have a website where people can download PDFs and Word docs of various content. I inserted the event tracking like so:
<a href=files/8399039122.pdf onClick='_gaq.push(['_trackEvent', 'downloads',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scroll bar css style in Internet Explorer I've got this problem while doing the scroll bar for both iPad and browsers. The style is working fine with Opera, Safari, Firefox and Chrome. However the style doesn't show in Internet Explorer and it appears the wired horizontal scroll bar on the page too.
You can find a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: prefuse: useful layout for directed mostly-acyclic graph? I have a moderately complex graph (500-1000 nodes) representing function calls in a program, so it is almost completely acyclic, and mostly tree-like (e.g. occasionally there are multiple paths from one subroutine to another, but usually not). I would like to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pointers of two dimensional array There is such code:
int (*ptr_)[1] = new int[1][1];
ptr_[0][0] = 100;
std::cout << "to: " << &ptr_ << ' ' << ptr_ << ' ' << *ptr_ << ' ' << &(*ptr_) << ' ' << **ptr_ << std::endl;
Result is:
to: 0xbfda6db4 0x9ee9028 0x9ee9028 0x9ee9028 100
Why values of ptr_ and *ptr_ are the same... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A copy of ApplicationHelper has been removed from the module tree but is still active? I'm using rails 2.3.4 and ruby 1.8.7.
In my application when i try to purchase an item via mobile Api(it's a metal request), purchase is successful , now when i go to web interface and make any changes in the entities like purchas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Div content Page titles in Veritcal Scroll Site Whats the easiest way to enable my page title to update per content div areas it's on?
I have a vertical scrolling website and would like the page title to change when the user navs to each content area (The content areas are within div & article)
Essentially, I'm tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: simple XML error URL file-access is disabled in the server I'm having problems trying to load a XML file using simpleXML in PHP, it works fine on my host but when I uploaded it to the live server it showed me the error in the title, I looked around and it looks like allow_url_fopen is disabled in the live server but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Associative array passing as empty string I am trying to pass an array to PHP via Ajax, but the array is being passed as an empty string. This is my code when creating the array:
var params = new Array();
var inputs = new Array();
inputs = $(":input");
$.each(inputs, function(key, value) {
params[value.id] = value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OnTextChange Partial Postback not occurring I have the following code for an OnTextChanged event:
protected void CustomTextBox_OnTextChanged(object sender, EventArgs e)
{
if (tick.Attributes["class"] == "tick displayBlock")
{
tick.Attributes["class"] = "displayNone";
tick.Attributes.Add("clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET component for color PDF to grayscale conversion Currently i use Ghostscript to convert color PDF's to grayscale PDF's. Now i'm looking for reliable .NET commercial or not commercial component/library for ghostscript replacement. I googled and I did not find any component/library that is able to do that easily ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Liberating email addresses from outlook I have outlook 2007, and I recently sent an email with a BCC of about 75 addresses. I would like to copy and paste this BCC list into a spreadsheet to keep track of the names AND email addresses of the people I contacted.
The problem is, when I copy the BCC field from outlook... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to open URLs using python webdriver for selenium 2.0 I am new to both Python as well as Selenium and and still in the learning phase. I have been trying to launch both IE8 as well as Firefox using the new Python Webdriver for Selenium with the following code.
from selenium import webdriver
from selenium.commo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to test (automatedly) that an operation occurs after browser repaint? According to the comments of this blog post, the following technique executes an operation asynchronously but waits for a repaint:
function nextTick(callback) {
var img = new Image;
img.onerror = callback;
img.src = 'data:image/png... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Setting multiple depth layers in AS3 I get how to set depth in as3 - but with as2 i could begin multiple 'depth points' using numbers - where in as3 all i can seem to do is set this object to a higher/lower depth than that object. The problem is (when dealing with a stack of isometric boxes, which can be placed by t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show image in jqgrid in edit mode jqGrid contains image column defined using colmodel below. image id is passed in cell value from server in json.
grid shows images properly if not in edit modes.
Inline and form edit mode show wrong image since editoptions src property contains fixed id 1
How to show image fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I check if headTitle is already used in Zend Framework? How to check if headTitle is already used?
To avoid appending or overwriting existing title, which was set earlier in parent views/layout.
Thanks ;)
Update
Example:
$this->headTitle('First title'); // index.phtml
$this->headTitle('Second title'); // som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Format special text with in a HTML textarea I am developing a web editor for SQL, I would like to be able to style special SQL text with in text (select, create, from) differently from other texts, as a user types.
Is this possible in HTML?
Is there a third party libary/plugin I can use for this?
A: Try EditErea, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SortOn an m-array of objects Alright, so I have an m-array (Or an array of arrays in actionscript as it doesn't really have m-arrays) and each array in the superarray has a number of objects created at different times in it. I want to sort the superarray by in descending order of the value of the "time" paramater of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: hyperlink who's path is only a forward slash (/) I have been asked to make some changes to a friend's company website. It uses a PHP insert file for the header on each page, which is useful as the navigation etc is the same on every page.
The following code designates the company logo on every page:
<div id="logo"> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Solr: exact phrase query with a EdgeNGramFilterFactory In Solr (3.3), is it possible to make a field letter-by-letter searchable through a EdgeNGramFilterFactory and also sensitive to phrase queries?
By example, I'm looking for a field that, if containing "contrat informatique", will be found if the user types:
*
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Does instantiating and initializing work only when tied to button click? Beginner question. How come I can do this:
Public Class Form1
Private StudentsInMyRoom As New ArrayList
Public Class student
Public name As String
Public courses As ArrayList
End Class
Private Sub btnCreateStud... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is text-underline a property? I got a stylesheet which has a text-underline:none property, is it really a CSS property?
A: No, it isn't a valid CSS property. Instead, you can use text-decoration: none.
The text-underline property is often found in CSS generated by Microsoft Word.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7612892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the modified time of a file being uploaded in JavaScript? Is there ever a way possible to get the actual creation / modification time of the file being uploaded, using JavaScript?
As for PHP, using filectime() and filemtime(), it only shows the date / time the file is uploaded, and not the time the file i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Google Maps Grey Squares Apear I have search the web for this kind of problem an fixes but with no luck.
My problem is not the all google map grey squares that indecates an api problem
the problem is that I see part of the map and the other parts are grey
and its random: sometimes the map is at the top and the gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Excel how to fill remaining cell with "~" after name for a specific character size of 15 In Excel 2003 I have a positional file and I want to space fill with a delimiter of "~" for 15 total characters. How can I ensure that each first name has exactly 15 characters prepended with "~" at the end for space fill. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IEquatables implementation only called if the base Equals is overridden I have the following class
class Product : IEquatable<Product>
{
public Guid Id { get; set; }
public bool Equals(Product other)
{
return Id.Equals(other.Id);
}
}
If i try and create a unique list of the items of a li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Set UTF-8 as default string encoding in Heroku I need to change the default ruby string encoding to UTF-8 in Heroku. For some reason it is US-ASCII.
$ heroku console
Ruby console for myapp.heroku.com
>> "a".encoding
=> #<Encoding:ASCII-8BIT>
However, if I run irb locally I get a different result:
$ irb
ruby-1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Silverlight + WCF: configure collection type per call? When configuring our service references in Silverlight, there is an option to choose the collection type that is generated for calls that return arrays, like so:
It is an option that you can see when you use the 'configure service reference' context menu item. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any value in creating an Integer object from an int? I was walking through some code and came across these lines:
public final static int CM_VALUE = 0x200;
public final static Integer CM = new Integer(CM_VALUE);
Do anyone know why the author held the value in hex before passing it back to Integer? Does doi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Assemblies Visual Studio 2010 using in monodevelop with monotouch I'm new in monodevelop and I have a question.
I have some assemblies developed in Visual Studio 2010 in C# and I would like to use them with monotouch in Mac, my question is: do I have to use the source and generate the assemblies with monodevelop in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: LINQ to SQL in ASP.NET MVC and Repository pattern I'm trying to follow a tutorial from the Asp.NET MVC website which uses LINQ to Entities but I decided to use LINQ to SQL instead. I'm at the point where a new table is created called Groups which has a relationship to the Contacts table. Esentially it's a One to M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery Mobile slide list I'm trying to do a list with jQueryMobile like in the twitter application.
Video of what I'm looking for: http://www.youtube.com/watch?v=l7gTNpPTChM
But I have 2 problems:
1) Each row has a class .mailRow and the .live("tap") event works but .live("swipe") doesn't work on the mobile and doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Will pthread_join halt the parent program if the child thread is still working?.. Will pthread_detach make it faster?? instead of using join? My program is something like this.. I wanted to know will I make my program slow, if I call pthread join???
void* a(void *a)
{
do---something();//which is a very long procedu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.