text stringlengths 8 267k | meta dict |
|---|---|
Q: Prompt browser download dialogue box Normal: <a href="/soundfile.mp3">download</a>
The reason I can't do this is it's on a Wordpress installation with a plugin (wpaudio) which turns every mp3 filein the code into a mini player which when clicked streams the file. So that link above would appear as a link, with a pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# / WinForms: Highlight only the first item of a ListBox on drag & drop In a ListBox: User should be able to pick multiple items by holding the CTRL key and seleting them. I have this working, but this ListBox needs to be able to do drag & drop of its items to another ListBox as well. Now, when it comes to drag &... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: boost_system renaming and symlink issues on ldd I have sample application that uses boost_system shared object. Now, because of certain scenarios, I have to support 2 different boost_system shared objects - one built with gcc and other with sun's cc in single directory - /home/mydir. Corresponding files are:-
libboo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OMR based software for .Net application I am looking for a Optical Mark Recognition software to read the scanned documents and automatically process them.
These documents are created from a ASP.net Web application. Users will fill in those printed forms which have a barcode and then scan the same.
If you have any i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Paypal Digital Goods - How to retrieve payer info? I just integrated the express checkout script from https://www.x.com/developers/community/blogs/ppmacole/another-digital-goods-demo into my site.
I have a question. I'd like to keep track of all the sales with Freshbooks and I was wondering if it's possible to get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Heuristic function for astar I need a good heuristic function for A star for the pen plotter/TSP, where each state of my system has:
*
*Path distance, that has been traveled
*Point where the pen is at currently
*Pen up/down
The "pen up/down" refers to the state where, you have drawn a line just then or you ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mysql sorting of version numbers I have values like:
1.1.2
9.1
2.2
4
1.2.3.4
3.2.14
3.2.1.4.2
.....
I need to sort those values using mysql. The data type for this one is varbinary(300).
The desired output will be like:
1.1.2
1.2.3.4
2.2
3.2.1.4.2
3.2.14
4
9.1
The Query is:
select version_number from table ord... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I map lists of nested objects with Dapper I'm currently using Entity Framework for my db access but want to have a look at Dapper. I have classes like this:
public class Course{
public string Title{get;set;}
public IList<Location> Locations {get;set;}
...
}
public class Location{
public string Na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "158"
} |
Q: When running a sh file in linux, why do I have to run ./name.sh? I have a file called x.sh that I want to execute. If I run:
x.sh
then I get:
x.sh: command not found
If I run:
./x.sh
then it runs correctly. Why do I have to type in ./ first?
A: Because the current directory is normally not included in the defaul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How may I prevent the Designer changing control member modifiers to private? When in the Designer I change a property of a DataGridViewColumn on which I previously manually changed the modifier to public in the .Designer.cs file, the modifier gets reverted to private.
Is there any way to prevent this?
A: I would re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need help improving query performance I need help with improving the performance of the following SQL query. The database design of this application is based on OLD mainframe entity designs. All the query does is returns a list of clients based on some search criteria:
*
*@Advisers: Only returns clients which was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Memory allocation operators and expressions In C++, is 'new' an operator or an expression or some kind of keyword? a similar question that comes in mind is, should i call '=' an operator or expression?
A: C++ separates the notion of memory allocation and object lifetime. This is a new feature compared to C, since i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MOSS 2010 virtual path to ASP.NET I am attempting to host an ASP.NET application inside of my SharePoint site. I want to host a full-application so I'm hoping to run it as a virtual path application.
Following instructions mentioned in other areas around the web, which said that I could go into ISS and create a vir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: (PHP) $_POST + cURL + multi array I try to send a multi array via cURL but I can't find a nice way to do it.
My code example:
$data = array( 'a' => 'testa', 'b' => 'testb', 'c[d]' => 'test1', 'c[e]' => 'test2' );
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
This will work and give the result I want on the curl_ini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert delimited string into array key path and assign value I have a string like this:
$string = 'one/two/three/four';
which I turn it into a array:
$keys = explode('/', $string);
This array can have any number of elements, like 1, 2, 5 etc.
How can I assign a certain value to a multidimensional array, but use the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Problems with php.ini My problem is related to the php.ini file I think, but it might be something else.
Let's say we have a site architecture where inside the root directory there is another directory named img and a file named index.php. Inside the directory img there is a file named image.jpg.
So in index.php, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom Control switching between two styles I'm making a custom control which has two very different styling needs. One for a basic look, and another for a more advanced look.
My control contains a dependency property for the following enum:
public enum ControlTypes
{
Basic,
Advanced
}
I created two styles ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: select max element columns from group I'd like to select the maximum row of a group, but I'd like the query to return the other columns from that row. I know how MAX() can return the greatest integer in the group, but I don't know how to get the other columns for the max result.
In this example, I'd like to have a q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recommended sender name when sharing an address We have an application that is used for client management, which has a generic e-mail account attached to it (info@example.com). All e-mail that is sent here, is received by our application (processed using PHP). Mail will be replied by various employees, depending on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Boost libs building - difference between runtime-link and link options I'm trying to build boost libraries in Windows 7 with MSVC (VS 2010).
I have come across the options runtime-link and link in the bjam command line options. I would like to know how they are used and what is the exact difference between them.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Perl5.12 not installing via Macports When trying to install Imagemagick via Macports, I keep getting an error when it goes to build the perl5.12 dependancy. It says: Error: Status 1 encountered during processing.
I’ve tried updating Macports, installing/building perl5.12 independently, uninstalling and reinstalling ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why isn't this loop vectorized? One particular hot spot when I profile a code I am working on, is the following loop:
for(int loc = start; loc<end; ++loc)
y[loc]+=a[offset+loc]*x[loc+d];
where the arrays y, a, and x have no overlap. It seems to me that a loop like this should be easily vectorized, however when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Ubuntu: Redirection from a .txt file in Java This should be pretty simple but for some reason, I can't get this program to take arguments from a .txt file and output it. Here's my code:
public class Lab2 {
static Scanner input = new Scanner(System.in);
public static void main(String[] args)
{
Lab2_CLA.Lab2_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UITableView how to change color? How would I change the color of a UITableView? Or change the color of a cell? Or change the color of the navigation bar at the top? (iOS)
A: You can change the color of a cell in the UITableView delegate method like this:
- (UITableViewCell *)tableView:(UITableView *)tableView
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: (Qt Creator - Cpp Based Application) Q VS using Pointers? here is my code:
//MainWindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui>
class MainWindow : public QWidget
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
private:
QTextEdit *textEdit;
};
#endif // MA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: File I/O in c++ and linux command line redirect I've got a program that accepts a text file with a map on it, then finds the shortest path and outputs that to another file.
it needs to work like this
./pathFinder -arg < inputMap.txt > outputMap.txt
My question is, with this input, what would get filled into argv[]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Primes in PHP, elliptic curve how i can calculate receiving a number K, K return the next prime number greater than 2 ^ 57 + 1 ? some 1 can help me with that ?
A: If you need prime tester, you can download it here.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7508397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Draw a circle in WPF using min(width, height)/2 as radius How I can draw a circle in WPF (without code-behind) using min(width, height)/2 as radius?
A: Where does width and height come from? Example XAML for a circle is:
<Canvas Background="LightGray">
<Ellipse
Canvas.Top="50"
Canvas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Arithmetic overflow error converting varchar to data type numeric? SELECT CASE Price WHEN '' THEN 0.0 ELSE Price END FROM Table
If price empty, it returns 0.0 but if column has value it gives me the error below
Arithmetic overflow error converting varchar to data type numeric.
How to change my code to handle this c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: float [] array problem in objective c I am coding in xcode by objective c. I came up with a problem.
I want to try like
declare float[] weights;
results looks like this
weight[0] = 0.5
weight[1] = 0.4
weight[2] = 0.9
A.h
NSMutableArray *weight;
A.m
weights = [NSMutableArray array];
for(int i=0; i < 4; i++) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieving array values from within a class Working on my first OOP app and I am having some trouble accessing the values of an array returned by a public function within my class. Here is the function -
//Process new transaction
public function addTransaction($amount, $payee, $category, $date, $notes) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Magento custom module for exporting order data to external database I've created a custom module in Magento that we'll use to pass along name and product info to an external database. These variables need to be passed to the external database after the order is submitted. Here's what I have so far (three files):
Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: trouble viewing h2 db used in grails project I'm trying to have a look at the tables generated in h2 db used in Grails project, but something's amiss.
I connect to the browser console at http://127.0.1.1:8082/ but all that's there to browse is INFORMATION_SCHEMA and Users. How do I get tho the tables used/generated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: mysql join question - am i doing this right Hi I have a coupon system that uses one table (called "coupons") to store info about each type of available coupon that one could generate, and another table (generatedcoupons) to store info about each coupon generated. I'm having a hard time comparing info in each table.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Backbone.Model.extend() is not a function", what have I done wrong? I am having a crack at Backbone and decided to open a jsFiddle to play around.
Unfortunately, I keep getting this error being thrown:
Backbone.Model.extend is not a function
My code:
var Model = Backbone.Model.extend();
I got this piece of code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Trouble with Recursion in Python Working with python 2.7.
The following code allows me to input the winning percentage of two teams (WP_1 and WP_2) a number of wins (k) and determine given the two team's winning percentages, the probability that team one will have more wins at the end of the season (Playoff_Probabil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Jquery form validation I am using this script to see if a user has left any inputs invalid clientside.
$('#login_submit').click(function() {
var login_email = $('#login_email').val();
var login_password = $('login_password').val();
if (login_email.length == 0) {
$('#login_email').css('background', 'red');
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Print repeated numbers only one time in c# I have an array with "n" numbers and I need to print all repeated numbers only one time
i made this code, but something is wrong
for (int i = 0; i < numbers.Length; i++)
{
for (int j = 1; j < numbers.Length; j++)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Replacing Microsoft.VC90.CRT WinSxS policy file with local config file On Windows XP, I have an .exe which runs with msvcp90.dll, msvcr90.dll, and Microsoft.VC90.CRT.manifest in my local application directory. I also have a policy file for these .dlls in C:\WINDOWS\WinSxS\Policies, which was installed by the Visual ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JQuery Mobile - blue button on release When releasing a button in JQuery Mobile it will turn blue for just a short duration while the action is called. It can even be seen on JQuery Mobile own website.
My question is, how do i get rid of the button getting blue?
Thanks :)
A: Set the -webkit-tap-highlight-color attr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: send session var with php cUrl Am trying to send data between scripts within my application.
Problem is session id is not responding.
Script 1 is...
<?php
session_start();
$_SESSION['id'] = 1;
$data = "data to be sent to script";
$ch = curl_init("http:.../myscript.php");
$nvp = "&... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Convert C++ to C# I have 2 functions in C++ which need to be converted to C#. Below are the details of the functions
C++
void MyClass::GetArg(string argument, int minError, string* arg1, string* arg2,
string* arg3, string* arg4, string* arg5)
{
if(arg1 != null) *arg1 = GetArg(argument, 1, minError)
if(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to sort a hashtable by value? Now i have to copy the hastable to a list before sorting it:
(defun good-red ()
(let ((tab (make-hash-table)) (res '()))
(dotimes (i 33) (setf (gethash (+ i 1) tab) 0))
(with-open-file (stream "test.txt")
(loop for line = (read-line stream nil)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Generic T with Enum and casting T to Enum I searched around and couldn't find any examples doing this, though this was helpful:
Create Generic method constraining T to an Enum
I have a generic function which wraps a function in an API (which I can't touch). The wrapped function takes a System.Enum and returns the sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PHP Large Float, need to round I have a program that is giving me this number: 9.1466606511048E-8
I need to round that, using most obvious functions in PHP gives me 0.
A: That's because that number has a value of 0.000000091466606511048, which is very close to zero. Perhaps you need to be more specific about what s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: System.Threading.Tasks.Parallel error in IronRuby In C#
class ParallelTest
{
public static void Main()
{
System.Threading.Tasks.Parallel.ForEach(new []{1,2,3,4,5,6,7,8},
x => { System.Console.WriteLine(x); }
);
}
}
Result
4
5
6
7
8
2
1
3
But, in IronRu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET Centralized Configuration for Windows Services and WCF Web Services Does anybody know of a way to centralize a .NET app config so that it can be used by multiple windows services and multiple wcf web services on a computer? They are all installed in separate folders under \program files. Our software currently ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert from byte array to string and string to byte array in java
Possible Duplicate:
Conversion of byte[] into a String and then back to a byte[]
I have the following piece of code, I'm trying to get the test to pass, but can't seem to get my head around the various forms of encoding that go on in the java worl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OpenGL on Mac OS X for an iPhone developer I'm looking for a good example of a basic OpenGL App for Mac OS X, but not too simple.
I have a good solid base of experience with iOS and objective-c, but I've never built a Mac OS X App.
All I've been able to find are super simple examples that do all the drawing and lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: asyn vs sync forEach,map,filter Looking at Async and a async branch of underscore.js it appears asyn versions of the Sync forEach,map, and filter are present.
Considering Javascript is single threaded what value is there in returning a sorted,mapped,forEached... array vs passing the returned value to a callback func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Regular Expression conditionals, e.g. "and" / "or" Is there a way using regular expressions to find
grep 'a &| b &| c' #pseudo code
If 'a' is found also check for 'b' and if 'a' is not found also check for 'b'? etc...
A: You can just nest the needed values in parenthesis for and support. Yes there is or | suppor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GetGlyphOutline() and UTF-16 surrogate pairs I'm using the GDI GetGlyphOutlineW function to get the outline of unicode characters, and it works fine except that it does not work with surrogate pairs (U+10000 and higher). I've tried converting the surrogate pair into a UTF-32 character, but this does not appear to wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is C++ preprocessor metaprogramming Turing-complete? I know C++ template metaprogramming is Turing-complete. Does the same thing hold for preprocessor metaprogramming?
A: Well macros don't directly expand recursively, but there are ways we can work around this.
The easiest way of doing recursion in the preprocessor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: If Java is pass-by-value only, can I mandate a final modifier in formal parameters? If Java is strictly pass-by-value for non primitive, isn't it better to establish coding standards like make all formal parameters of methods and constructors final? - to avoid confusion?
A:
If Java is strictly pass-by-value for no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Select columns by name rather than letter in Google Query Language (GQL) with Google Spreadsheets? newbie question, is it possible to select columns by name rather than letter when using Google Query Language with Google Spreadsheets?
This works fine for me: "SELECT A, COUNT(B) GROUP BY A"
It'd be great if I could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Grouping list element in C# I have the following list:
List<string> data = new List<string>();
Then I populate it by fetching the result of a MySQL request:
data.Add(name);
The list is well populated but I would like to make a grouping, and would like to get the number of each name present in the list:
name A ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Posting images via CURL to a form I've had a tough time trying to find a solution for the following problem, I need to use curl to submit a form on a website, however it also needs to upload a picture its a normal input file field
<input type="file" name="image"/>
I have a class and the curl function is defined lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reading CrystalReport's Field Value Programmatically I'm using C#.NET to programmatically load a Crystal Report document (which gets its data from a database) and then export it as a PDF.
I'm stuck trying to read a fields (abc123) value from within the report (I want to use it in the filename). I don't mind where t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does Remember the Milk's string matching work? I'm interested in developing a similar solution to RTM's Smart Add Feature.
For those who don't know Remember the Milk here's how it works: Adding tasks is done by means of an input box that accepts strings and parses out different parameters like task name, due da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When should the dimens.xml file be used in Android? For instance, in a specific layout I have the following XML:
<GridView
android:id="@+id/gridView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="3dp"
android:columnWidth="48dp"
android:numColumns="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: jquery, trying to bind event to tr but it's also applied to child elements I'm trying to add a row click event on a table populated by json data. The row click itselves works but it's also applied to child elements such as checkboxes and buttons which are in the row cells.
$('#results tbody tr').live("click",functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tumblr RSS feed set max results? Does anyone know a way to do this.. I searched their API and came up blank http://www.tumblr.com/docs/en/developers
I was using blogger before and was able to set the results like this blogspot.com/feeds/posts/default?max-results=1000
thanks
A: Here is the answer straight from Tumbl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a subclass in Eclipse? During lecture, my professor very quickly created a subclass in Eclipse.
The result has the "extend" keyword added to the subclass. I didn't see what buttons he clicked.
Does anyone know where should I click? (I think he right clicked on the current class in the package explore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: silverlight Binding from VM collection to View not working need some help I know I am missing something here and I could use a pointer. Within a project I have an expander control when this control is clicked it makes a RIA call to a POCO within my project to retreive a second set of data. I am using the SimpleMVVM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to transfer MemoryStream via WCF Streaming I am planning to pass MemoryStream via WCF Streaming but it seems not working but when I slightly change the code to pass FileStream instead, it is working. In fact, my purpose is to pass large collection of business objects (serializable). I am using basicHttpBinding. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Passing multiple arguments to a thread from a structure I'm having problems passing the arguments, using a structure containing another structure
i know there's something wrong with the way i'm using the structures but i just cant see where...
Thanks!
this is my struct
typedef struct {
IMAGE *imagenfte;
IMAGE *imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compilation warning for void ** and void * I have a question regarding void* and void** and I know this is sort of an old question and has been asked (somewhat) before in stackoverflow. So the question is the following:
When I compile this code with gcc 4.4.3 under ubuntu 10.10, I get the following warning:
zz.c: In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: default(T) on reflected type In browsing other answers, I have come up with the following extension method which works a treat:
public static T Convert<T>( this string input )
{
var converter = TypeDescriptor.GetConverter( typeof( T ) );
if ( converter != null )
{
try
{
T resu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is a ASP.NET MVC controller action faster/more efficient than a HttpHandler? I'm trying to create a simple lightweight server side redirect which inspects the client's User-Agent and redirects to a website for a given browser. For example:
if(Request.UserAgent.contains("Firefox") { //redirect to www.yahoo.com }
els... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: scaling UIScrollView contentSize to fit UIView with variable-height UITableView inside I have a uiview with a uiscrollview as a subview in a nib.
Then, I load another uiview with a uitableview as a subview of this other uiview (among other elements inside this view) as a subview of the uiscrollview.
That is, UISCr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: strcpy() causes segmentation fault?
Possible Duplicate:
Getting Segmentation Fault
Why does this code cause a segmentation fault?
char *text = "foo";
strcpy(text, "");
As far as I understand it, the first line allocates some memory (to hold the string "foo") and text points to that allocated memory. The second l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVC get URL index value after jquery call Hi have an MVC page that shows up with the url like:
http://myhost/Invoice/Edit/2
When I'm at this page I run some jquery that calls another method in the controller. In this new method I want to get the 2 from http://myhost/Invoice/Edit/2. One problem is now that I've calle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: efficient computation of Trace(AB^{-1}) given A and B I have two square matrices A and B. A is symmetric, B is symmetric positive definite. I would like to compute $trace(A.B^{-1})$. For now, I compute the Cholesky decomposition of B, solve for C in the equation $A=C.B$ and sum up the diagonal elements.
Is there a m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Detect if browser is buffering audio stream from mixcloud My app embeds mixcloud's player widget. It's an embedded swf.
<object>
<embed src="http://www.mixcloud.com/media/swf/player/mixcloudLoader.swf?feed=x">
</embed>
</object>
If audio is presently streaming, then I want to alert any user who might click on one ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook API I get "Method Not Implemented" error, but it works if i put the url in a browser When I call https://graph.facebook.com/oauth/access_token I keep getting a return string that says “methed not iomplamented”
I’m calling it in php as follows
file_get_contents("https://graph.facebook.com/oauth/access_token?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: TabHost shows default Activity after showing new activity for a while Thanks for reading.
I am facing a problem where when I start a new Activity in my TabHost, the new Activity only shows up for a few seconds before returning to the default Activity in that Tab.
I am using the TabHost for laying out 5 tabs in my ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to enable YSlow in Firefox? I have installed the latest versions of YSlow and Firebug into the latest version of Firefox on Windows 7 (and restarted Firefox), but when I click on YSlow nothing happens. Also, when I click on Firebug, it opens but has no YSlow tab. I have disabled all other Firefox plugins and p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Different results from Dijkstra algorithms I am working from Programming Game AI by Example book. Look at this image, the result on the left is the author's, the one on the right is mine. Green is source and red is target. Dijkstra is applied, and you can see the shortest path but also the other paths that were sear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: BackboneJS: Map RESTful URL to old-school HTTP Query URL I've just picked up BackboneJS for a work experiment. We are implementing a whole slew of web-apps on our platform so using a JS framework would simplify a lot of stuff. However, the way to query the server is to use regular HTTP query strings appended to back... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to enable scrolling of content inside a modal? I'm trying to fit a lot of text into a modal box created using Twitter Bootstrap, but I'm having a problem: that content refuses to scroll.
I tried adding overflow:scroll and overflow-y:scroll, but to no avail; that merely causes it to display a scroll bar without a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: Display Notification when receiving C2DM message causes crash I want to display a message contained in my C2DM message's payload, but I can't seem to get this to work without crashing.
package com.themenetwork.app;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.Pendi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: google maps inside my Web Content Form within Master Page I am trying to add a simple Google Map to my Web Content Form (that uses a Master Page) but nothing is showing up and I'm not getting any noticeable errors
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Shel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Access IB Object from Custom Class This is a silly beginner question but... If I have a custom subclass of NSTextView "SSTextView" that spawns from Interface Builder, how do I access the instance of my custom class that is actually in the interface from inside SSTextView.m? The overall goal, I guess, is to be able t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WinCE emulator shows Black Screen when trying to run I am new to WinCE.
I am trying to build an WinCE 6.0 Image using platform builder.
So I went Like this .
*
*Visual Studio 2005 >> Platform Builder >> OS Design
*Avilable BSP : CEPC X86
*Custom Device
*Actice sync and Cab File Insaller and
*Finished.
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Testing if a string contains one of several thousand substrings I'm going to be running through live twitter data and attempting to pull out tweets that mention, for example, movie titles. Assuming I have a list of ~7000 hard-coded movie titles I'd like to look against, what's the best way to select the relevant tw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Renaming Files with Excel VBA Here's what I need to do. I have these two columns in an excel sheet. With file names. First column has the current filename and the second column has the names I want the files to be renamed to. I need to use this as there's no pattern in renaming. For example, the below may be a set o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: PHP form design help
Possible Duplicate:
Robust, Mature HTML Parser for PHP
Help coding an HTML Form
This is a mockup of design that I have in mind - http://i.imgur.com/ujiLb.jpg
From each set of options, only 1 must be checked and depending on the combination of checked boxes the 'submit' button directs to a web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why doesn't Flowdocument's tooltip show? I have a very strange problem with tooltips inside FlowDocument. Finally I am able to narrow it down to the following xaml. Paste the following xaml into kaxaml or Blend, you will see the problem.
<FlowDocumentScrollViewer>
<FlowDocument Background="Transparent">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DataGridView.Rows.RemoveAt(int index) doesn't remove row in windows form? int i = dataGridView1.CurrentRow.Index;
dataGridView1.Rows.RemoveAt(i);
The above code for deleting current selected row (only allow to select 1 row) but I still can see the row remains in datagridview. Did I miss an update or invalidate ?
ps... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can i change my "read more" to an image with hover effect? I'm currently editing my premade layout downloaded in the internet and i would like to edit the "Read More" link to an image.
The best example that i want to achieve is like in the website of
www.hongkiat.com. When you hover Continue Reading, the backgr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FMod Memory Stream Problem EDIT: Well...that's very interesting. I made settings into a pointer and passed that. Worked beautifully. So, this is solved. I'll leave it open for anyone curious to the answer.
I'm having an issue creating a sound in FMod from a memory stream. I looked at the loadfrommemory example ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a way to build persistence in soapui or any similar software? yeah so, our application would be connecting to not yet existing services. We were given WSDLs for those services and we mocked them in soapiu. Is there a way to build rudimentary persistence in soapui or any similar software so that we could hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does printf not work before infinite loop? I am trying to make a small program that includes an infinite loop to wait for signal input from the user. I wanted to print out a message about the current working directory before beginning the infinite loop. The message works on its own, but when I put the infinite l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to multiply a scalar throughout a specific column within a NumPy array? I need to do some analysis on a large dataset from a hydrolgeology field work. I am using NumPy. I want to know how I can:
*
*multiply e.g. the 2nd column of my array by a number (e.g. 5.2). And then
*calculate the cumulative sum of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Hyperlinks A HREF do not work I'm a bit fooling around with a new website idea. But when i was testing it the A HREF does not work. It's not even showing a finger/hand pointer.
It's the text at the content area (the first white block under the header, but not the menu). The headers should be links to the posts (Word... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PyGTK Spacing in an HBox I'm new to GTK, I'm trying to figure out how to accomplish something like this:
+---+------+---+
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
+---+------+---+
I want this done in an HBox. How would I accomplish this? Thanks.
A: It is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: where is $content variable declared in Yii? I am using Yii Framework. In the view, main.php, there is a reference to the $content block
<?php echo $content; ?>
I could not find it anywhere in the model or elsewhere in the demo project. Can someone shed light on this? Or may be this variable is never declared? I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Turn accordion widget on and off I am setting up different CSS for the basic three media Screen, tablet and smartphone. I have a two list I would like to leave as is for Screen but would like to have the two lists become an accordion widget in Tablet mode.
My idea was to go ahead and put everything into the widget. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change text in UILabel with NSMutablearray data I'm trying to change the text of a UILabel with text from an array upon a button click, but it doesn't do anything.
@interface Test01AppDelegate : NSObject <UIApplicationDelegate> {
UILabel *helloLabel;
UIButton *hellobutton;
NSMutableArray *madWords;
}
@property (non... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does IEnumerable always imply a collection? Just a quick question regarding IEnumerable:
Does IEnumerable always imply a collection? Or is it legitimate/viable/okay/whatever to use on a single object?
A: The IEnumerable and IEnumerable<T> interfaces suggest a sequence of some kind, but that sequence doesn't need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7508663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.