text stringlengths 8 267k | meta dict |
|---|---|
Q: how does one check if UIWebView is empty or not I need to check if a webview when completed loading has any content or not.
What I require is simple. Its a small webview strip at the bottom of my pages (like an advert)
I call
NSURLRequest *request=[NSURLRequest requestWithURL:adURL];
[gWebView loadRequest:request];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Passing on a list of arguments I am trying to pass on a list of arguments to sprintf which apparently doens't pick them up. What am i missing?
void respond( const char *format, ...) {
char buffer[256];
va_list args;
int len, retCode;
va_start( args, format);
len = sprintf( buffer, format, args);
va_end(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Algorithm to find all possible 'StringPairGroups' in Java? Mathematics/algorithms was never my strong point (!) so requesting help on this one.
What is the most efficient implementation for a method with the following signature:
/*
* pairParts.size() > 0
* pairParts.size() is always an even number
*/
private Set<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bug with accessing XML data named "duration" Jquery Is there any reason why something named duration wouldn't work in JQuery?
For example, here is my XML
<video description="description etc" duration="43306" id="1144537378001" name="Fashion" thumbnail="http://www.domain.com/1144537378001-219x119.jpg" videoURL="http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find the bounding box of each character in a license plate I use emgu with c# to read a license plate in an image. After edge detection I want find the bounding box of each character in it and use neural networks to recognize characters. How can I do it?
Thanks
A: Well the simplest method since you can detect the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Image Preloading problem with jquery here i am giving the code to preload image by jquery.
var _images = ['/images/ajax-loader.gif'];
$.each(_images, function (e) {
$(new Image()).load(function () {
//alert($(this).attr('src') + 'has loaded!');
}).attr('src', this);
});
the above cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: cakephp: database, xml or json to generate report I'm trying to generate a student's report card. What is the best way to store the stages of development of each child and his grades? For example:
Name:Carla Smith
Class: Prep II
MOTOR DEVELOPMENT TERM1 TERM2
Draws freehand pi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Indexer in C# but without this It is posible to craete indexer in C#, but something like this:
public class MyClass
{
Dictionary<int, string> myCollection = new Dictionary<int, string>();
public string Value[int i]
{
get { return myCollection[i]; }
set { myCollection[i] = value; }
}
}
Thank... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: javascript to refer to img url: best practices? I have written a tiny bit of javascript which uses two images.
inside the code it does something like
str+='<img src="left.jpg"></img>';
...
str+='<img src="right.jpg"></img>';
...
The script works very well.
The problem is that depending which HTML page uses my scri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to edit Model property as HTML I created module for orchard.
I have the following Model:
public class SliderPart : ContentPart<SliderPartRecord>
{
[Required]
public string Slide1
{
get { return Record.Slide1; }
set { Record.Slide1 = value; }
}
[Required]
public string Slid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to run a service when the screen is locked? I want to recognize a shake event when the screen is locked with my Android.
I made a service to run in background but when the screen is locked, it doesn't work.
Is it possible to run a service when the screen is locked?
If not, is there a workarround :)
A:
The serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: wp_mail function headers I would to customize the sender of the email so I am trying to set properly the headers of the email.
This is the cose I use to customize the headers:
$current = wp_get_current_user();
global $user_email;
get_currentuserinfo();
$headers_mail = "From: ".$current->first_name." ".$current->last... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: text box validator for minimum length <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword"
ErrorMessage="New Password is required." ToolTip="New Password is required." ValidationGroup="ChangeUserPasswordValidationGroup">
</asp:RequiredFieldValidator>
How can I v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Textview not wrapping text I used all possible ways to wrap text in textview but it's not working. It's only showing one line and the rest is gone. I'm fetching address from database and assigning it to textview. I tried textview's height and width parameters with all possible values but it's still not working.
<Rel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mysql insert/update multi rows in one call In my MySql table I want to insert a number of rows. Some of the rows exist and these should only be updated.
So my table looks like this:
mytable: Id (key) | Value (varchar)
And my query is something like this:
INSERT INTO keycomp_mytable (key, value) VALUES
("k1","fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python subprocess.Popen and asynchronous output I have simple Python script to execute test suite both under Windows and Linux.
Every test writes its output to separate file.
I use subprocess.Popen class to execute shell command in a cycle.
Every shell command starts like that:
def system_execute(self, command, path... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Dynamically passing parameters to event listeners AS3 I have a 16x16 grid of buttons, and want to add an event listener to each of them so when clicked it will return its unique grid position number (anything between 0-255);
What I have so far:
public static const GRID_SIZE:Number = 16;
private var i:int;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Assertion failure in -[UILabel setFont:] I am getting this exception on setting a font of UILabel in iOS 3.1.2 but its running fine in iOS 4,
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: font != nil'
The code line is,
Outbound_Label.fon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am having a requirement to make my UITabbar to Scroll I need a Scrollable UITabbar .I need more than 7 items so I need to make it scroll.
A: I am not pretty much sure about this, but I think if you could display UIView or UIViewController in the UITabbar, it will help you to scroll the view present inside this.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: give item direction and speed from the way i swipe on the screen I am working on a game in cocos2d. The game has multiple sprites coming on the screen. I would like to change that items direction ato the direction a swipe and the speed to how fast i swipe . Does anyone know how i can do this?
A: UISwipeGestureRecog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Highlighting Pushpins with Bing Maps Our website selects establishments from a query and returns the results to the user in batches of 10 locations displaying details in a gridview and locations as user pushpins in bing maps. Hovering the item in the map pops up info panel etc.
My requirements to make this more use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does Google use base64 encoded data as image src attributes? All times in my life, I save images on my server as files:
*
*the originals
*the thumbnails
*the original with watermarks
... all as files in folders.
But today, I'm viewing google images, and the src of images is a base64 encoded hash. What be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: read() stops after NUL character I'm downloading files over HTTPS, I request the files through urllib2.Request and they come back as a socket._fileobject. I'd ideally like to stream this to file to avoid loading it into memory but I'm not sure how to do this.
My problem is if I call .read() on the object it only ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to ensure that two div always have same height in jQuery Mobile I am very new to jquery mobile framework, so kindly bear with me.I am developing a project where i need to show that data in tabular format.
So i have used below structure to create left and right column.
<div data-role="controlgroup" data-theme="d"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Downgrade iPhone application from Apple Store How to Downgrade iPhone application from Apple Store.
I have my one application in Apple Store Live with version 1.4 for some reason i need to downgrade to 1.3 and remove 1.4.
How can i do like this from apple developer portal OR http://itunesconnect.apple.com/.
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Display custom method field in Admin Display Lets say I have some Django model that has a list of numbers as a field. I compute some statistics on the field using a custom method in the model. These models are displayed on the admin panel as an InlineAdminModel "embedded" in a parent object. Is there a way to displa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find sorted previous element in jquery .? <div id="con" >
<p class="bb">1</p>
<p class="aa">2</p>
<p class="aa">3</p>
<p class="bb">4</p> /*----- i want this reference */
<p class="aa">5</p>
<p class="aa">6</p>
<p id="last" class="aa">7</p>
<p class="aa">6</p>
<p class="aa"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio, Filter on error list I 'm working with Visual Studio 10, my project is with monorail and I get a lot of error on my ".vm" files, those errors are not pertinent, and I don't want to see them anymore is there a way.
I tagged this ask with castle monorail, because I guess some users could have the same p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selecting from a HSQLDB table with a BIT column I have a table with a column of data type bit.
> CREATE MEMORY TABLE Dummy (name varchar(10), flag bit)
> INSERT INTO Dummy VALUES ('foo', 1)
> INSERT INTO Dummy VALUES ('bar', 0)
> INSERT INTO Dummy VALUES ('foo2', true)
> INSERT INTO Dummy VALUES ('bar2', false)
> s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fragment onStop() being called directly after onStart() - WHY? I'm having a strange problem with my app -
A have a Fragment Activity which contains a fragment - This fragment starts an AsyncTask onCreate() and cancels the AsyncTask onStop(). My problem arises because, although my Fragment stays running & isn't obscu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to convert a pdf file into CSV file? I want to convert a PDF file into a CSV file.
I am using iText library for this.
The program is working fine but the output is not in desired format.
All the data is coming in first line of the csv file. The output should be exactly same as pdf file(means with line breaks).
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7581995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to test circular reference in JavaScript? I'm making a game, and I've come across a problem... When I try to save, JSON fails and reports that circular reference is being made somewhere. I don't think it actually is, I can't see it, so is there an algorithm or anything which could tell me where it is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: drupal db schema error In a module I'm building for Drupal 7 I'm trying to create a DB schema for the installing and uninstalling process. When enabling the module (and thus installing it) I get an error and my table is not created.
Can anybody see where it's going wrong?
<?php
/**
* Implementation of hook_schema()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to avoid a shift reduce conflict in a LALR grammar for parsing nested lists? I would like to create a LALR grammar to parse nested lists, but I get always a shift/reduce conflict.
I have the list1 which is a list of type1 items and list2:
<list1> ::= <type1> | <type1> <list1> ;
<type1> ::= A | B | <list2> ;
And... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use Mysql database data in javascript widget I'm creating a widget for users to place on their blogs to direct traffic to my coupon code site. I want the widget to access the database and output the 5 top coupons of the day. Here is what I will them place on their site:
<script src="http://example.com/widget/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL to query drupal nodes with multiple taxonomies Good morning all.
I've read some of the suggested question before posting this but seems like no one has my same issue (probably and inidicator of how bad I am in Drupal and coding in general)
I need to write a query that returns all the nodes with TWO SPECIFIC taxo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android login with hashed username and password I'm working on a project where user have to login first in application to use it. And my little problem is that when user enter his username and password, than I have to hash them and send to the server instead of username and password entered by the user. So for now I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to check whether perl cgi request originates from localhost I would like to expose a service written in Perl to localhost HTTP requests. I do not want to modify Apache configuration. How to check whether a Perl CGI HTTP request originates from localhost?
I want for this check to succeed even if this call is made... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Brisk for small files I am a newbie to Cassandra and Hadoop. While looking for integration of the two products i came across Brisk. From the description i understand that Brisk replaces HDFS for CassandraFS. So this replacement is a solution for small file problem of Hadoop? If so what about large files ? Currently... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sencha Touch FormPanel With Store I have a store as follows.
var eventsStore = new Ext.data.Store({
model: 'Event',
sorters: [{
property: 'OccurringOn',
direction: 'DESC'
}],
proxy: {
type: 'ajax',
url: BaseURL + 'Events.php',
api: {
read: BaseURL +... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the best practices to avoid XSS and SQL Injections attacks (platform agnostics)? I wish there was a do/don't list (such as input sanitation, etc.) which when respected, such attacks are nearly impossible to succeed.
A: Take a look at the OWASP Top Ten Project: https://www.owasp.org/index.php/Category:OWASP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to open and edit an XML file from res/xml local project folder I can open the xml files from my local folder of an android project in Eclipse to read the values:
Resources res = activity.getResources();
XmlResourceParser xpp = res.getXml(R.xml.tittes);
But how could I open a local xml file to edit the file and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mysql between two dates index I'm selecting Data from a mysql database table.
When i'm searching a specific date, my index is wiorking fine.
When I'm searching data between two dates the index isn't working and the query takes to long.
Has anybody an idea how can i improve the query or the index?
Query A:
EXPLAIN SE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set Session in Asp page using Asp.net I have a Login Page which is created in asp.net now when i successfully logins into my application i need to transfer session related information from my asp.net page to my asp page so how to set my session information in asp using asp.net.
Regards,
A: How to share session stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP:Table adding rows programmatically I am trying to add rows programmatically to a server side table in asp.net. I have a button, and within the click event handler I have:
TableRow row = new TableRow();
TableCell cell = new TableCell();
cell.Controls.Add(new TextBox());
row.Cells.Add(cell);
myServersideTable.Row... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript language query around Backbone.js _bindRoutes method I've been looking through the Backbone.js source, and I'm a little confused as to how the _bindRoutes method in Backbone.Router actually works.
When you create a set of routes, the ordering is of course very important:
routes: {
"blah", "checkFirst",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: database connection time expired issue I have a server machine and four client machine for database connectivity.
I installed sqlexpress 2008 in server and one machine and all remaining systems, they have connected the database through the EMS (SQL Manager 2008 for SQL Server ).
The issue is that when I connect the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Profile Post Code Search Finder Nearest Carrer I have a web site that is Facebook for the old to find careers around the UK however the owner has asked for postcode partial search to be in place and that and a distance selection so they can search for careers in say 5 10 15 miles distances from the original postcode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to reload page using javascript
Possible Duplicate:
how to refresh a page using javascript?
how to reload (refresh) the web-page through java script only once not repeatedly. I want to refresh the page once at a time.
A: If you want to refresh (reload) the page you can use location.reload(true).
This link ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get latitude and longitude from address in C# I want to get the lat and long based on a address. I have already set it so it captures the users location which brings it up as Manchester.
i want to write an if statement..................;
if there is an address
{
// set lat/long from address
}
here is the fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remaining item positions in ListView is incorrect after deleting items I'm having trouble with getting the correct items after deleting an item in my ListView.
The position should fit to the index of the item in an ArrayList, but after deleting an item in the ListView, the positions are incorrect (and might even giv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the least memory demanding methods to do these steps? I have posted a question yesterday, and got wonderful response from the experts. However, I am facing another question now, I found the jobs cannot be done in my real data as my starting file (df1) are too large. I wonder if there are faster method to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to select a tree view node in asp.net I have the the following code sample
private TreeNode AddNode(TreeNode node, string key)
{
var child = node.ChildNodes.Cast<TreeNode>().FirstOrDefault(_ => _.Value == key);
if (child != null)
return child;
child = new TreeNode(key, ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: To parse with the help of atom parsing i have to parse this type of xml..
<content type="xhtml">
<apxh:div>
<apxh:p>blah..blah...blah</apxh:p>
<apxh:p>blah..blah...blah</apxh:p>
</apxh:div>
</content>
How can i parse it by atom parsing (root handler, element handler).
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Writing to Core Data from a secondary thread I have an HTTP call to a URL, which returns my data in JSON format, I parse it, then I have to load it in my Core Data context.
Now I am doing it (parsing - entities creation - commit) on the main thread, by using GCD (grand central dispatch) to dispatch a block on the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I call a base class implementation of an explicitly impemented interface method? I'm trying to call an explicitly implemented interface method implemented on the base class but just can't seem to get it to work. I agree the idea is ugly as hell, but I've tried every combination I can think of, to no avail. In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: UITableView always in plain mode though defined otherwise in the XIB I've created a UITableView using the presets using the UITableViewController option in the New File dialog. I set the style to grouped using the Interface Builder.
However, the table always shows up in plain style.
The data source consists of two s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to mock SerialDataReceivedEventArgs I have a peripheral driver that uses the serial port to communicate with the peripheral device. I want to unit test this driver and tried to mock the serial port. Therefore I created a wrapper for the framework type SerialPort to have it implement an interface:
public interfac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Anyone had any luck integrating SQL unit tests to run with CI build tool? Goal is to run a few queries against a database on each new build? Has anyone had any luck without having to put sql in java classes or creating entire new schemas to hold stored procs? Ideally you can include some SQLs in separate files that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What happens on the stack with ref parameters in c#? Im reading some C# documentation about WCF and IDispatchMessageInspector and the interface defines a 'Message' object that is passed by reference so that it can be manipulated.
What actually happens on the stack when you pass something by ref as opposed to passing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using javascript to apply the users timezone diff? I thought about letting my users having to select their own timezone in my application, but what about instead making it automatic with some javascript?
Some psuedocode:
A date is printed serverside as <p class="utcDate">2011-09-28 11:00 UTC</p>. When the user loads... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Acid testing a http server Is there any apps that can test a http server for robustness.
It would be great if it can send corrupt headers, missing headers,
thrashing, attempting to keep connections open etc..
I'm writing a embedded http server in C..
A: I'd throw the Apache test at it.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7582098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IBOutlet not showing in File's Owner/ IB In my .h file I have this:
@interface {
UILabel *questionLabel_;
}
@property (nonatomic, retain) IBOutlet UILabel *questionLabel;
In my .mm file I have this:
@synthesize questionLabel = questionLabel_;
When I go to the xib file I see no evidence of questionLabel in the Fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Performance issue with my query.Please suggest MERGE INTO Analysis a
USING ( SELECT * FROM Data ) b
ON ( a.User_Id = b.User_Id AND a.Upgrade_Flag = 0 )
WHEN MATCHED THEN
UPDATE SET Status = NVL(a.Status, 'ACTIVATE');
The above query works fine.But when millions of records are present this may lead to performance i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how do I call my theme preprocess function for a specific field? i'm on Drupal 7 and i have aspecific tpl.php file for a content field_image: "field--field_image.tpl.php". I need to create a preprocess function for this field and for my theme.
Supposing my theme name is "My Theme"
It should look like
function my_the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Problem with WP get_categories and even odd increment selector I have a small function in my WordPress theme which generates a list of menus depending on category id. I have also setup an even/odd identifier to add spacers in between, the last one is removed via jQuery (unless you can provide a way of doing this in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Propel 1.5 How to make join with OR condition I need to generate such SQL using Propel build criteria:
"SELECT *
FROM `table1`
LEFT JOIN table2 ON ( table1.OBJECT_ID = table2.ID )
LEFT JOIN table3 ON ( table1.OBJECT_ID = table3.ID )
LEFT JOIN table4 ON ( table4.USER_ID = table2.ID
OR table4.USER_ID = table3.AUT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detect soft reset on Windows Mobile device Is there a way to make my Windows Mobile 6.1 application react to system reset?
If it matters, I am using Compact Framework 3.5.
A: A system reset (i.e. a call to the kernel with IOCTL_HAL_REBOOT) goes through the power manager (well it should, the OEM might have opted oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET ZIP library working inmemory Is there a ZIP library for .NET working inmemory?
I need to zip and unzip files without temporary files stored on hdd. Just build archive in memory and return memory stream. Then receive memory stream and without storing zip archive on hdd unzip file and save it.
A: The DotNetZip L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MSSQL Operation within OUTER JOIN I am trying to join two tables using a unique value, however in one table it is part of a field with different lengths, e.g.:
Table one:
Block_Run_No Vehicle_No
200001.412.20110104 1001
20002.412.20110104 1002
Table 2
Block_No Departure
200001 3600
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to self-destruct application? I have pretty unusual task: customer would like to have application which can be self-destructed. Like with one BIG RED MAGIC button, pressing on which should completely destroy (possibly uninstall) application including any DBs, files, traces in logs and so on.
Does someone knows i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: extjs4 - changing the default id/text fields in a Tree Panel / Store The extjs 4 tree panel uses the record properties id & text by default for the nodes of the tree.
Is there any way to change it to some different property names?
There's a way to specify the root element but I can't see any config setting for those... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: serialize from a table element and not the whole form Trying to serialize just the elements from a specific table but it only returns a result if i do the whole Form
in the below code, i want to ajax just the elements in tbl2
<form>
<input type="text" id="tb1" name="tbl1"/>
<table name="tbl1">
<tr><td><input t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to skip bad dates in DBpedia SPARQL request? I need to get data about films from DBpedia.
I use SPARQL query as follows on http://dbpedia-live.openlinksw.com/sparql:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Dynamically create java class for a Lotus Notes form I want to migrate Lotus Notes database to salesforce. using domingo I am able to retrieve the forms , form fields ,documents and etc. As soon as I get the form with its fields & their datatypes, I want to create a class for this form. Like this I want to create a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check textarea text for required words So, I'm working on a writer panel, where I have limited the maximum and minimum number of words in a textarea. The next thing I would like to do is to make sure it checks if the writer has used all the required words (keywords) in the text.
For example
The required keywords for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Amazon EC2 and EBS disk space error? This is the results, df show /mnt used 381G, but du show only 57G. Any one know how this happend?
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 15G 8.1G 6.0G 58% /
none 3.8G 0 3.8G 0% /dev/shm
/dev/sdc ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery-ui buttons as array - example of setting label? See Edit below initial question for a revised version of the original problem
Using a jquery-ui dialog I want to be able to specify the label on the button dynamically.
To do this I'm specifying an array of buttons like this :
var arrbuttons = {};
arrbuttons.can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ajax wont work by first page load I created a discussion form below an article. It's possible
to discuss about the article by writing some story and submit this. The article will be
inserted by an ajax call with jQuery.
The problem I have. The ajax call to show the discussion who is written wont show after the submi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: managing document.ready event(s) on a large-scale website NOTE: I have now created a jQuery plugin which is my attempt of a solution to this issue. I am sure that it could be improved and i've probably overlooked lots of use cases, so if anyone wants to give feedback feel free :-) https://github.com/WickyNilliams/Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: File API upload file I am aware that the File API only exposes the name, contents, size and modified date of a file.
I was wondering if it was possible to do the equivalent of reading a file straight into a byte[] and streaming it to a php server where the file can be recreated/saved keeping things like Creation Dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting if click is not some specific divs I am developing a sort of horizontal menu but visible on click and hide on click but visible when click is on some arrow while hide when click is on document but not some div container. In that div container there are also some other elements. If we write document.onclic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Nginx + uWsgi + Django strange json response behavior Some tech specifications:
*
*CentOS 6.0
*uWSGI 0.9.9.2
*Nginx 1.0.5
*Django 1.3.1
uWSGI:
[uwsgi]
socket = 127.0.0.1:3031
master = true
processes = 5
uid = xx
gid = xx
env = DJANGO_SETTINGS_MODULE=xx.settings
module = django... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Background image not showing up in span tag Im having trouble with a span tag showing a background image in the latest FF on windows 7.
It seems to work and show everything fine in earlier FF, Chrome, Safari and IE but handheld devices and windows 7 it seems to fail.
Sorry if this seems vague I just cant figure it o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Track MSSQL 2008 table changes, what is the best method? I need to track records changes in one MSSQL table from .NET 4.0 application. What is the best method to do that?
More description about the app. We have membership table which is updated from application #1. We also developing application #2, which should tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How I can integrate my media queries with java script for supporting @media Queries in IE? I wrote these media queries for re-size my browser window
@media screen and (min-width:768px) and (max-width:1023px) {
#wrapper {
width:621px;
padding-left: 50px;
margin:0 auto; background:red;
}
}
@media screen and (min-w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: gcc: Compile a 64-bit binary on 32-bit platform Is it possible to compile a 64-bit binary on a 32-bit Linux platform using gcc?
A: If you have a multilib GCC installed, it's as simple as adding -m64 to the commandline. The compiler should complain if it is not built with multilib support.
In order to link, you'll n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Method that returns the yield for an object in Ruby Is there a method in Ruby that returns the content of the block passed on to an object?
For example, what if I have an object which I want to put in an array?
In an ideal world, we would do (what I'm looking for):
"string".reverse.upcase.something{ |s| send(s) }
w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Method Parameters C# I wrote a method like this in C#.
MethodBase method = MethodBase.GetCurrentMethod();
string key ="";
for (int i = 0; i < method.GetParameters().Length; i++)
{
key=method.GetParameters().Name;
// need value of parameter here
}
I'm getting parameter names through the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: not able to access label text Please take a look at my code. I'm not able to access the value of the Label text in the Button1_Click, event but am able to access TextBox text that is set in the use function:
public partial class productDetail : System.Web.UI.Page
{
protected void Page_Load(object sender, EventAr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to call a javascript function along with scope from Actionscript? I could call a javascript global function from ActionScript using ExternalInterface. Can I somehow call scope.method() instead without making the global function call scope.method() inside it?
A: I did something similar (I think) previously...
In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to change multiple form element using ajax, javascript and php i am using ajax and javascript to change form element based on select option but i cant change only one text field, While i want to change multiple field e.g. selection on product i want to change its cost and stock value.
here are my files
---------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Suspend the Undostack of Avalonedit?
*
*I perform a massive text-change on the editor
*i can not (or very difficult) determine when the changes begin end (the textchange is released by scrolling)
*i dont want to be able to undo the changes
for this reasons i want to suspend the listening of the stack (o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Replace APK in remote devices I have devices running a APK-file that i have provided. (Non-market)
I now want to update the APK on those devices. To do this i send a email to the devices with an adress to the APK-file.
My problem is that when the users click the link, download the file, and start the installation pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing Border Color of AWT TextField In AWT application I need to set border color of TextField.
In JTextField, I know that we do can do the following
JTextField tf = new JTextField();
tf.setBorder(BorderFactory.createLineBorder(Color.decode("#2C6791")));
But setBorder() method is not availiable in awt TextField.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Generate different pdf for each row in a datatable I need to have a functionality that on click of a button i need to generate pdf file for each record in the datatable.
I require to generate report card and then mail that report card to each person. the data for report card is fetched into a datatable for all stude... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Differences between caching components in web config Whats the difference between these two caching components in the web config?
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="90.00:00:00" />
</staticContent>
and
<caching>
<profiles>
<add extension=".png" poli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Assign Credentials to specific Database in SQL Server 2005 I want to assign user name and password on specific database in SQL Server 2005. Kindly tell me its solution. Thanks
A: Create new login like "test" by right click on Security >> Logins in SSMS. In "User Mapping" section select database for which you need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Differentiated access rights in distributed VCS's I have currently collected a large part of my work under a single and nicely organized repository in subversion.
When another person, say X, needs to collaborate on a sub-project, say /path/to/my/subproject, I can simply give X permissions to read/write in that speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Linq and lambda, both neglects the identity colum when I perform basic operations - how to avoid it? I have a DataTable, say:
OrdersDataTable dtResults = Datalayer.Orders.GetOrdersByCustomer(1)
and then I am trying to select a part of that to tie to a data repeater like so
var CustomerOrdersByProduct = dtResults.W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7582257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.