text stringlengths 8 267k | meta dict |
|---|---|
Q: HTTP handlers in IIS6 or IIS7 classic mode I'm currently struggling with httphandlers in IIS.
I'm developing a website in .NET4 in VS2010 and Cassini. In this website, i have a gallery, whose pictures are loaded through my handler.
For example http://mywebsite.com/Gallery/123/Pic1.jpg
My HTTP Handler gets the id 123... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: COUNT causes error in db2 from PHP When I run this query I get the following error:
Column MANUFACTURER or expression in SELECT list not valid.
The query runs fine if I remove the COUNT function.
Any ideas?
(this query is a bit of a mock so it might not make perfect sense)
SELECT
MANUFACTURER
, PART_NUMBER
, COUN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I have a method and I want to return three different values to my main method Lets say I have this program below. Now I want to pass both the users first name AND last name into the method without calling it again and changing the parameter and making the user retype there first name and last name again.
I know I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I configure hadoop mapreduce so that the log of my mapreduce class can output to a file? I modified the $HADOOP_HOME/conf/log4j.properies
But it is not working as what I expect.
How to solve this problem?
A: Check if you have other log4j.properties files in your classpath. A problem with log4j is that the o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Razor View Engine Not Searching Area View Locations I am using the default RazorViewEngine, and Area layout configuration, however when i naviagate to a link which uses a view within the area. I get a error stating the View could not be found and searched in the following locations:
~/Views/Applications/Details.csh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Binding to datagrid and null object I display products within a datagrid for fast editing. Each product may have some different prices. I have created a Price class which has as properties my prices.
To display the price for delivery i use
<DataGridTextColumn Header="Delivery" Binding="{Binding Path=Price.Delivery}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why isn't has_many working on these Mongoid models? I have these models:
class Feed
include Mongoid::Document
field :name
field :host
field :user_name
...
has_many :stores
end
class Store
include Mongoid::Document
field :name
field :store_id
field :dealfeeds, type: Array
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache ReWrite rule for & to & Already doing this rewrite rule
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://www.%{SERVER_NAME}%{REQUEST_URI}
Now the requested url is
https://www.example.com/abc.php?a=&b=abc&c=def&d=0&e=1
to
https://www.example.com/abc.php?a=&b=abc&c=def&d=0&e=1
A: a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I batch rewrite an SVN log? I need to do a search/replace over the names of users making changes to my SVN repository; we're making some organizational changes so I need to change 'fantasticMan' as the author of various changes in the log to 'authorA' (just an example).
My idea was to svn dump and then do a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: If mysql results = 1 then . Is not working? Hello I wanna check to see if there is all ready a user in the db with the same username before adding it to the db ... but I'm getting a white page.
$sql2="SELECT * FROM users WHERE username='$user' ";
$result2=msyql_query($sql2,);
if (mysql_num_rows($result2)==0) {
echo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get event from Google Calendar in Java? I use this code for getting Google calendars list:
// Create a CalenderService and authenticate
CalendarService myService = new CalendarService("exampleCo-exampleApp-1");
myService.setUserCredentials("j...@gmail.com", "mypassword");
// Send the request and print the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BUG?? ImageView causing background image to stretch I am trying to write an xml representing the following GUI:
--------------------
| <text>|
| <text>|
| |
|<pic> |
--------------------
in the background I want to have an image....
I wrote the following:
<LinearL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find the text of an element in XML that contains a namespace with GPath Hey I would like to find a given text in an xml that looks like this:
<s:Envelope xmlns:s="http://...">
<s:Body>
<About_ServiceResponse xmlns="http://...>
<About_ServiceResult xmlns:a="http://>
<a:businessServiceVersionStructureField> <a:Busines... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby find next Thursday (or any day of the week) What is the best way to calculate the Date, Month, and Year of the next Thursday (or any day) from today in Ruby?
UPDATE In order to create dummy objects, I'm trying to figure out how to calculate a random time. In all, I'd like to produce a random time between 5 and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Objective-C release, autorelease, clarification needed I am pretty sure this is correct, but if possible could you confirm
[[self doublyLinkedList] add:[n1 autorelease]];
and
[[self doublyLinkedList] add:n1];
[n1 release];
will both produce the same retainCount for the n1, once the pool is drained
A: Although bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multiple static variable scopes within same application? What is the best way to set up multiple static scopes within the same application?
I have structs that serve as wrappers over accessing an array.
Here's an example:
class FooClass{
static int[] BarArray;
}
struct FooStruct{
public int BarArrayIndex;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I index a tree in MongoDB? I need to create a tree with tens of levels and thousands of nodes, and then find a given document by field inside that tree.
Is it possible to index that field in the whole tree?
And what would the query to find that document look like?
A: You want to store a graph, use a graph datab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I programmatically generate Heroku-like subdomain names? We've all seen the interesting subdomains that you get automatically assigned when you deploy an app to Heroku with a bare "heroku create".
Some examples: blazing-mist-4652, electric-night-4641, morning-frost-5543, radiant-river-7322, and so on.
It see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: MY cssjson code not is not effecting my div <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles/common.css">
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type='text/javascript'>
$(function() {
$.getJSON('http://api.jo.je/justgiving/jsonp.php... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to execute shell commands synchronously in PHP I need to run multiple scripts(5 scripts) via cmd, I want to make sure unless and until the first script finishes the second should not initiate. Thus after first script completes then only second should being then third one and so on..
Currently I am using the foll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Do you use onPostCreate() method? According to the documentation,
Called when activity start-up is complete (after onStart() and
onRestoreInstanceState(Bundle) have been called). Applications will
generally not implement this method; it is intended for system classes
to do final initialization after applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Ruby on Rails - Import data from csv file from url I am creating a simple app in Ruby on Rails. Need to import data from cvs files at finance.google.com (an example http://www.google.com/finance/historical?q=NYSE:SMH). The program then stores this data for all 500 companies of S&P500 on a daily basis into a database... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Event handler not firing anymore I have been at work this afternoon trying to use a backgroundworker to read from an pretty large xml File Located in my assembly. It has worked pretty well up till the point I decided to rename the backgroundworker's objectname. After I built my solution, it told me it was a success.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what is ids.xml used for? Just a quick question, what is the ids.xml used for when developing an Android app?
I saw an example on the android resources webpage which contained:
<resources>
<item name="snack" type="id"/>
</resources>
What would this be used for?
A: Another application for id.xml is in respect to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: How to install PIL with Freetype? I wanted to put django-simple-captcha in my project but it cannot create images for the CaptchaField. It says "No module named _imagingft"
I am using Ubuntu 11.04
I installed libfreetype6 and libfreetype6-dev by apt-get install
then I downloaded PIL 1.1.6 and changed
FREETYPE_ROOT ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: update statement not executing I am trying to write an UPDATE query that can check for a null value in one of the fields. I have three conditions, two are mandatory, of three fields. itemCode and itemCheckDigit will always exist, itemSuffix is possibily Null.
There may be multiple records where itemCode and itemChec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Searching (x,y) pair in sequence I would like to find match (x,y) in string.
Is the following seem good ?
Or better alternative you can suggest. Please note that between (x,y) pairs several white spaces or commas may exists in mystring.
#!/usr/bin/env python
import re
mystring="(3,4) , (2, 4),(5,4), (2,3), "
tmp= ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Radio button checked using jQuery I'm trying to alert some stuffs when a radio button is checked but my code isn't working. Does anyone have any idea why?
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I change the date format of a DataBinder.Eval in asp.net? I'm trying to figure out how to change the datetime format so just the date will show up.
<asp:Repeater ID="RepeaterActions" runat="server">
<ItemTemplate>
<li>
<span class="historyDate"><%#Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How to get current method name not from the current Thread at runtime using reflection? class Foo{
static void fooMethod1(){
// do something
}
static void fooMethod2(){
// do something
}
static void fooMethod3(){
// do something
}
}
class bar{
public static void m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: php curl posting to server where script is hosted doesn't work I'm trying to use curl to post data to a script which is posted on the same server however it gives me this error:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Moving SQLite database from android phone to emulator I have my app with some data. I'd like to test my sqlite database (from my phone) in Android emulator. I'm 99% sure It was working some time ago using the same method.
I know where are my database files, I know how to use PUSH and PULL DDMS features.
Maybe someth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: helpers for all controllers under a namespace? I have an admin namespace. Is there a standard way to create a helper file that is automatically available for every controller in the namespace?
A: If you have all your controllers in the namespace inherit from a different controller than the others in your applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: restrict xulrunner network access
I have a xulrunner application that uses browser component to display HTML content. For security reasons I would like to restrict that browser to be able to only access a certain url mask.
I would like to restrict any networking to intranet only, something like "*.company.com". Bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding a dropdown list to the browser through google chrome extension? Is it possible to add a dropdown menu to chrome browser through a google chrome extension
so the user can chose an option lets say color and then the extension can apply that color to
the background or something else? Note I am interested in addi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding a click event to Zynga's new Canvas Scrolling API In case you missed it on HN, Zynga open sourced a great tiling / scrolling API for Canvas.
https://github.com/zynga/scroller
How can I add a click event to each cell for this? Exact code isn't required just the idea of where to start. I haven't spent enough ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Concurrency between many machines running the same web app on the server side This is a pretty open question. I was wondering: how can you handle concurrency if you have a web application that is hosted on many computers on the server side? For example, how can you manage a simple stack if you have an ASP .NET appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parse XML String with Regex.Matches in C# i have a very strange problem which i cannot solve at the moment.
i try to parse a xml string with Regex.Matches to get all xml Nodes with a specific name.
it worked until now.
i have a xml input string with exactly 30 xml nodes named "row"
for some freaky reason my code ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: select with $('#id ul li') & excluding .class I'm using the following code in a function.
$('#id ul li').css('background-image','none');
Is it possible to add a unless statement so it excludes any li with the class .class ?
A: Not an "unless" statement, but a :not() statement:
$('#id ul li:not(.class)').css('backg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript object instantiation similar to php new $className(); I'm trying to do the equivalent to this but in JS.
$className = 'MyClass';
$obj = new $className();
I've tried obvious things but with no luck, currently resorted to using eval as below :/
eval('var model = ' + modelName + '();');
Thanks!
A: For glo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how are google hangout apps served Can someone explain how google hangout apps are served? It seems to me that google downloads the manifest.xml from a public url you specify, then reserves the html in the content tag. How does google prevent the javascript in that content from manipulating the clients cookies for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate a hyperlink for each id I have an HTML page with tens of elements with an id attribute. I want to have an on page navigation in the sidebar.
How can I get a bookmark link for each id ? like for each id="N" I need <a href="#N">M</a>
but not next to it, all in one separate place.
Edit: Even better (assuming I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTMLUnit and Android: JAXP incompability Trying to connect to "www.google.com" throw a simple HTMLUnit The WebClient class initialization of HTMLUnit failed on incompatibility with android jaxp impl:
final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);
HtmlPage page1 = null;
try {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unique job with NSOperationQueue On an iPhone project I have an NSOperationQueue, which handles communication to a server, on my appDelegate object and an upload job as following:
@interface UploadOperation : NSOperation
- (id)initWithItem:(NSDictionary*)anItem;
@end
I'm pushing items, with the user's request, to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Uploadify with big files (2GB+) I'm using Uploadify to create a file uploader to Amazon S3. I need it to work on files up to 2GB, and show an error if the file is bigger than that. I don't have a finer file granulation, but for a 3.5GB file it works correctly (i.e. shows the error), and for a 10GB file it does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MYSQL - select max score of each player for each day assuming we have a table like below
name | userid | score | datestamp |
-----------------------------------------------------
john | 1 | 44 | 2011-06-10 14:25:55
mary | 2 | 59 | 2011-06-10 09:25:51
john | ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to handle list of undefined length with gettext? I'd like to translate strings of the following format:
Delete files toto, tata and titi.
First idea was to use Delete files %s but then I thought about plural forms.
What if some language doesn't put 'and' at the end but, for example, two different words for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to have www.site.com and site.com with Orchard Multi-Tenancy module I have successfully set up multi-tenancy in Orchard on a public facing site. If you enter www.tenant.com it works fine in Orchard. However, Orchard's admin for Tenants only allows input for one site. In the instance where a user just types tenan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: T-SQL. How create list as comma-separated string in one SELECT? MS SQL 2005. T-SQL.
I find many good solutions how split string. But how combine result from inner SELECT as string (for example, with comma-separator)? Code:
SELECT b.date,
(SELECT o.number FROM order o WHERE o.number = m.number ) AS orderList
FROM ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating Two Windows Causes Second Created to Bum Out I'm trying to use a hotkey to change a layered window from being transparent to allowing mouse messages to come through.
In my main function I call
// make hotkey with WM_HOTKEY messages sent to hwnd's window procedure, id 1,
// no other keys to work, F5 as hot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: event binding in MVVM my code in ViewModel :
public void Insert_Click(object sender, RoutedEventArgs e)
{
System.Windows.MessageBox.Show("Insert_Click");
}
code in View :
<Button Click="{Binding Insert_Click}" Background="Black" Height="56" Name="btnAdd" Width="57">
</Button>
error :
Error 1 Click="{Bindin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to this with a DataGrid in WPF I have a datagrid in which I need to implement two features and I'm a bit blocked on how to implement them.
First, I want to add a row at the end of the grid with the totals of the other rows and I want this row to be fixed so it does not get sorted when the others are.
Second, it'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to ask the user for an output file in python I have to ask the user for an output file and then append data to it but whenever I try it tells me that the data has no append attribute. I think this is because when I try to open the file it is seeing it as a string and not an actual file to append data too. I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling NSRunLoop methods in applicationDidBecomeActive causes system to not respond When my iOS app is activated, on clicking a file the app supports (FTA), I want to display a modal view in applicationDidBecomeActive. Since I want the control back, when the modal view is dismissed, I use NSRunLoop and a flag to de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook app with ssl certificate Two weeks ago i bought a SSL Certificate for my domain. I have an app in Facebook and for Safari works fine but in Chrome the following message appears:
"Error 501 (net::ERR_INSECURE_RESPONSE): Error desconocido."
I have set the "Secure Canvas URL" in the configuration of the app in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why synchronous RPC is bad While reading about Google webtool kit, came across a statement saying 'synchronous RPCs are bad'. Any reason why they are? One good reason i could think of is the response to end user may be impacted by any lag in the remote server or due to networking issues.
Can anyone tell what the ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I rename duplicates in MySQL using PHP or just a MySQL trying to rename duplicates in MySQL database so far using that code but this only adding 1 at the end of name. So if I have
UPDATE phpfox_photo n
JOIN (SELECT title_url, MIN(photo_id) min_id FROM phpfox_photo GROUP BY title_url HAVING COUNT(*) > 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: dllregisterserver in iviewers failed When I try to run Oleview I get an error saying that DllRegisterServer failed for IViewer.dll (sorry I wanted to post a screenshot but I can't until I get 10 reputation =p)
Oleview will run but like the msg says, you can't look at interfaces which is exactly what I want to do.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Java Blackberry sending custom made packet i need to recreate this within Java for Blackberry device:
char cPacketData[1024];
int thisPacketLength=( X_PACKET_SPACE*12 ) + ( 20*X_PACKET_SPACE );
(*(int *) (cPacketData)) =X_PACKET_START;
(*(int *) (cPacketData+X_PACKET_SPACE)) =thisPacketLength;
(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I get the span text with incremental id using jQuery? I'm sorry guys I've changed my code to this:
<table border="1">
<?php
$a = array('apple','banana','grapes','pineapple');
for ($x=0;$x<=3;$x++)
{
?>
<tr>
<td><div class='fruit' ><?php echo $a[$x]; ?></div></td>
<td><a href='#' class='vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cannot convert a row to a DataTable in C# I'm trying to convert a DataRow to a DataTable, but I'm getting errors. I searched and tried all possible solutions, but none worked!
I have a method which accepts a DataTable as its parameter (this DataTable has one row exactly). That method will return some information.
At... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where should I put the code? I have the models User and StoredItem:
class UserData < ActiveRecord::Base
has_many :stored_items, :dependent => :destroy
end
class StoredItem < ActiveRecord::Base
belongs_to :user
named_scope :lookup, lambda { |id| { :conditions => ['qid = ?', id]}}
end
I need to have two method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to load PyGTK documentation in Eclipse PyDev Plugin in auto-completion? In Eclipse PyDev plugin, all document of default library of python will be load, but document of pygtk doesn't load in Eclipse.
Any way to load them to eclipse?
A: I don't know if it's your situation, but perhaps you should include pygtk at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java - Saving StringTokenizer into arrays for further processing in other methods I've been coding Perl and Python a lot and this time I got an assignment to code in Java instead. So I'm not too familiar with handling data in Java.
My task involves having a input file where I need to check dependencies and then outp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AS3 Make enemy move towards mouse package {
import enemies.Enemy;
import flash.display.Sprite;
import flash.events.*;
public class Main extends Sprite {
// a place to store the enemy
public var enemy:Enemy;
private function handleEnterFrame(e:Event):void {
tweenIt(enemy.x, mouseX, 2);
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery tmpl grouping function with support for multiple groups Couldnt find any example on grouping using jquery tmpl() so thought id post what I came up with (that works) in case anyone else was trying to do it.
A: <!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"></script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Performing post through Chrome extension, where does it go? I want the below code to execute when I push the button I have added to my chrome browser through my extension:
<script>
var formData = new FormData();
var html = document.innerHTML;
formData.append("time", "12:00:00");
formData.append("html",docume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How throw, try {} catch {} should be used in the real world? I mean, I knew all the language rules about throw, try {} catch {}, but I am not sure if I am using them correctly in the real world. Please see the following example:
We have a large piece of scientific code which did all sorts of image processing things,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a way to kill a PHP program while it's working? Is there a way to kill a PHP program while it's working? I know in Linux/Unix I can do
ps -u [username]
And it will tell me what processes are running. To stop a process I just enter
kill [process #]
With PHP is there any way to see what processes are curr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't input in command prompt when using keytool to generate key pair (public and private keys) and a signing certificate I can't provide any input from my keyboard or from the on-screen keyboard when using keytool to generate key pair (public and private keys) and a signing certificate.
This problem occurs only w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cannot see the changes from database after adding in android? I have tabs activities. one activity gets data from local database, but when I add information to database through another activity and back to the activity which shows the database contents, I don't see the changes! >> I need to re-run the applications t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to have a menu accelerator with plus or minus signs in Swing? I have tried setting the accelerator of a JMenuItem using the following :
item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_PLUS, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
The menu item shows the shortcut ⌘+ (on a mac) but hitting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get copied value from ctrl+v key event in javascript This method detects ctrl + v event but I couldnt find how to get the value of it ?
Thanks in advance,
$(".numeric").keydown(function (event) {
if (event.shiftKey) {
event.preventDefault();
}
switch (event.keyCode) {
case 86:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Avoid Android Memory Leak when not using Static Image I know this has probably been addressed, however, I am having memory leak issues in my Android app. I have it cycle through a differant picture in the users library every time they push a button. This works fine for the first couple then throws an out of memory e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Struts Validation - Combining requiredif and mask I have a requirement in my app where a field is required on certain conditions and then that field should match a particular pattern.
Is there a way I can combine the requiredif and mask conditions?
I am on struts 1.
Here's the validation.xml
<form-validation>
<glo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: vb4android Alternative for Mac OS X Is there any alternative to vb4android for Mac OS X?
A: Are you sure you want to develop for Mac OS X and not iOS?
Take a look at the new Delphi XE2 which supports Windows, Max OS X and iOS.
There is also LiveCode which develops for all platforms.
If you are looking to develop ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dependency Injection & its relationship with automated testing via an example Through SO, I found my way to this page: http://www.blackwasp.co.uk/DependencyInjection.aspx
There they provide a snippet of C# code to use as an example of code that could benefit from dependency injection:
public class PaymentTerms
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Maven pom error I have example projects from spring core training courses I've been on. They did work on their machines, not on mine though. I am not really expert with maven, but .pom file inside gives this error. I really appreciate any monkey-alike-instructions, I'l do first then understand. Thank you very much i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Element-wise vector-vector multiplication in BLAS? Is there a means to do element-wise vector-vector multiplication with BLAS, GSL or any other high performance library ?
A: There is always std::valarray1 which defines elementwise operations that are frequently (Intel C++ /Quse-intel-optimized-headers, G++) compil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Cron job with php How can you do a cron job with php without creating a cron Job on the server cron software
Is that even possible ?
EDIT
as I added in a comment I've seen a script called piwik who does that kind of stuff, e.g. Sends emails without any cron job
A: I think the best you could do is make a cron job th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: calling a simple WCF Service from jQuery I have a very simple WCF Service called pilltrkr.svc. I'm trying to call this service from jQuery via the following code:
var jsondata = JSON.stringify();
$.ajax({
type: "POST",
async: false,
url: './pilltrakr.svc/DoWork/',
contentTyp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do i use X-Accel-Redirect with nginx I have a asp.net website and i have nice urls so the user may see /abc/1/a.jpg the path is docroot/abc/number/number/id.jpg
I need asp.net to decode where the real path is. So essentially i do it and instead of rewriting i set the X-Accel-Redirect header and called Reponse.En... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery timeout change content I have an issue.
I use this code:
var test='test';
$('#tip').delay(1000).html(test);
That doesn't work, it won't change the text. Although, it works if I do html('test') instead of having a variable there. I've also tried using non jQuery JavaScript:
var test='test';
setTimeout("docume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alternatives to .NET for clients Maybe it is just me, but deploying .NET desktop apps to client machines seems to be a more involved process than with other frameworks. Those I've written and those I've purchased as 3rd party applications seem to require more separate downloads. Whether it be one click downloading... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Phone 7 listbox colorize items? Is there a way to use the listbox with a htmlstring?
listbox.items.add("<font color='#efefef' size=2>asd</font>");
?
A: Not natively. But you can do something like this:
listbox.Items.Add(new TextBlock()
{
Text = "Asd",
Foreground = Color.FromArgb(0xff, 0xef, 0xef, 0x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GA Tracking code on ajax requests? I have this:
<!-- Google Code for Tilmeldinger nyhedsbrev Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ /
var google_conversion_id = 982857669;
var google_conversion_language = "da";
var google_conversion_format = "1";
var google_conversion_color = "ffffff";
var ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery FullCalendar - delete all events in a selection I am using FullCalendar and I'm using the select: function to allow the user to select one or more days, and then enter a value, which I will later save to a database. I want to clear the existing events in the selection before adding a new one, but I can't acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: file corrupt when click download link I try to use php to force the image jpg file download, I have implemented eth following code:
html
<a href = "filedownload.php?src=uploads/myimage.jpg&download=true>download this file</a>
download.php
<?php
ob_start();
include_once 'functions.php';
if (isset($_GET['download... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Remote Procedure Call cleanup My situation is the following:
I've implemented a simple RPC system in C through which a client can call a remote function to which it passes a command. The command is executed on the remote machine and the string containing the output is returned to the client. So, the function signatu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Oracle 11g - Check constraint with RegEx I'm using Oracle 11g, and trying to create a table define constraints on the creation.
I was trying to add check constraint to validate some information (like e-mail address, phone number, etc...)
Is there something in Oracle 11g that would allow me to do something like this?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Jquery call function dynamically I have a following scenario that I have to call a function on a jquery object dynamically. The code looks like this :
$('div[class]').each(function(){
var class=$(this).attr('class');
// I want to now check if that function with the name of class exists for jquery
// obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Oauth 2.0 - Redirect URL takes user to the canvas page on my website and not to the iframe on Facebook I have looked around and around for hours now and messed about with different pieces of code and I am at a loss.
I am only a begginner at PHP so I am learning it as I go along. I get how authorisation works and I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trouble on initializing a factory object I am using Ruby on Rails 3.1.0, rspec-rails 2 and Factory gems. I have some trouble related to the validation process when I state a Factory object for an Account class.
In the model file I have:
class Account < ActiveRecord::Base
belongs_to :user
attr_accessible :name, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using bake on shared hosting Cakephp I'm trying to get bake working on my subdomain which is under shared hosting.
Is there a way we can get this working? I know how to connect to server via ssh shell but then what do I do after that?
A: same as local machine cd <path_to_console> cake
if you do not know path_to_co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: facebook canvas page: app behavior dependent of visitor to user's profile The problem:
I want to provide a facebook application as canvas page to user A ('the owner'). If user A is seeing the app via in its profile, the app should exhibit behavior Ba.
If there is a user B ('the visitor') which is visiting the owner... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting when user leaves page in Page_Load event When a user leaves a page it fires of the Page_Load event again. How can I tell in code_behind that this is happening so in can avoid running the custom functions as the code in the Page_Load does not really need to be ran when leaving the page?
A:
When a user lea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error with regex in jquery I want to validate my textbox on keypress event. As I am newbie with jquery, I searched on google and found one jquery plugin named 'limitkeypress'.
This is my code:
$(document).ready(function() {
$("#title").limitkeypress({ rexp: /^[A-Za-z]*$/ });
});
Plugin library is:
http://brian... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combining Arrays in VBA I have a list of customers from last year (in column A) and I have a list of customers from this year (in Column B). I've put the data from these two columns in arrays (using the code below - which is set up as Option Base 1):
'Define our variables and array types'
Sub CustomerArray()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSMutableURLRequest POST string data with URLencode, return “414 Request-URI Too Large" When I use NSMutableURLRequest to POST string data with URLencode, return “414 Request-URI Too Large”,How I can do?
return error message as below:
<html>
<head><title>414 Request-URI Too Large</title></head>
<body bgcolor="white"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to keep track of the memory usage in C? I have to do a project in C where I have to constantly allocate memory for big data structures and then free it. Does there exista a library with a function that helps to keep track of the memory usage so I can be sure if I am doing things correctly? (I'm new to C)
For exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7621612",
"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.