text stringlengths 8 267k | meta dict |
|---|---|
Q: Android AsyncTask seems to stop after onPreExecute I've some problems with AsyncTasks in Android. I searched for hours for a solution but I don't get it...
The Task should check via HTTP an account exists and safe an access key via SharedPreferences.
Here is the AsyncTask code: (not integrated class!)
package de.tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Selecting dynamic default value in I have a php script which updates user info. I have created an html form, which allows user to edit the values and enter new ones.
Now when the form is loaded for the first time, it displays some default values taken from php variables.
The works fine but the problem is with ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best Practice for "Evaluate Now, Respond Later"? Suppose I'm building a login system. The user enters a username and password into a field and it is sent via HTTPS to the server, which validates the login before the page loads. If a bad password is sent, the login obviously fails immediately, but one would want th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MKMapview transform rotate only the map content I need to transform-rotate a MKMapview based on the course of the CLLocations I get from CoreLocation.
I basically have this already:
mapview.transform = CGAffineTransformMakeRotation(degreesToRadians(course));
However, this is not good since this rotates the entire ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: difference between assigning between self. and assigning from ivar directly
Possible Duplicate:
When to use self on class properties?
Difference between self.ivar and ivar?
I know that when you do
self.array = [[NSMutableArray alloc] init];
this means that I am calling the setter method.
However, I can also do:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Silverlight - Close Browser Window I have a Silverlight application that launches another Silverlight application in a new browser window. The new Silverlight application has a button called "Close". When a user clicks "Close", I run the following code:
HtmlPage.Window.Invoke("close");
This code works on IE just fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way to GROUP BY a time interval in this table? I have a table like this one:
DateTime A
10:00:01 2
10:00:07 4
10:00:10 2
10:00:17 1
10:00:18 3
Is this possible to create a query that returns me the average value of A each 10 seconds? In this case the result would be:
3 (4+2)/2
2 (2+1+3)/3
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: FlexLib Windowshade and Flex 4 I'm trying to build a collapsible panel in Flex 4. I thought I'd use s/thing like this:
<s:Panel
width="100%">
<s:controlBarContent>
<flexlib:WindowShade
width="100% />
</s:controlBarContent>
</s:Panel>
But that throws an error: Instantiatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: COUNT() together with the rest of the table's columns What's the easiest way to select the number of rows found, together with other columns from the table? The only way I've found is to do a join with a sub-query, but I imagine it's more resource heavy than such a simple task should be...
The result I'm looking for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Get variable & keep changes after postback This question is related to: Hide div on clientside click
The issue I am having is that after postback event from asp.net happens onClick any clientside changes made reset how can I keep the client side changes I am making.
Second question how can I get a variable from code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to specify a literal initialiser for Stack or Queue? This:
List<string> set = new List<string>() { "a","b" };
works fine, but:
Stack<string> set = new Stack<string>() { "a","b" };
Queue<string> set = new Queue<string>() { "a","b" };
fails with:
...does not contain a definition for 'Add'
which does make me won... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Async ajax requests aren't really async (JQuery and Zend) I've got a stack of ajax request:
$("someTable tr").each(function() {
// send the data.
var scriptURL = "/module/action/data/" + $(this).find(".data").html() + "/";
document.cyonVars.xhrPool[count] = $.ajax({
type: "GET",
url: scriptURL,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Internet Explorer causes an Invalid Authenticity Token error This works in all browsers except IE7 and IE8 ( and probably IE6 ).
For some reason it won't respect my Authenticity Token.
Any ideas, tips for debugging, workarounds?
My standard setup:
$(document).ajaxSend(function(event, request, settings) {
if ( s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Blur parent form when child showed How to blur parent form when child form showed to user? I using C#. Thanks!
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7571767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Editing with Coda I use coda as my text editor/subversion client at the studio I work at. We have many clients who hire us for a redesign of existing websites, meaning we have to stick with their existing file extensions. While I don't have to have an auto complete or color-coder for my PHP (and I write the majority... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ssrs 2008 r2 pdf blank pages I have report with dynamic-width list which when exported to pdf has every second page blank. I followed instructions given here, squeezed everything as hard as I could - and it worked. However I also have footer inside which I have horizontal line that should continue through whole page... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML5 Canvas - lines self-intersection with alpha-channel Please look at the picture (sorry, new users can't insert an image directly into post).
Lines are drawn semi-transparent colors (alpha = 0.5).
When the red line crosses itself, the double overlay translucent colors does not occur. At the same time, separate t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: String manuplation in C# Is there any method that I can use that returns a fixed length array after spliting a string with some delimiter and fill the rest with a default string.
Eg.
string fullName = "Jhon Doe";
string[] names = fullName.SpecialSplit(some parameters); //This should always return string array of l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Sortable doesn't work properly with draggable and droppable See demo http://jsfiddle.net/nivea75ml/5NhFA/1/.
Here, the green blocks at bottom which can be dragged and dropped into the dark gary area. Also I want the 3 blocks are sortable, for example, if the Block2 are dragged into dark gray area first and the Block... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Routing errors when adding an Admin namespace I added an Admin namespace to my app so when logging in to the administration area, it would have to be like this: admin/websites and admin/page/8
So this is what I have in my routes.rb
namespace :admin do |admin|
match '/' => 'dashboard#index'
resources :websites
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to achieve high-performance REST API on Azure with .NET? We have a .NET Web Role hosted on Windows Azure that only serves a REST API with only a hand few web methods.
API is used rather aggressively by other cloud hosted apps (not browsers). Each method is stateless which enable direct scaling out, and typicall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why does FETCH FIRST N ROWS not work in combination with WITH statement? I have the following SQL statement which does not run on my DB2 database:
WITH a AS (
SELECT * FROM sysibm.systables
)
SELECT a.* FROM a
FETCH FIRST 10 ROWS
Without the FETCH statement it works. The error message I get is:
Illegal use of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Regular analysis over irregular time series I have an irregular time series (xts in R) that I want to apply some time-windowing to. For example, given a time series like the following, I want to compute things like how many observations there are in each discrete 3-hour window, starting from 2009-09-22 00:00:00:
li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Critical tunnel failure problem in Blackberry I am facing critical tunnel failure problem in Blackberry while testing in Blackberry device.
I am appending interface=wifi while i am making request in device,but it shows critical tunnel failure problem.While testing in simulator it not showing any error.
http://maps.g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Visual C++ with a different C++ compiler? I like the Visual Studio IDE. I'm used to it and find it is the best IDE I've ever tried. We also find increasing use of C#/.NET here.
However, after the underwhelming announcement regarding C++11 features in VS11 I'm looking into replacing the compiler.
It seems that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Calling Python script that creates a subprocess over ssh hangs I have a bunch of scripts that are used to start similar processes across a number of servers. I'd like to condense them down to one Python script called 'START', but something weird is happening when it's run over ssh.
$ ./START APP_A works as expected... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Window.Show() display new window and then disappear behind main window I am developing a Prism application where I need to publish view-models in a new window. To achieve that I created a service dedicated to the publication of these view-models. I call it like this:
windowService.Publish(myViewModel);
And the body... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you programmatically apply a css class to an asp.net control? I'm wondering how I can apply a CSS class to an ASP.NET Control (TextBox in this case) through the backend in C#. For example:
<asp:TextBox ID="firstName" CssClass="input left" runat="server" Text="First Name" />
I'd like to add another class to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Recovering from a separate (now corrupt) SVN repository? So for some reason (miscommunication for what the actual subversion URL is and only 1 person working on the code previously) we have two different subversion repositories with what we want to be the same code. Basically the timeline went like this:
*
*Creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grails and AWS enforcing SSH/HTTPS I've been struggling with this for a few days now but I think it has something to do with Amazon's AWS. I want to enforce SSH/HTTPS, so that if a user inadvertanly goes to HTTP:// myaddress.com they will be redirected to HTTPS:// myaddress.com. I have added this to my config.groo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use i18n with a Grails/Groovy enum in a g:select? i am trying to get i18n localisation working on an Grails/Groovy enum,
public enum Notification {
GENERIC(0),
CONFIRM_RESERVATION(100),
CONFIRM_ORDER(200),
CONFIRM_PAYMENT(300),
final int id;
private Notification(int id) {
th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to browse when click other button I am trying to simulate the browse button, so when you click other button let it browse the file input?
A: Really easy just make it
<a href="#" onclick="form.browse.click();return false;">Browse</a>
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7571811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GitSharp cannot find cloned bare repository I have created a bare clone of a Git repository and placed it on a shared network drive. I am trying to open this bare repository from GitSharp.
I used the following command to clone the repository:
$ git clone --bare my_project my_project.git
With GitSharp I can open t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: adding multiple components to Jframe.getcontentpane() I have a class that extends JPanel and draws a triangle. I called it from other class to create three triangles but when third triangle is drawn the previous two disappeared. How can I add multiple triangles that are shown together.
Code is as follows:
Triangle.J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle, Inserting correlative numbers based on other fields Sorry for my english:
My query select date from mytable returns something like this:
DATE
27/09/2011
27/09/2011
27/09/2011
27/09/2011
28/09/2011
28/09/2011
29/09/2011
29/09/2011
29/09/2011
I also need that my query returns a correlative based on each dife... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determine size of object sent across the network I am trying to figure out the size of an object that is sent to my application via TCP. Unfortunately there is a third party tool that is receiving data and then handing my application an object through a callback.
Is there a tool provided with solaris that would hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any good alternatives for MessageBox in WinForms? A WinForms program will inevitably send notification to user. There are two types of notifications:
*
*Important: user needs to take action on it
*Non-Important: kind of like "there is something going on, and you might want to pay attention".
It's pretty comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: EOFError when open https I've been trying to use facebook graph api, though ruby raise EOFError when open api url (https://graph.facebook.com/.....)
I'm using Ruby 1.8.6 and Rails 2.2.2.
The code is as follows:
require 'uri'
require 'https'
access_token = open("https://graph.facebook.com/oauth/access_token?client_i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to use MVCScaffolding to create Views with problems NOTE: I have looked at this link and disabled CustomTools and still receive this error: MvcTextTemplateHost not found
I am trying to create custom Views in one command for Create, Update, Details, Filter, and List operations. I am able to add them one at a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE6 and 7 issue with innerHTML IE6 and 7 issue with innerHTML
I have used ajax in the application i have develop, but there are issues with IE6 and IE7, they doesn't support innerHTML. What must be used to fixed this issue and to be a cross browser compatible?
the sample code looks like this.
function showFAQ(src, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check value exists in XSLT I have some xml like this;
<formErrors>
<value>address_1</value>
<value>address_2</value>
//.. etc
And in an XSL template I have $formErrors as a variable and I want to check if a value exists. If there was a PHP equivalent, I would want an in_array() function. How can I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In ASP, what is the best way to save request variables to a frame I have a main page with a frame with its attribute src set to equal "SomeOther.asp".
Since I have some rather large request variables, I want to save my request variables from my current page into my SomeOther.asp frame. Is there a way to transfer my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ERROR 1005 (HY000): Can't create table '......\issue.frm' (errno: 150) This is the SQL:
CREATE TABLE user (
userID INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
username VARCHAR(100) NOT NULL,
isAdmin BOOL NOT NULL DEFAULT 0,
canAssignIssue BOOL NOT NULL DEFAULT 0,
canMarkDuplicate BOOL N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Delay in parallel computing I'm using parallel.for to launch in many threads a external program. But despite the fact that these are separate threads I need implement sth like delay. E.g. 2 threads want to launch this external program at the same moment - then one of them should wait and start e.g. 10 sec after seco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: netdb.h not linking properly I'm trying to compile this program, as referenced in Beej's Guide to Network Programming on page 19.
#include <stdio.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
int main() {
int status;
struct addrinfo hints;
struct addrinfo *servinfo; /* Wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to create a group that can only manage registered users in Joomla I'm making a website for a client and Joomla, I want the client to be able to manage users on the site / delete them if necessary, but that is it, I don't want them to be able to see or do anything else on the site, what is the best way of doing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get a valid response code for an image using PHP CURL on a Linux server? I am trying to detect whether a URL to an image is valid, behind a firewall or behind an authenticated area. Below is the function that I have written:
private function pingImg($img){
$found = FALSE;
$curl = curl_init();
cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lookup Field order I have a lookup field for a list of GMT time zones and I would like to define the order that the items appear on the new item and update item forms so that I can show on the dropdown box:
GMT +1
GMT +2
GMT +3
instead of
GMT +1
GMT +10
GMT +11
GMT +12
GMT +3
As much as I know, the lookup fields ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does Eclipse Link work together with Vertica i'm currently testing vertica. Since vertica has a jdbc driver it should be possible to get it working.
Is there a simple way to get Eclipse link to support vertica?
Are there alternative orm framework (like hibernate) that support it?
A: As long as you have a compliant ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: onListItemClick that shows description toast when title is clicked not sure if I am on the correct section, but I needed help for my school project.
Currently I am doing a listview that display the titles of the latest school news, whenever I click any of the title, I want it to toast the description of the selected... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any way I can 'stream' a PDO query result 'into' the output buffer, instead of storing it into a string? There's little to be added, if you see the title of this question.
I've got a query that retrieves a single row from a MySQL table, and I'm interested in a particular column, which is a BLOB. I would lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Android: How to have a single (main) Activity instance or retrieve the Activity instance that I need? I am developing an Android app that execute a thread and update the GUI via a GUI Handler on GUI Activity.
I need that the thread runs also when the user put the app in background. This is done!
My problem is that I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SSIS Pass Datasource Between Control Flow Tasks I'm having troubles solving this little problem, hopefully someone can help me.
In my SSIS package I have a data flow task.
There's several different transforms, merges and conversions that happen in here.
At the end of the dataflow task, there is two datasets, one th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does the startup time of mobile Couchbase make impractical? I have just started exploring Couchbase Mobile for Android and have been impressed with how far it has progressed. It would be nice to have an alternative to Android's SQLite which would involve less boilerplate code.
The biggest issue I have experienced s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Python - how to find all intersections of two strings? How to find all intersections (also called the longest common substrings) of two strings and their positions in both strings?
For example, if S1="never" and S2="forever" then resulted intersection must be ["ever"] and its positions are [(1,3)]. If S1="address"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Using UNICODE character values in C++ How do you use unicode in C++ ?
Im aware of wchar_t and wchar_t* but I want to know how you can assign value using only Unicode Values, similar to the way a character can be assigned by equating the variable to the ASCII value:
char a = 92;
Im uysing the MinGW compiler, if it m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: visual studio and .net 3.5 I have multiple versions of .Net installed on my machine. I need my current Visual Studio project to use .net 3.5 dlls, is there an automatic way of doing this? Or do I need to manually remove and add references? Also I am missing a lot of dlls in .net 3.5.
Appreciate the help,
Bruce
A: .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a function in c++ to output to designated source I want to have a function that outputs certain pieces of information to a specific designated source that is inputted to the function. In code, what I mean is:
function output( source ) {
source << "hello" << endl;
}
where source can be a ofstream or cout.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dynamic SQL concatenation Having an issue concatenating the following statement.
Basically I want the length column to add inches after but it will not run. I am going to create a function out of this in the future but unable to get past this step. What gives?
declare @column varchar(255)
declare @sql varchar(5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding image to Toast? Is it possible to programmatically add an image to a toast popup?
A: Yes, you can add imageview or any view into the toast notification by using setView() method, using this method you can customize the Toast as per your requirement.
Here i have created a Custom layout file to be inflated int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Any JavaScript templating library/system/engine/technique that returns a DOM fragment? I have to make a high speed web app and I need a JavaScript templating library/system/engine/technique that returns a DOM Fragment instead of a String containing HTML.
Of course it should have some similar language as Resig's Micr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Service Hosted WCF Service Getting "Access Denied" When Trying To Read a File I have created a windows service for the sole purpose of hosting a WCF service. In the WCF service I have a method that when accessed by the client reads the registry for a path to a file. The method then reads the contents of a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: use javascript to display label when checkbox is checked in an asp.net repeater I have an asp.net repeater that has 4 columns populated by a dataset that is pulled from a sql server. In one of the fields is a checkbox and all the others are labels. one field is called "type". Each record will be one of two types. Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: counting with conditions in mysql im a bit stuck in a quite simple query
i have these 4 columns in the table
id1 (unique), id2 (can repeat) , updated (boolean), updated_on
what i want now is to get a summary in the form
id2, count of updates , max (updated_on)
in short i want the result sorted by the recent update... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Mobile Hash Navigation not Working On Mobile Devices? When I run a jQuery Mobile page in Safari on a Mac everything runs fine. However when I run it on an iPad/iPod and select links on the page that are supposed to navigate to different pages it doesn't work. If I navigate directly to any given page (e.g., in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Printing numbers of the form 2^i * 5^j in increasing order How do you print numbers of form 2^i * 5^j in increasing order.
For eg:
1, 2, 4, 5, 8, 10, 16, 20
A: This is actually a very interesting question, especially if you don't want this to be N^2 or NlogN complexity.
What I would do is the following:
*
*Defi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Action specific JS Script just like view scripts By default, every action has its specific view script like index.phtml for index action. However more to this, I also want to have js script specifics to actions as well. like index.js for index action.
I tried to use $this -> view -> headScript() -> prependScript('m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to delete items from a std::vector given a list of indices I have a vector of items items, and a vector of indices that should be deleted from items:
std::vector<T> items;
std::vector<size_t> indicesToDelete;
items.push_back(a);
items.push_back(b);
items.push_back(c);
items.push_back(d);
items.push_back(e);
in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Answer password to keytool in batch files i need use keytool and jarsigner to sign a lot o files here in many folders.
Each time i start sign theses files i need delete the .cert and keystore file to recreate it.
Im on development enviroment and using fake passwd to sign it, after application working the infra peopl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Is there a way to focus a popover for a Safari extension? Just wanted to know if anyone knew how to put the focus on a popover for a Safari extension. Currently, the popover acts as if the window is inactive. This prevents any mouseover events from working and trying to type in any input field is difficult because t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using PHP to grab data from an XML feed when 2 or more fields have the same name I am having some issues getting this to work, I have a massive XML feed which I am putting into a MYSQL Database using PHP.
One XML article looks like this...
<Article Created="10:49:51" ID="800737873">
<Heading>Week in review: Mobile... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make your Service-Reference proxy URL dynamic? I have a web reference to web-service:
using (var client = new GetTemplateParamSoapClient("GetTemplateParamSoap"))
{
TemplateParamsKeyValue[] responsArray = client.GetTemplatesParamsPerId(
CtId, tempalteIds.ToArray());
foreach (var pair in respon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET ReportViewer body borders/lines How can I add borders to the body section of a report? I have lines on the left and right side of the body section (top to bottom), as well as "middle of the page" markers that intersect these lines. I want these lines to repeat on each page of the report, which contains num... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redirecting users with JavaScript disabled So, given the following markup, if a users browser has JavaScript disabled, they will be redirected to an alternate page that either attempts to emulate the sites functionality without JavaScript (perhaps a dynamically rendered page), or a warning page, informing the user t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scala -- How to use Functors on non-Function types? While reading the description of Functors on this blog:
https://hseeberger.wordpress.com/2010/11/25/introduction-to-category-theory-in-scala/
there is a generic definition of Functor and a more specific one:
trait GenericFunctor[->>[_, _], ->>>[_, _], F[_]] {
def... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: WPF Combobox deriving from derived doesn't work HOPEFULLY, someone strong in WPF knows what's going on... The scenario I've sampled below is also applicable to others too, like textbox, command buttons, etc...
I'm playing with creating custom user controls... Ex: working with a simple Combobox. In one project class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can I run SSIS Fuzzy Grouping from Visual Studio but not the deployed package? I have written an SSIS package to create a Fuzzy Grouping. I can run it from Visual Studio targeting any of my servers and it will run without any problem. If I try to run the dtsx by remoting to any of those servers, I get the PRODUC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why this operation with date (number of days between 2 dates) return this value? According to this question, I wrote "my code" (without Math.abs, I don't need it) :
var oneDay = 24 * 60 * 60 * 1000; // hours*minutes*seconds*milliseconds
var firstDate = new Date("2011", "09", "28"); // 28 september 2011
var secondDat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ActionBar Tab Selection public class TaskDetailTabHome extends Activity implements ActionBar.TabListener{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tablayout);
ActionBar bar = getActionBar();
bar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Averages in Sql Server Management Studio I need to get daily averages for several tags in my data. I am running into a problem with the following query that I have set up:
SET NOCOUNT ON
DECLARE @StartDate DateTime
SET @StartDate = '20100101 00:00:00.000'
SET NOCOUNT OFF
SELECT TagName, DateTime, avg(Value), avg(vVa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how can I change the properties of the cfg.xml file? I'm trying to change the properties of the hibernate.cfg.xml file programmatically
here's what I did :
public class NewHibernateUtil {
private final SessionFactory sessionFactory;
String host;
String database;
String username;
String password;
NewHibernateU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript: XHR not handling multiple async requests Hi I am trying to access one resource multiple times with with different parameters
In this case requesting
var domains = [
'host1',
'host2'
];
var requests = new Array();
for ( i in domains )
{
requests[i]=new request(domains... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to select all tags for a post with a given tag in MySQL? Assume I have three tables: posts, tags, and posts_tags. Posts store all the posts in my blog, tags stores all the different tags, and posts_tags stores the relationship between the two. For example, if the post with the id 2 is tagged with a tag with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Serialization with control over Attribute and Element without System.Serialization? I need to transform quickly some object into an XML string. If my project would not been in Silverlight, I would simply use the [Serializable] attribute with [XmlElement] and [XmlAttribute]. Unfortunately, this is not available in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Side bar height not expanding with floated content I have a parent div with two child divs. One of the divs is a sidebar, the other, content area. I am trying to get the sidebar to extend all the way down when the content area is longer than the sidebar. Any idea how to do this ? Here's a fiddle illustrating the pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Mail: Sending ÅÄÖ characters? I'm trying to send a mail containing ÅÄÖ characters (Swedish).
I've tried changing the mail header to UTF-8 and iso-8859-1, none of which works. I've also tried wrapping the text in utf8_encode() as well as mb_encode_mimeheader(), with no success. In some cases i get chinese charact... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does the Square app have a custom URL scheme? In my iOS app, as part of the mobile payments options, I'd like to direct users who have the Square app installed on their device to use this as a payment option.
Is there a custom URL scheme that Square uses that would allow me to launch their app from within mine?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7571997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to create generic enum? I'm trying to define generic enum, but have problems with it:
private enum Stick<T>{
A, B, C;
private Stack<T> disks = new Stack();
public void print(){
System.out.println(this.name() + ": " + disks);
}
public T pop(){
return disks.pop();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: android ImageView hyperlink coords I want to implement a functionality in which when particular area of an image set in an ImageView will result in calling an intent.
Similar to HTML coords hyperlinks
<img src ="planets.gif" width="145" height="126" alt="Planets" usemap ="#planetmap" />
<map name="planetmap">
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting DataContext within UserControl is affecting bindings in parent I have a basic UserControl that sets its DataContext to itself for ease of binding:
<UserControl x:Class="MyControlLib.ChildControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: LINQ Select distinct from a List? I have the following list:
class Person
{
public String Name { get; set; }
public String LastName { get; set; }
public String City { get; set; }
public Person(String name, String lastName, String city)
{
Name = name;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JAR-Level (Assembly-Level) Class Scoping in Java In C#, if I want a class to be visible to any class within that assembly (DLL), I simply scope it as internal (which is the default).
How can I do this in Java? In Java, I've noticed the default/internal scoping is package level, not JAR level. This is a problem for m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IE9: Validation message not getting cleared I am using an upload control which accepts only image files.If I select any non-image files I will be showing a validation error message "File type is invalid". The upload control i use is as follows
<UC:UploadControl runat="server" ID="file_logo" IsRequired="false" ReqVal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JS: external loading I have lot of pages in different domains that need to include some .js .css and html. I want to "remotely" update the included code.
So in those static pages I tought placing:
<script src="http://centraldomain.com/include.js" type="text/javascript"></script>
then in that file do:
document.write... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to have a "Time" Schema in Mongoose? I know I can do Date. but what about Time?
A: Are you just trying to get created at/updated at timestamps? If so you can use mongoose-types to add that as a plugin. Or you could use a mixed type I suppose.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7572024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to extend SoapException I am stuck trying to extend SoapException in order to add two additional string attributes.
I have a Web-Service method that should throw CustomSoapException derived from SoapException and I want to catch that CustomSoapException in web service client. But when I try to expose CustomSoapE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF resizing, * vs Auto I have a XAML with 2 columns in a Grid and I have a button that when I click it, in the code behind, I set the visibility to collapse, and want to resize the other half of the screen to try to take up the whole screen. The collapsing part works, and the RHS then shifts over to the LHS, but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# | DataGridView set column type programmatically I am building a program that loads an xml to a datagridview,
But I need to add 2 more columns one with buttons and one with images.
How can I add them here: ?
DataSet data = new DataSet(); string p = System.IO.Path.Combine(Application.StartupPath, "payday.xml"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Session control Various controllers at the same page in Symfony 2? i'm trying to control the session to forbid the access to some pages of my web app. The way is simple, a boolean session variable. The thing is there's one page for every action, but, i think is not elegant at all to ask in every action if the user i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to 'flush' UI Thread actions before continue execution I've got a problem in Android with runOnUiThread. I start an AsyncTask (inside an Activity) that waits for a while, and after calls the method showDialog(id). After this call, it sleeps for another while, and finishes calling the method dismissDialog(id).
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7572042",
"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.