text stringlengths 8 267k | meta dict |
|---|---|
Q: Send contents of a dynamically-generated survey page over email I have an installation of survey web app LimeSurvey set up for a coworker's project. It works great. I've customized the HTML, CSS (with a separate print stylesheet), and JavaScript to our liking.
I need the user to able to send the contents of a dynami... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unmodified DropDownList in UpdatePanel causes Event Validation error in FireFox Background
I have an ASP.net UserControl that is a simple user input form. It uses an UpdatePanel and UpdaetProgress to display a "working" gif after they click submit. We have gotten reports that the submit button sometimes doesn't do a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XML StringWriter empty I have some XML in a XMLDocument and I want to put it into a StringWriter, but it always becomes empty(?) instead. I've tried inspecting the variables with debug, but I'm still clueless as to what's going on.
Here's what I have:
XmlDocument xmlInput = new XmlDocument();
/* aft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Self SSL - Invalid Certificate I used Self SSL for the first time today to create a certificate for our exchange-OMA/OWA. I have imported the certificate into trusted root certificate authorities on my local computer so that it will not prompt that the certificate is not from a trusted source.
I am however still ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Placing C++ class in another file: compilation error I am learning about C++ classes and I realized that if I tried to move my class declaration and definition of class Date from main.cpp to another c++ file, say test.cpp and compiled the two files I got an error saying Date was not declared. Why is that?
A: This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook 'like' button Is it possible to have the very simple facebook like button, and a count (like they use for sharing content) when adding a button to like a facebook page?
I want to keep it nice and condensed, but the code offered by facebook included a title and a thumbnail.
Edit
To make it clear, I am looki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ColdFusion Conditional RecordCount Alright SO users... Here's a seemingly impossible to go wrong conditional statement. It is very simple, however, I cannot figure out why it won't work the way it is expected to.
<cfoutput query="checkForAd">
<!--- also used the line <cfif RecordCount eq 0> --->
<cfif ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rails model inheritance & routing class User < ActiveRecord::Base
has_many :queued_workouts,
:conditions => "queue_position IS NOT NULL",
:order => "queue_position ASC"
has_many :workouts
end
class Workout < ActiveRecord::Base
end
class QueuedWorkout < Workout
# Have to give this its ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apply TextDecorations to a CollapsibleSection I have CollapsibleSection objects that are dynamically being created in code. I would like to simply say:
CollapsibleSection section = new CollapsibleSection();
section.TextDecoration = TextDecorations.Strikethrough;
This is proving more difficult that I thought. Does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing login name to svn repository from eclipse Using Eclipse I added a SVN repository & imported a project using another person's login and automatically checked remember login. One can't always wait for IT people. Now I have my very own name and would like to switch logins. Can this be done without uninstall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery plugin re-inits when method is called This is my first stab at trying to create a JQuery plugin, so I apologize for my noobbery. My issue is that I believe the plugin is re-initializing when I try to call a public method. It's a simple plugin that creates a div and fills it with tiles, the method .reveal() s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python 3 gives wrong output when dividing two large numbers? a = 15511210043330985984000000 # (25!)
b = 479001600 # (12!)
c = 6227020800 # (13!)
On dividing ans = int(a/(b*c)) or ans = int((a/b)/c) we get ans equal to 5200299 instead of 5200300
A: Try using integer division inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: iOS payment gateway
Possible Duplicate:
Selling something inside an application
I'm really new to Objective-C programming, and I'm very interested in developing an iOS app. One of the major problems I am facing and that I've been researching is the opportunity of selling third-party products throughout my app. Ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ProcessBuilder does not stop I am trying to decode an mp3 file to a wav file by using the ProcessBuilder class under Linux. For some reason the process does not stop so that I have to cancel it manually.
Could somebody give me a hint on this. I think that the quoted code is very easy to reproduce:
import java.io.*;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to add include and lib paths to configure/make cycle? I need a place to install libraries in a linux box I have no su access to. I'm using ~/local[/bin,/lib,/include], but I don't know how can I tell ./configure to look for libraries there (particularly, I'm trying to compile emacs, which needs libgif, which doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: ColdFusion Error - I am getting an error on a web site that got moved to a new server? I moved a web site that works perfectly on multiple other servers onto a new server. We just patched the server, but I am still getting the following error:
ColdFusion is not defined
ColdFusion.Ajax.importTag('CFAJAXPROXY');
Col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: wxPython: SplitterWindow and SetMaxSize for one Subwindow I am quiet new to wxPython, so I hope there is nothing basic I am overlooking:
I want to use a SplitterWindow to split up my Frame's content in two resizable subwindows (A and B), but I want one of the windows (B) to have a MaxSize set.
Unfortunately, this po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google Visualization Pie Chart onclick event not firing in IE8 I'm using the Google Visualization API to draw a pie chart with some data.
I'm also adding an onclick event, which works perfectly in Chrome. But the event does seem to be firing at all in IE8. No error--it just doesn't fire at all.
The chart rende... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Forcing a program to run a procedure when returning back to a screen i have 2 screens. Screen 1 calls screen 2. When the user returns back to screen 1 how can i force it to run a procedure?
A: If you have an Activity per screen, you can reimplement the onResume method.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7561518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FancyBox, getting ajax to fire on window load/click I'm trying to get a fancybox window to come up on click after an ajax call. I can do that fine with
$(document).ajaxStop(function() {
//FancyBox image zoom functionality jQuery script
$("a.aboutContentImage").fancybox({
'zoomOpacity': true,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dojo Form Validation Across Tabs Hi I am having an issue with form validation with dojo's form dijit where
I have two or more tabs in the form. If I have a field that is invalid on tab
2 but I'm positioned on tab1 when i validate (by pressing the submit/ok button), the validate method does execute but it cannot fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass a value from Master page to content page in asp.net 4 I have no idea why this won't work but I have a function on a master page that gets the logged in user and then displays information about that user on the master page. I want to be able to pass one property (the user Role to the other pages to use f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Want to use LINQ instead of foreach but it doesn't work In the following code foreach loop works fine, but when I try to use LINQ instead of using foreach it doesn't work no exception no error.
This code is working :
public static IEnumerable<PatternInfo> LoadPatterns() {
var directoryInfo = new Director... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: List of Spring Runtime Exceptions Does anyone know where I can find a list of Spring's (3.0.x) runtime exceptions? I'm talking about exceptions like DataRetrievalFailureException; there's a whole set of these runtime exceptions that you can throw.
A: Alright, I was able to find them by loading up the source for Spr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Rails 3 Ruby 1.9.2: UTF-8 characters show garbled in console and view My database table has a column with utf8_general_ci collation.
The database.yml has encoding: utf8
The config/application.rb has: config.encoding = "utf-8"
When I use mysql command line and directly query the field it shows:
3√5^2 = 5^(2/3); 5^(2/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android hellospinner tutorial I am doing the HelloSpinner tutorial and I am getting error markers under two areas (lines 4 and 6 of the onCreate method...i marked them )and I cant figure out why? I have used the code from the tutorial and I have not varied from their instructions. Here is my code...
package com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How Do You Handle Expired Access Tokens for the New OpenGraph Publish Actions Feature? It looks like, even when you have publish_actions permission, the access_token still expires after a few hours. If the goal of publish_actions is to be able to do things for the user in the background without having to ask for per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NodeJS - multiple objects split across multiple files but in the same namespace I am writing a multiplayer board game server in NodeJS, and I have several different objects like Game, User, Board etc. Currently, all of these objects reside in a single 'sever.js' file which is executed by NodeJS.
As my project grows,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I word wrap long strings in Annotations in AppKit's mapview? I am working with the mapview in AppKit. I have a map with pins which, when tapped, bring up an annotation with text in them. When the strings are too long, they cut off with elipses.
I'd like to make the text wrap to the next line instead of cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Whats wrong with this CSS/HTML code?
Possible Duplicate:
CSS not modifying link properties
What's wrong with this code? When I scroll over the navigation, everything pops up. Additionally, I cant get the color of the text to be white (when I scroll over it, its white but when I back off, it stays black. Also,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: jQuery Ajax passing value on php same page I am kinda confused on it, when trying to send value on the same page.
<script>
$("select[name='sweets']").change(function () {
var str = "";
$("select[name='sweets'] option:selected").each(function () {
str += $(this).text() + " ";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why would you use a !! operator I came across abit of ruby in a example
def role?(role)
return !!self.roles.find_by_name(role.to_s.camelize)
end
Why would you ever use !!? Is it not the same as
return self.roles.find_by_name(role.to_s.camelize)
Does adding the double exclamation mark add something to the evalu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Node.js: How Many Redis Clients? In Node.js, would it be best to do a createClient() for each individual HTTP request or user, or would it be better to re-use the same client for all requests? Do you still get the speed of several parallel clients with just one?
A:
In Node.js, would it be best to do a createClient... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: ActiveX component can't create object: 'CDONTS.Newmail' I'm getting this error on a windows 2003 server:
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object: 'CDONTS.Newmail'
I really don't want to have to change the code to something else. is there some way i can get CDONTS to work o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: login to facebook chat using asmack on android with the new access token I have a FB chat client developed for Android. I've been using facebook android-sdk to obtain the access token from a user. Using asmack, user was logged into the chat.
Token was in the form: 226409362971500|3b29bc82baa7901a9baca042.4-72793766|... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i get Apache to log who started/stopped it? I need Apache2.2 to log the username of anyone who tries to start or stop it. How do i go about it?
A: This could be achived by sudo, not allowing users to log in as root directly and allow them only specific action, and each action can be logged.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7561583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Configure SSL on a Microsoft.Web.Administration.Application object? I'm having a little trouble figuring out how to programatically enable the "Require SSL" check box and change the "Client Certificates" option to "Require" in IIS Application using Microsoft.Web.Administration.
All of the questions on the net I've f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: nodejs proxy not responding I have a node.js app that serve static files (html, js, css). Among the static files, some ajax request are done (with /TEST in the request). I need those request to be proxied to another server running on localhost:213445. The static pages are correctly displayed but when it comes to pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unrecognized pref_type 0 for NullProfileSettings pref name default_non_connection_tab I get the error
"error": {
"message": "SETTINGS: Unrecognized pref_type 0 for NullProfileSettings pref name default_non_connection_tab.",
"type": "Exception"
}
when trying to view this feed
https://graph.facebook.com/10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Initializing static fields in C# for use in enum pattern My question is actually about a way to work around how C# initializes static fields. I need to do this, in my attempt to duplicate a Java style enum. The following is an example of the code that shows the problem:
A base class for all my enums to inherit from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How has this view and control been done? The image is attached below. Basically it is the popular photo editing app Snapseed. When you touch drag on an image that is being edited a table like view animates in to visibility on top of the image with its options as seen below in the image. The neatest part is that it v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Define Self as multiple attributes in Django I'm new to Django and building my first app.
I want locations in my Admin section to be displayed by a combination of different attributes from the model.
Currently they are shown by the icon by using the following code.
def __unicode__(self):
return self.icon
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Automapper: How to get source property name from PropertyMap How do I get the name of the source property from the property map in this code:
IEnumerable<PropertyMap> propertyMapList = Mapper.FindTypeMapFor<TFrom, TTo>().GetPropertyMaps();
foreach (PropertyMap propertyMap in propertyMapList)
{
////.....
}
A: T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: vim spell check: ignore capitalized words? How can I tell Vim's spell checker to ignore words which have a leading capital?
It's annoying that, for example, MyWidget is flagged as a spelling error.
A: You can define a syntax element to ignore spell checking.
" Ignore CamelCase words when spell checking
fun! IgnoreC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Object hasn't in property - php soap wsdl Every time I try to make a call to my webservice, through the wsdl, I get the error message shown here. I think it's probably an issue within the the WSDL defintion, because I am not really sure what I am doing within the WSDL definition to begin with:
PHP Fatal error: SOA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android, why ever use Button views, since every view can have an onclicklistener I am curious, why would I ever use Button or ImageButton, when TextViews, ImageViews, and everything else all can have onclicklisteners, all can have src's and background attributes, states and everything else that a Button or ImageButt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MongoDB regex query to find unicode replacement character I am trying to manually fix some documents in my Mongo database which contain the Unicode replacement character (looks like a question mark, see http://www.fileformat.info/info/unicode/char/fffd/index.htm). I already fixed the issue why these characters ended... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which of these parts goes into the model vs. controller? I have 5 tasks that a step of my application needs to perform.
*
* Receive a CSV file as part of a user upload.
* Parse each row in the CSV to a canonical representation.
* Create an ORM POCO relating to that representation.
* Save each item to the da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android, how can i encapsulate an AsyncTask class with network connections Im starting with android (3 days ago) and i cant get the solution for what i want. So, i read a lot of threads here about asyncTask and now im sure i got confused.
First of all, this is my first question so i hope i get this at least right.
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I ensure that nobody can download a video off my site? I'm creating a site that shows videos. I'm using the VideoJS player(HTML 5 with a flash fallback - http://videojs.com/) and am using .mp4 files.
My client is concerned that someone may be able to steal/download the video files.
What can I do to ensure no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Counter that doesn't reset when the page is closed I'm looking for some simple script to display what the title says. Some sort of counter (like a timer) that starts incrementing when the user clicks a button and stops when clicked again or when the page is closed. BUT it has to save the last value to start adding f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are WebClient's BaseAddress and QueryString properties used for? I am trying to instantiate a WebClient as follows:
WebClient wc = new WebClient();
wc.BaseAddress = "http://contoso.com";
wc.QueryString.Add("ctNm", "some name");
wc.QueryString.Add("port", "title");
wc.QueryString.Add("rx", "1");
wc.QueryString.A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Automatically save textbox contents I have a textbox that a user can type some text into. The area that the textbox is in can get re-loaded with different HTML depending on what the user does, and I want the textbox to "remember" what the user typed into it when he comes back.
The problem starts with the fact that t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Syncing two iOS devices over bluetooth I'm not sure if this one is even possible, but I thought that I should ask. I need an event to be triggered on two (or more) ios devices at the exact same time. Right now I use Bluetooth to trigger the event on all devices, however, as expected, there is a small (or not so smal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Process Items in an Array in Parallel using Ruby (and open-uri) I am wondering how i can go about opening multiple concurrent connections using open-uri? i THINK I need to use threading or fibers some how but i'm not sure.
Example code:
def get_doc(url)
begin
Nokogiri::HTML(open(url).read)
rescue E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What's the need of Informal Protocols? I've read the online docs about formal and informal protocols on Apple's documentation site, but I missed the point about informal protocols. I mean,
*
*a class cannot conform to an informal protocol, it conforms to it by default since informal protocols are almost always c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OAuth 2.0: Benefits and use cases — why? Could anyone explain what's good about OAuth2 and why we should implement it? I ask because I'm a bit confused about it — here's my current thoughts:
OAuth1 (more precisely HMAC) requests seem logical, easy to understand, easy to develop and really, really secure.
OAuth2, ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "291"
} |
Q: Dynamic library problems with Python and libstdc++ Executive summary: a Python module is linked against a different version of libstdc++.dylib than the Python executable. The result is that calls to iostream from the module crash.
Backstory
I'm creating a Python module using SWIG on an older computer (running 10.5.8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Minimize database interactions with caching I was looking at this:
http://dev.mysql.com/doc/refman/5.1/en/query-cache.html
It's an amazing way of caching stuff, but it happens on the database side, it would be great if there was some kind of code for PHP that would do the same for you.
I mean you would send your que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Object (KeyEvent key) to String (Java) I have something similar to the following:
An object with the value of KeyEvent.VK_G.
How can I get the key letter from that object (as a String)?
A: By using KeyEvent.getKeyChar() (see http://download.oracle.com/javase/6/docs/api/java/awt/event/KeyEvent.html#getKeyChar()).
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple Choice on iOS I'm taking the plunge into my first iOS app (for fun), and have decided to make myself a flash-cards type app to study with. Basically, show a picture and under it have a few selections to choose from, with one being the right answer. This is the basic functionality that I would like to have. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make custom dictionary for Hunspell I have a question about building a custom dictionary for hunspell.
I'm using a general English dictionary and affix file right now. How can I add user-specified words to that dictionary for each of my users?
A: I'm trying to do the same but haven't found enough information... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Python how to join list of lists using join function I am new to Python. Have a question regarding join function.
masterlist = [
('ap172', ['33', '212-583-1173', '19 Boxer Rd.', 'New York', 'NY', '10005']),
('axe99', ['42', '212-582-5959', '315 W. 115th Street, Apt. 11B', 'New York', 'NY', '10027'])
]
I wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: For a Grails app to scale well, do you need to use EJBs? I've been working on a project in Grails and wondering if Enterprise Java Beans would be needed for it to scale on a Tomcat Cloud Server. I'm using basic GORM for persistence, and a mysql backend.
A: No, EJBs are not needed to scale.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7561651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linkedin Api The remote server returned an error: (401) Unauthorized I am working on the Linkedin Api.
In my OAuthLinkedin.cs,
I have the following:
public string WebResponseGet(HttpWebRequest webRequest)
{
StreamReader responseReader = null;
string responseData = "";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: minimal checks to find repeats in a list Given a sequence (d1, d2, ..., dn), I want to evaluate the product (1 - Dij) for all i != j where Dij = 1 if di = dj and 0 otherwise.
The code I have only checks Dij when i
prod = 1;
for (int i=1; i<n; ++i) {
for (int j=i; j<=n; ++j) {
prod *= (1 - Dij);
}
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why escaping 'w' ('\w') character reverses memory representation of a int variable? Consider the following code sample:
int i1 = 'w\"';
int i2 = '\w\"';
int i3 = 'w"';
int i4 = 'w\"';
Note: MSVS SP1 2005 C++ compiler, just default debug compilation/linkage settings. x86 machine. The compiler outputs warning C4129: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to change the page/plot two figures I am developing a tool that should produce 3 plots. Two of those are related and therefor I have created them using the the pyplot.subplot. The third one needs more space, and I would like to create it on a single chart.
It is clear to me, that I could plot two figures. But ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP captcha Image I am using a captcha image verifier in my PHP form. The form uses a cookie to check the verfication code entered by the user. Is there anyother way to do this other than using a cookie?
A: Cookies are a very bad idea in this case. Instead, you should use a variable set in the $_SESSION PHP supergl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq query to linq extension methods How to write this linq query using extension methods?
var products = from p in db.Products
join ps in (from pss in db.ProductSpecs
where pss.spec_name== "Price"
select pss
) on p.id equals ps.product_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Appending to the end of a file in a concurrent environment What steps need to be taken to ensure that "full" lines are always correctly appended to the end of a file if multiple of the following (example) program are running concurrently.
#!/usr/bin/env python
import random
passwd_text=open("passwd.txt","a+")
u=("js... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Haskell beginner question (defining pairs, similar to Http statuses) I'm a Haskell beginner and have to define a series of known statuses that consist of an Int and a String / ByteString, similar to HTTP Statuses
I will never have to get a status code from a status message. However I will have to get a status messa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery - Add img title to thumbnails I'm having problems grabbing the title tag from an image in a slider and inserting it somewhere else on my page. It's only grabbing the first title from the first image and not the subsequent ones.
My script:
var imgTitle = $('.nivoSlider img').attr('title')
$('a.nivo-control').... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unmount a network volume? How do I unmount a network volume?
NSWorkspace thinks they're neither removable nor unmountable. unmountAndEjectDeviceAtPath: @"/Volumes/the network volume in question" causes nothing whatsoever to happen. There's probably some easy way to do this, sitting right under my nose, but I can't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting the href attribute replaces the text of the link EDIT: I am not talking about the status bar display, I'm talking about the text you click on to follow the link. /EDIT
I looked through a few similar posts and didn't find an answer. I have a link that I want displayed.
www.mylink.com
I want the href of the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PowerBuilder 11.5 on Windows 7 - Database profiles not visible After I installed PB 11.5 on Windows 7, I am not able to see list of database vendors (Oracle, SQL Server, etc.) in the "Database Profiles" screen. Only the ODBC connection is visible. Is this related to security settings on laptop that prevented the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do we not pass POD by reference in functions? I've always been told that we should not pass POD by reference. But recently I've discovered that a reference actually takes no memory at all.
So why do we choose to write:
void DoSomething(int iNumber);
instead of:
void DoSomething(const int& riNumber);
is it not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Rails CMS with custom types I come from the .NET world and have some PHP background as well.
I'm currently developing in Ruby on Rails and I'm using Rails 3.1 and Ruby 1.9.2.
I've been researching about Rails CMSs, but haven't had much luck with what I've been looking for.
The one feature that I'm looking for is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript's geometrical methods: Zero isn't exactly zero, is it? In a simple geometric program written in Javascript and Canvas, when I set the angle to 270° (1½π), I expected the Math.cos(θ) to go to zero. The vector is straight down from the center, there's no x distance on a cartesian grid. Instead, I get this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: number as consecutive bits What would be the fastest way to represent a number as a set of consecutive bits?
Number range: 1-32, output to be stored in unsigned 32 bit variable.
input : 1
output: 10000000000000000000000000000000
input : 5
output: 11111000000000000000000000000000
input : 16
output: 11111111111111110... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Design approach for controller What is the design approach if 3 war files sharing same service and busniess logic layer.How i should use Controller here. if i am not using application server,I mean not packing into ear file.
What is the alternative for the controller?
Regards,
Raju komaturi
A: It's fine to keep yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The mystery arguments passed by setTimeout in Firefox
Possible Duplicate:
Firefox setTimeout(func, ms) sending default parameters to callback
I have been wondering this for a long time. When I type in the following line in FF, then I get:
var timer = setTimeout(function () {console.log(arguments)}, 500);
argumen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Unresolved dependency on sbt-android-plugin 0.6.0-SNAPSHOT? I just followed the steps at Build Scala Android apps using Scala and when I ran sbt inside the project folder I got the following unresolved dependency error:
[info] Loading project definition from /Users/macarse/Documents/scalatest/project/plugins
[info] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: MySQL - Joining with an or statement? I have a query where I want to join to another table if the field has either one value or another. How would I go about doing that? Should I use an or statement? (Is that even possible?) Or will an IN statement suffice?
SELECT table1.field1,table2.field2 FROM table1
INNER JOIN t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSON format inconsistency There are two JSON format that i came across:
Format A:
[
{"topic":
{"category":"testCategory","created_at":"2011-09-27T05:41:42Z",
"size":5,"title":"testTitle2", "id":1,
"posts":[
{"number":1,"created_at":"2011-09-27T05:41:42Z",
"text":"text2"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQLAlchemy, sqlite and fork() What is the best way to use fork() in a SQLAlchemy + sqlite project?
The SQLAlchemy documentation mentions that one should call create_engine() in the child but doesn't mention any other caveats, of which I am sure there are plenty (write locks, busy_timeout, dispose/connection-issues, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MFMessageComposeViewController setting the UINavigationItem titleView I'm having a problem overriding the title view of MFMessageComposeViewController's navigation item. Here is the code:
MFMessageComposeViewController *messageViewController = [[MFMessageComposeViewController alloc] init];
messageViewController.body... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resource Files how to name them? I am playing around with resource files and have run into a problem.
I have a folder called Languages. When I make a resource file and say call it "R.resx" I can call this resource file up in my classes.
If I rename this file(or delete and make a new resource file) and call it R.en.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cannot find protocol declaration NSObject I am about to try and pass a value that the suer selectes in a subview back to the mainview of my application. I have been doing abit of reading about how to do it, and am currently following a fairly informative tutorial here
I am starting from step 18 and implementing this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the easiest way to scrape a Wikipedia table into a graph? What's the easiest way to quickly take a column like these marathon times and display them as a graph? Just an ad-hoc momentary view is sufficient; fancy formatting, editing, or saving as a file type isn't a concern.
A: Selecting, copying, and pastin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NSMutableDictionary losing data? sprite.extraData
Is a NSMutaleDictionary.
In one method, I do this:
[sprite.extraData setObject:@"HELLO" forKey:@"NAME"];
Now, in a different method, I do this:
for (CCSprite *anim in animations) {
NSLog(@"%@",[anim.extraData objectForKey:@"NAME"]);
}
Where sprite ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Automated web UI testing in Node.js Are there any automated web testing libraries for Node.js, preferably headless?
A: You should also check out PhantomJS and CasperJS. Together, it's a testing framework in pure JavaScript with a headless WebKit browser. It works in Linux, OS X and Windows.
A: Selenium now has Jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: how to switch arrays from which a uitableview is populated Hello im constructing an iphone app the requires the user to switch tableviews depending on which button is selected at the top. I have five different tableviews each populated from an array in a plist file. My question is how do i tell this uitableview to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript Image Rotator Problems My code is very self explanatory. It is suppose to, after the page loads all necessary images, start looping through the same 5 images for the banner, with a 5 second delay in between. But, it doesn't do anything when the page loads.
<script type="text/javascript">
var counter = 0;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I can not see the jquery ui icon but the text inside the span was displayed I can not see the jquery ui icon but the text inside the span was displayed. Anyway to troubleshoot this. When I used firebug, I don't see the css code when highlighting the span tag.
<TITLE> Test </TITLE>
<link rel="stylesheet" type="text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encrypting NSString with SHA1 hash Someone asked me if I can help them out with a small project. Everything was working out perfect until I ran into an SHA-1 encryption. I have been working on it for several days but cannot figure out a way how to tackle this problem.
The goal is to encrypt an NSString, sending it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Incorrect syntax near '.'. - C# When I attempt to run the following the code,I got an error.What might be the problem?
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection cnn = new SqlConnection("server=.; database=YEDEK; Integrated Security=True; ");
cnn.Open();
SqlComm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problem when loading images with AJAX I'm using a jquery plugin to load images from flickr. I'm trying to distribute these images into 3 columns as they come in, the goal being to place each image in the shortest column so that the columns are close to equal length at the end.
The script works great most of the time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transparent PNGs don't retain transparency after being transformed (Django + PIL) I'm using sorl-thumbnail, PIL, and Django on a webserver to dynamically create thumbnails in templates.
PIL is installed with PNG support, but for some reason the transformations are creating some really bizarre artifacts on the transp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: HTTP Post Connection Guarantee I have an application that speaks to a server on a regular basis using HTTP POST. I am trying to make the connection as failsafe as possible, so the application will not try to send a thing if it does not have a working data connection. How can I detect a connection loss during the mid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7561818",
"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.