text stringlengths 8 267k | meta dict |
|---|---|
Q: Jsoup div[class=] syntax works whereas div.class syntax doesn't - Why? For the following HTML snippet:
<div class="class_one class_two class_three classfour classfive classsix">
some inner content
</div>
The following Jsoup selector works:
div[class=class_one class_two class_three classfour classfive classsix]
But... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a C preprocessor macro to print out a struct? As far as I can tell, there's no way to print out a struct value in C.
i.e., this doesn't fly:
typedef struct {
int a;
double b;
} stype
stype a;
a.a=3;
a.b=3.4;
printf("%z", a);
instead you have to say:
printf("a: %d\n", a.a);
printf("b: %f\n", a.b)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Coffeescript class losing functions I have a CoffeeScript which I can't call functions from. But if I declare an instance of it and add functions to the instance it works. What am I missing?
Function doesn't get called:
class testClass
username: 'Fred'
this.testFunction = ()->
alert 'test'
test ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Preserving the order of records from subquery while using "Union distinct" construct I want to make sure that the order of the result from subquery are preserved while using Union distinct. Please note that "union distinct" is required to filter on duplicates while doing the union.
For example:
select columnA1, colu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Two key shortcut in emacs without repressing the first key? Suppose I define the following shortcut
(global-set-key (kbd "C-d C-j") "Hello!")
Is it possible to configure emacs so that if I type "C-d C-j C-j C-j" I will get "Hello! Hello! Hello!" rather than having to type "C-d C-j C-d C-j C-d C-j"?
A: If you are lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: TTY and/or ARF Response from Experian's API I'm trying to use the PHP Curl library to connect to Experian's API.
When I post a HTTPS request to Experian, I get an HTTP 200 OK response, but nothing more. I am expecting a TTY or ARF response. Do anyone have insight in what I'm doing wrong?
Here's a snippet of my cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What do the little icons next to the each variable denote, in the SSIS variables window There seems to be variations of the icon image, and i'm sure they mean something. The standard appears to be a blue box with an X in italics. And, some have a little 'circle' in the bottom left of the standard icon image. I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Logarithmic scale I am programming a small synthesizer application and I input musical notes by clicking along the length of a bar. Now, the musical scale is logarithmic and my question is, how do I convert the position of the mouse to a relevant pitch. At the moment I calculate a ratio. It works, sort of, but I get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use shared ItemGroup element in batching tasks I'm trying to automate the creation of Firefox addon for two different platforms by using MSbuild:
I have shared files set which are the same for Mac and Windows and have platform specific files.
I want to batch the task of making XPI(which is just a renamed Zip ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: visual studio weird behavior I am making a win32 application using visual studio 2008.
When ever i compile my code which generates a simple dialog, all of the dialogs text show in Chinese language. I have not set Chinese anywhere. can some one elaborate what the issue is?
My code is
#include <windows.h>
int WINAP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to use jquery ajax and webmethod with sitecore I'm running Sitecore 6.4 and trying to get some data using ajax and webmethod in Sitecore. Everything is in a sublayout (user control)
This is the code that calls the webmethod:
$("#NextBanner").click(function () {
$.ajax({
type: "POST",
url: "/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a Interactive GUI for a java game Hey guys I'm creating a game similar to farmville in java and I'm just wondering how would I implement the interactive objects/buttons that the user would usually click to interact with the game client.
I do not want to use the swing library (generic windows looky likey obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Random number c++ in some range
Possible Duplicate:
Generate Random numbers uniformly over entire range
I want to generate the random number in c++ with in some range let say i want to have number between 25 and 63.
How can I have that?
A: You can use the random functionality included within the additions to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: devenv fails on build machine Our .vdproj setup project contains a few .dbproj projects. We are going to use devenv since MSBuild does not support the creation of MSIs from .vdproj setup install projects. When I run devenv.com from the command line on a build machine I receive the following error:
The project 'UserM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: And yet another javascript clearInterval not working I've seen a bunch of these threads and went through a few of them but nothing seemed to be of help so far. So I'm trying to call the timer continuously while the ajax call is taking place. Once the ajax call reaches the complete event, I'd like to clearInterval th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to configure mysql version '5.1.49-1ubuntu8' to show multibyte charecters? am using MySQL version 5.1.49 and I have not enabled UTF8 character encoding. The default character-set for MySQL is latin1. How can I change it show UTF8 characters?
Even when I query a table using Workbench I get 'NULL' in name section... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DOM Changed Event Firefox Extension So I have created a Firefox extension and it works great, however when I submitted it (although it was accepted) it came up with one security warning. It said setTimeout() was removed in an else clause.
So, is there a way to listen for any DOM change? (or even a specific element c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What mechanism does Doctrine ORM use to create 'persistant' objects? I've recently begun exploring ORM tools such as Doctrine, and in my reading I'm learning that Doctrine creates 'persistant classes' -- which I might be understanding this incorrectly as objects that persist across multiple http requests. So I'm cur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to handle Unicode in Python Anyone has a link or best practices for handling Unicode characters across python applications? or we need to convert the strings all over the place?
[EDIT]
Currently we are converting everything we post in urlencode to utf-8 but im wondering if there is a better way to handle th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: When selecting UIViewController in UITabBarController frame of view changes I'am having for my knowledge a strange problem. The thing is that frame of UIVIewController's view changes when is beeing displayed for the first time in UITabBarController.
I'll try to describe my architecture.
I have a class that is subcla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java - make a function to create a variable with the name = String we input? How can i make a function:
When i input a string "abc" this function create a variable with the same name, like this: int abc = 10.
void func("abc"){
..........
}
//I will have: int abc =10;
I can't do it, someone help me?
A: You can't cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Graph API Error 2500 We are in the middle of upgrading to Auth 2.0 and have noticed a lot of errors in the Diagnostic page under Insights. It shows "gr:" (which I know means the graph api) and error code 2500 with almost 1 million errors. Unfortunately FB hasn't got any errors documented so I'm hoping someone at FB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Something wrong with linking I have 3 C++ files:
genericStack.h:
template <class T>
class Stack{
public:
Stack (int size){
top = -1;
MAX_SIZE = size;
v = new T (size);
}
~Stack(){ delete v;}
T pop();
void push (T);
class Underflow{};
class Overflow{};
private:
int top;
int MAX... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hot align text center in ListBox - asp.net 4.0 How can you text align center in asp.net 4.0 ListBox element. I tried cssclass but not working. Thank you.
A: This works for me:
<style type="text/css">
.listbox-centered
{
width:400px;
text-align:center;
}
</style>
...
<asp:ListBox ID="li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nesting CSS Styles or inheritance I'm pretty new to using CSS beyond applying directly to each element. I'd like to know how I should be doing this. (simplified from my actual implementation, but relatively the same). Is it possible to inherit styles somehow?
I have 3 div classes defined, each positioning a div in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating MySQL query for report I've been working a lot lately on making reports and there is a common problem I keep running into. I run into this when making reports or when creating charts.
Say I have 2 tables:
stages:
id
stage_name (Sample data: Open, Won, Lost)
projects:
id
title,
stage_id
Projects and stages a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Time based GPS location in background (iphone) I want to create an (game based) iPhone application which sends your GPS location on a specific time (like 3-5 times a day) to a server. I found an apple page explaining some functionality to run in the background like location, music and VOIP.
I need the GPS to be accu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: guard gem run all triggers on start Hi this is driving me crazy. I couldn't find a solution after a long time.
How do I trigger a "run_all" for all guards in the Guardfile.
When i run "guard" in the shell, I want it to sort off pretend like all files have changed and trigger all guards.
What's a clean way to do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: EREG expression for one or more first names separated by comma I somehow can't get this to work. I want at least one name but also the possibility to add more names separated by a comma and space.
This is what i got:
var exp_name2 = /^[A-Z]{1}[a-z-]*[,\s][A-Z]{1}[a-z-]$/;
Any ideas how I can do this?
A: Alright, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: logical operations on large files binary data in C/C++ I have two binary files (order of tens of MB) and I want to or every bit of these files. And of course, I want it to be as efficient as possible.
So I have two ways in mind to do that, but I still think (I kinda feel) that should be a more efficient way that I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I use an object (an instance of a class) as a dictionary key in Python? I want to use a class instance as a dictionary key, like:
classinstance = class()
dictionary[classinstance] = 'hello world'
Python seems to be not able to handle classes as dictionary key, or am I wrong?
In addition, I could use a Tuple-lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do you make an add-in for Excel 2011 (Mac) I would like to add a button to the Ribbon and have it perform some basic tasks when clicked. Is this possible? If so, how?
Thanks in advance.
A: No, it is not possible. It looks like it is possible, but it is not. The only proper add in for Excel 2011 Mac is provide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Highlighting and replacing non-printable unicode characters in Emacs I have an UTF-8 file containing some Unicode characters like LEFT-TO-RIGHT OVERRIDE (U+202D) which I want to remove from the file. In Emacs, they are hidden (which should be the correct behavior?) by default. How do I make such "exotic" unicode cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Caching ASHX Image Response I have created an ashx file to generate image thumbnails on the fly. I would like to cache these images client side after they are called the first time.
URL:
~/image.ashx?dir=user&w=25&h=25&force=yes&img=matt.jpg
Code Behind:
public void ProcessRequest (HttpContext context) {
TimeS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating WebApplication with Database Access in Java I have to create a simple WebApplication with Java which shows a Login Dialog and after it shows some textfields, gets some Data out of a Database (Sybase) do something with it and insert a new record to the database. Now I am looking for a good tutorial, which ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SSH problem using Netbeans and Git I have looked at the other posts from the other folks regarding this issue but I still have problems getting ssh to work with netbeans & git on windows 7. I am new to git so I am sure I am missing something somewhere.
I have done init git on my Ubuntu server. I have also set a %HO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eclipse Servers view not showing added Tomcat runtime environment I am running Eclipse Helios SR2 (the EE version) on Ubuntu 11.04.
I installed tomcat6.0.29 manually and can start/ stop it ok.
I can add the Tomcat 6 Server Runtime environment successfully to eclipse - I've never had the "Cannot create the server" p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What happens to cron jobs when system in shutdown? From man page of crontab.
string meaning
------ -------
@daily Run once a day, "0 0 * * *".
@midnight (same as @daily)
So a job @daily will never be executed if the system is always shutdown at midnight? What is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Syntax error in compiling .CSS file w/SASS 3.1.7 and previous versions sass .CSS compilation fails on one machine, but works on the other. Using Sass gem version 3.1.7 on both w/Bundler.
If I do bundle show sass on both machines, they have identical output. Can't seem to track down what is at the root of this. I tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make this SQL query faster? I have the following query:
SELECT DISTINCT `movies_manager_movie`.`id`,
`movies_manager_movie`.`title`,
`movies_manager_movie`.`original_title`,
`movies_manager_movie`.`synopsis`,
`movies_manager_movie`.`keywo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exclude anchor by title attribute. - Ajax I'm loading wordpress pages dynamically using ajax. It fires properly but I need to exclude a specific anchor.
<a href="http://store.myurl.com" target="_blank" title="Store">Store</a>
I thought using .not() would work like so
$('a').not('a[title=Store]').live('click',func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does macports list multiple installed ports of the same version, and how do I fix it? Specifically, the command:
sudo port list installed
Shows doubles of packages, like this:
apache2 @2.2.21 www/apache2
apache2 @2.2.21 www/apache2
...
ncurses ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Current binding value I'm writing markup extension. I have XAML like this
<TextBlock Text="{ui:Test SomeInfo}" />
and TestExtension with constructor taking one string argument. I'm getting "SomeInfo" string so everything is find. Now I want to nest extensions and write something like
<TextBlock Text="{ui:Test {Bind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Mock giving compile error when attempting to specify a return value I'm using Google Test and Google Mock for my C++/Qt application. I've been having great success with this setup until just now when I tried this:
QList<AbstractSurface::VertexRow> rowList;
for (unsigned i = 0; i < rows; ++i)
{
AbstractSur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: preload images with a specific class with jquery Is it possible to preload images that have a specific class applied to them?
for example - preload only images with class '.grid'
I've seen lots of examples of preload based on array, but my image names are dynamically generated (I'm using Drupal 6), and I don't want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding the line numbers of all occurences of a string in a text file I'm trying to write a function that does the following:
Given a text file, I want to find all occurences of a certain string in this file; then, for each occurence, the line on which it was found should be added to a list. We assume that each line... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: where is the best place to save game progress? I'm developing a quiz game and I want to save the progress... Actually I use sharedsettings, is easy and fast, but the user can delete program files and lose the progress. Same happens with a database. I should use a file? I'm only interesting to save a boolean for each... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DispatcherHelper to thread I have an application which uses 1 Main Window and in turn this window has 5 UserControls which are created using a Ribbon Control.
On one of the user controls I kick off a thread :
if (AmtMembersWithEmail > 0)
{
DispatcherHelper.UIDispatcher.Invoke(new Action(() =>
{
max =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to stop multiprocess python-program cleanly after exception? I have a Python program that has several processes (for now only 2) and threads (2 per process). I would like to catch every exception and especially shut down my program cleanly on Ctrl+c but I can't get it to work. Everytime an Exception occurs the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: MVC3 and JQuery - Can JQuery ajax method display an image generated in the controller? Is it possible to use the JQuery ajax method to pass parameters into a controller, have the action in the controller return an image and display that image back to the user?
$.ajax({
type: 'POST',
url: '/Controller/Action'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php form submission-checking not being recognized I basically took in 3 pieces of data from a form, and before processing them, I just wanted to make sure that all fields were filled in. So the focus of this is the second to last IF statement, checking if the different variables are empty. It seems to only be work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java: combine 2000-5000 PDFs into 1 using iText yield OutOfMemorryError I have eyeballing this code for a long time, trying to reducing the amount of memory the code use and still it generated java.lang.OutOfMemoryError: Java heap space. As my last resort, I want to ask the community on how can I improve this code t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to include sharppcap library into Visual Studio? Sorry for the noob question. I don't really know how to make sharppcap library working in my project. I'm using Visual Studio 2010.
A: Right click on your Project in Visual Studio-->Select Add reference --> Browse --> find the Sharppcap library and click done.
Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Problem with session in Django after login Hi am relatively new to Django, been making steady progress with most of the stuff but i have come to be stuck at the sessions part.
After i login from my login view, it is successful and redirects to the next link which points to another view. This is where the problem ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xcode - Command /Developer/usr/bin/clang failed with exit code 1 I'm just starting programming, and trying to learn C.
For my homework I had to design a program, and I'm pretty sure my code is right, but whenever I try to test it, or even try programs directly from the book, I get this error.
Ld "/Users/BasirJamil/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Iteratively Reference Controls by Name Pattern (VB.NET) Is there a way to iteratively reference an ASP.NET control based on it's name pattern? Perhaps by a "pointer" or something?
What I have are a large set of comboboxes (each with an associated DropDownList and TextBox control). The DropDownList always has an item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert DOC to PDF from Command Line Anyone recommend a DOC to PDF converter that can be run from the command line? It seems like an easy requirement, but I have been coming up short on free solutions.
A: I recommend the OfficeToPDF command line application.
C:\>OfficeToPDF.exe /bookmarks /print /verbose test.docx ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: ASP.NET MVC 3 Razor Partial View - jQuery Included In Main Layout A partial view that I'm using requires certain jQuery libraries to be included, and I'm currently trying to think of the best way to nicely add them.
My current setup is as follows:
_Layout.cshtml:
...
@if (ViewBag.jQuery)
{
<script src="@Url.Cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can XML::LibXML add nodes to a document based on XPath alone? I'm looking for a method that allows me to spring to life a text node that something like:
$doc->addNode( $xPath );
The fact that XPath queries can get quite funky at times is probably a good enough reason for not implementing such a method inside XML::L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting a String to AppWidget via GetExtras (or) Shared prefrences I have an app widged which basically has a textview. I also have
an activity which displays a textview from string created within. Now
i have a button in Activity 1 which onClick will send data (string to
appWidget class) I tried putExtra and getExtr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does -2 % 360 give -2 instead of 358 in c# Microsoft Mathematics and Google's calculator give me 358 for -2 % 360, but C# and windows calculator are outputting -2 ... which is the right answer ?
A:
Which is the right answer?
Both answers are correct. It's merely a matter of convention which value is returned... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: IE7-9 testing workflow on a Mac I'm at my wits end right now trying to get a website working in IE7-9, the issue I'm having is getting text-shadow to appear in a decent matter. I've been using the 960 grid system so changes are very minimum, I've been checking changes with IE Netrender. However lately IE Netrender h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: storing the accessor to innerHtml as a var I was trying to figure out a way to do the following
var foo = document.body.innerHtml;
then call foo = "testing"
and the body's html would read "testing"
but so far all that happens is innerHtml is returning the value of innerHtml ... which is expected
is there any way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails dynamic select menu for 3.1 How would this be updated for Rails 3.1?
http://railscasts.com/episodes/88-dynamic-select-menus
I just can't figure out how to call the js.erb file and have it run the code to generate the javascript dynamically.
A: Might be something: in Rails 3.1, you're most likely using jQuery ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server: pointing to the ID from other table I have two tables: (ID = int, Match = varchar, Status = char)
TableA
ID1 Match1 Status1
23 1200 PASS
24 1300 FAIL
25 1400 PASS
26 1500 PASS
27 1600 FAIL
TableB
ID2 Match2 Status2
456 1200
784 1300
457 1300
124 1400
741 1600
Now, I want to populate tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Match each variable passed in MYSQL IN() Basically I have the following query:
SELECT DISTINCT users.ID, users.name
FROM users
INNER JOIN usersSkills ON users.ID = usersSkills.userID
INNER JOIN usersLanguages ON users.ID = usersLanguages.userID
WHERE activated = "1"
AND type = "GRADUATE"
AND usersSkills.skillID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using math.factorial in a lambda function with reduce() I'm attempting to write a function that calculates the number of unique permutations of a string. For example aaa would return 1 and abc would return 6.
I'm writing the method like this:
(Pseudocode:)
len(string)! / (A!*B!*C!*...)
where A,B,C are the number ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Check if a field is final in java using reflection I'm writing a class, which at some point has to have all its Fields assigned from another item of this class.
I did it through reflection:
for (Field f:pg.getClass().getDeclaredFields()) {
f.set(this, f.get(pg));
}
The problem is, that this class contains a Fie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Provide a folder out of source where all my external libraries are found I have the following folder structure
*
*lib
*my_module
I have moved all the libraries I need into the lib/ folder.
In my module/__init__.py, I think I will do:
import sys
sys.path.append('../lib/')
import my_dependency
Then when I need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: best C# library for getting IP Camera stream? I found there's quite a lot of IP Camera libraries for C# on the net. In case you have worked with any of them, which seem to be the best?
Thanks!
A: Emgu CV is an open source C# wrapper for Open-CV which is a robust open source library for image processing and more. It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rewrite website content to load from subdomain I am figuring out how to rewrite website content (images/js/css) for faster loading times.
This could also fix a "Access-Control-Allow-Origin" error for me.
Is it possible to rewrite
content/dir/file.ext
to
http://content.domain.com/dir/file.ext
A: Yes it is possible.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I relay dynamic parameters passed into a functionA() to functionB() called within functionA() I'm trying to relay dynamic parameters from a web page into a function, which then passes them to a call inside the function. For example, take the simplified snippet below, as it is now, passing in the parameters di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Selecting record with highest ID I have a issue with some SQL that I can't wrap my head around a solution.
Right now the query I am running basically is:
SELECT Q.ID, Q.STATUS, C.LASTNAME, C.FIRSTNAME,
C.POSTAL, C.PHONE
FROM QUEUE Q
LEFT OUTER JOIN CUSTOMER C ON Q.ID = C.APPID
WHERE C.LASTNAME LIKE '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error Microsoft.VJSharp.VJSharpCodeProvide I installed visual studio 2008 in our server and tried to run our proejct on the server but i got this error
The CodeDom provider type "Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" could not b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP page - Lengthy code behind firing button click I have some asp.net page which is quite large, with a table of some 200 kBytes of data...
And an asp:button that takes AGES to fire the code-behind.
For instance the update progress displays for some 12 to 20 seconds before code executes!
The same code-behind fires ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: authorize my rails 3 applicationd I'm developing a rails 3 application using inherited_resources and devise.
I tried to use cancan as my authorization plugin and it wasn't enough (i need more complex conditions for my authorization rules).
I also tried using declarative_authorization but my rules didn't work for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WM_TOUCH is not immediately sent with touch down event I am working with a touch screen and using Windows 7 built in drivers (as it never prompted me to install any). it works fine, except for one small issue. When I touch the screen, it will not send the WM_LBUTTONDOWN until I move my finger off the screen. It appe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to verify user email in Drupal 7 when registering user I want a user to enter email, password and password verification. After that they should receive an email notification with an activation URL. When they navigate to this URL, the account gets activated.Is there a Drupal 7 module for this? If not, how can I g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to set the height of a Data Grid in Silverlight 4 I have a couple of DataGrids inside a page and each DataGrid is positioned via the following layout/markup:
<border BorderBrush="Black">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="*"/>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using number keys as meta keys in emacs I'm learning emacs and am trying to implement my standard keyboard shortcuts. Currently I use the number keys as meta keys, for instance I hold 4 and press N to highlight the previous word, but if I press and release 4 alone then the number 4 is entered into the text buffer.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS scrollbar in div doesn't work in FF The below HTML used to show a vertical scrollbar in FF3.x and IE. I have installed FF6.0.2 and the scrollbar doesn't show up anymore!!
<html>
<body>
There should be a scroll bar on the page
<div style="background:red;position: relative; left: -1px; width: 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery 'has no method' error when attempting to render a template This is probably a dumb question, but I've been beating my head at it long enough.
I have a template built for use with jQuery .tmpl(). I can successfully select it with $("#templateId"), but calling $("#templateId").tmpl(data) results in a TypeError... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Generate possible combinations I have several hash maps I need to generate combinations of:
A: [x->1, y->2,...]
B: [x->1, a->4,...]
C: [x->1, b->5,...]
...
some possible combinations:
A+B; A; A+C; A+B+C...
For each combination I need to produce the joint hashmap and perform an operation of key-value pairs with th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Open Graph Beta: Aggregation's "Group By" Field The documentation for the Open Graph beta says:
Group by - Option is only available if your Aggregation is displaying
Objects. This option allows the aggregation to group by a property of
the object. For example, you can group by Movie object's type, to show
how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: setting onscreen keyboard type in Android I was wondering whether the soft keyboard that pops up when we want to type anything in android can be configured. For example, in iOS, we can set the type of the keyboard to be numeric or alphanumeric or email etc. Is there anything similar in Android ?
A: Yes Use
androi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Have a div extend when an element from other div overlaps? I have a div (lets call it header), and another div (lets call is content). Now, the content div extends its height to its contents. Within header, i have an element that overlaps far into content, but content div doesnt extend with the elements overlapping ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the Renderer class for UIXIterator Summary
What is the renderer class for UIXIterator(af:iterator)?
Background
I am writing a component and I am planning to extend UIXIterator just like UIXTable does. My component will basically accept the same kind of data binding as UIXIterator/UIXTable does. The only diff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Application Icon doesn't change correctly using c# I changed my Application's icon for a new one, by going to: "Project/MyProject Properties/Icon and Manifiest", and load the new icon. Now, in my debug folder the icon of my .exe file appear with the new icon, which is ok, but when I execute the .exe, the application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Android: how to sum real values from Sqlite? I've got the following code to get a sum of real values (debt amounts stored in an SQlite DB:
public double getsumdebt() {
Cursor mCursor = db.rawQuery("SELECT SUM(CurrentAmount) FROM tblDebts", null);
if(mCursor.moveToFirst()) {
return mCursor.get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check referral url and re-direct based on that? I need to check referral url and if it's generated from Facebook redirect the user to a different webpage. How do I do that?
A: Take a look in $_SERVER['HTTP_REFERER'].
You can then use parse_url() to get the hostname, and compare the domain to a list of known ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generics: Creating parameterized class argument How does one get a parameterized Class object to be used as a method argument?
class A<T>
{
public A(Class<T> c)
{
}
void main()
{
A<String> a1 = new A<String>(String.class); // OK
A<List<String>> a2 = new A<List<String>>(List<S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Persisting model data on form post when redisplaying the view for an invalid ModelState Simplified example:
[HttpGet]
public ActionResult Report(DateTime? date)
{
if (!date.HasValue)
{
date = DateTime.Now;
}
// Clear the ModelState so that the date is displayed in the correct format as speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Core-Plot: Plotting only one point in a Scatterplot? I have a graph with two plots. One plot shows 10 data points and is static. The second plot should only show one data point that is a function of a slider selection.
However, whenever I move the slider to compute the coordinates of the single data point, the plot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I grab, sort and display top commenters (PHP/MySQL)? Its been two days and I still can't figure this out: how do I retrieve all the users who commented on a given article, sort them in descending order by the number of times they commented and then display their username and number of times they commented (i.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: compare character with single space java i'm trying to test a program that will print "space" if the user enters a single space.
but nothings displayed when i hit space then enter. my aim was really to count the number of spaces but i guess i'll just start with this. help me guys, thanks for any help
here's my cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VS 2010 pre-compile web sites with build process? VS 2010; TFS 2010; ASP.Net 4.0; Web Deployment Projects 2010;
I am using the build process templates in order to do one-click deploys (for dev and QA only). I want my sites to be pre-compiled. I can do it with the command line, using:
C:\Windows\Microsoft.NET\Framew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL storing images in an enum column A thought experiment:
You have a CMS that allows users to upload an image, and each page is stored as a row in the database. When a user
uploads an image, it is converted into a base64 encoded string. The
upload script then alters an ENUM column in a table and adds the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript Scope problem with OAuth I was wondering how to call waitForPin in this line:
setTimeout(this.waitForPin, 100);
File:
// namespace our code
window.App = {};
// my class (no Class.create in JQuery so code in native JS)
App.Something = function() {
};
// add functions to the prototype
App.Something.proto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xcode Internal error and no project opens Im on 10.6 and using xcode 3.2.6. On xcode launch (however i launch) i get an xcode "internal error' popup telling me:
File: /SourceCache/DevToolsBase/DevToolsBase-1809/XcodeFoundation/Specifications/XCSpecification.m
Line: 448
Object:
Method: registerSpecificationProx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java: List insert of more than one object with same HASH I'm having a bit of trouble with this one:
I need to override the hashCode() and equals(), resulting in some objects being "equal". That's the intended behavior, but i have collateral problems with collections (has expected...):
I work with an ArrayList, and i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7560441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.