text stringlengths 8 267k | meta dict |
|---|---|
Q: Minimum number of element required to make a sequence that sums to a particular number Suppose there is number s=12 , now i want to make sequence with the element a1+a2+.....+an=12.
The criteria is as follows-
*
*n must be minimum.
*a1 and an must be 1;
*ai can differs a(i-1) by only 1,0 and -1.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to subclass UIApplication in Monotouch? EDIT:
A couple of years later, things are easier. It is now possible to omit the
Register() attributes, both on the application and the app delegate and instead use:
UIApplication.Main(args, typeof(CustomApp), typeof(CustomAppDelegate));
In order to be able to override UI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Subview behaves strangely in navigation-based app I'm currently developing an app for iphone (my first) and I used several UITableViewController for navigation.
I then used a subview attached to self.view.superview to get a non-scroll image at the top.
The subview is created in IB, simple UIView with an UIImageView... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook Like button og:image needs to be scraped to be displayed I've got a Drupal website with articles on them which have Facebook like buttons.
Now I've got all the OpenGraph metatags added on the pages and it's all working perfectly except for one thing.
Site visitors can share a page URL or like a page URL.
Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mapview working in india but not in switzerland I am making an android app in which i am using google maps which are working perfectly in India but the same build is not working in Switzerland i.e. in switzerland the maps are not loading in.
Is ther anything that is country orregion specific in generating google ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pull files from FTP using SSIS package and save to folder? I have FTP location having 2-3 folders from there i need to pull some files on daily bases using SSIS package please help.
for example:
FTP Detail
Server: ftp.abc.com:21
User: user1
Pwd: pass1
then there is a folder called Mydata and file named price(Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Setting Theme.Holo.Light changes everything except checkboxes in list <style name="CustomTheme" parent="@android:style/Theme.Holo.Light">
I made my own theme and added a reference to it in my manifest. Everything looks perfect (buttons, textboxes etc) except for the checkboxes in my custom list.
android:checkMa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Error from debugger failed to launch simulator error 4294956467 I am getting this error when I try to run the application on simulator. What might be the reason?
A: I had this problem because I had another user on the same machine running the iOS simulator. Logging in as the other user and quitting the simulator... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using 'IF.. ELSE' to change variable and use it in 'form action...' I've created a test form that uses IF.. ELSE to validate data in a simple form. This works ok and any validation messages or errors are posted to the same page (userform.php) to inform the user of success or otherwise.
What I want to do now is take... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android How to pass real time data up the stack from local service to the activity? I have a local service that will need to wait for a response and when it gets the response immediately update the activity with that information. So the activity will not poll a service method but the moment the local service gets s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Store huge amount of data in memory I am looking for a way to store several gb's of data in memory. The data is loaded into a tree structure. I want to be able to access this data through my main function, but I'm not interested in reloading the data into the tree every time I run the program. What is the best way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does iOS do when an app is "Installing" and is it possible to programmatically control it? I understand it may be unpacking some sort of compressed package into the file system (and due to the mobile nature I suppose it may be quite aggressive compression to reduce download time). But does it run any sort of pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android client and server using servlet I'm running my servlet program on a localhost, and my android code is running on emulator in the same system, I want to send some requests from an android client to the servlet and the servlet program should also send back some data to android after getting the request and it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET Routing Regex to match specific pattern I am trying to write a regular expression for ASP.NET MapPageRoute that matches a specific type of path.
I do not want to match anything with a file extension so I used this regex ^[^.]*$ which worked fine except it also picked up if the default document was requested.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CV_8U opencv's matrixes on no 8 bit systems I've read that the signed char and unsigned char types are not guaranteed to be 8 bits on every platform, but sometimes they have more than 8 bits.
If so, using OpenCv how can we be sure that CV_8U is always 8bit?
I've written a short function which takes a 8 bit Mat and h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Offline comparison of two arrays iphone sdk I have two arrays containing string variables. In one array, it contains the values from a web service, it will be updating in every 5 seconds. So, i need to run this app offline and also compare the array with another array that contains some sample values. If any matches... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing a form's control from a separate thread I'm practising on threading and came across this problem. The situation is like this:
*
*I have 4 progress bars on a single form, one for downloading a file, one for showing the page loading status etc...
*I have to control the progress of each ProgressBar from a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Mapping POCO Class to Dynamically Created Tables I have a script running every hour that stores log data in a logging database. Every month a new table is created, and the logging information from this month is stored in that table.
Every table that is created is identical and match a simple POCO class
class IISLog
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: context depended scan-component filter My SpringMVC based webapp uses typically 2 contexts: the webapplication context for the MVC dispatcher servlet and the parent/root application context.
<!-- the context for the dispatcher servlet -->
<servlet>
<servlet-name>webApp</servlet-name>
<servlet-class>org.sprin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to store images in the sqlite database in iphone
Possible Duplicate:
Reading and writing images to an SQLite DB for iPhone use
How to store a images file in database in blob type in sqlite database and how to retrieve a image from the database.
A: save image in your nsdocument directory. in database save the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: App Release Version crashes Debug Version works, no idea why So I have this app I'm working on and after building running the App from XCode on the device everything works fine. However after installing the same App from the App Store (no changes only the provisioning profile is different) the App crashes shortly be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entity Framework MVC 3 in C#. Refuses to add values to table 'Person' and People is generated(?) One or more validation errors were detected during model generation:
System.Data.Edm.EdmEntityType: : EntityType 'Person' has no key defined. Define the key for this EntityType.
System.Data.Edm.EdmEntitySet: EntityType: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Application won't end VideoStreams and Exit I've got an application what's working with two video streams.
When the form is being closed, it runs this function:
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
if (FinalVideoDevice.IsRunning) { FinalVideoDevice.Stop(); }
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get rows and count using PDO UPDATE 1:
I've just noticed PDO::MYSQL_ATTR_FOUND_ROWS in the manual, but I'm not sure how to integrate it with the code below in the original question and/or if this will answer my question?
ORIGINAL QUESTION:
I currently have the following which works, it returns rows of data:
function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Magento: Put "product list pager"-block in I have the following problem:
I want develop Pagination with rel=“next” and rel=“prev” for magento product lists.
http://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html
How can I access the pager in ? The head-block has been already ren... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I turn transactions off in MySQL/InnoDB? I have a Django app where the default "REPEATABLE READ" transaction isolation level in InnoDB is causing different processes to have different views of the data than that current in the database.
e.g. Process 1 has made a change but Process 2 isn't seeing it.
I don't need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use Min,max and average with Solr.net I found http://code.google.com/p/solrnet/wiki/Stats link.
But i cannot understand properly.
I want to use min,max kind of function with solr query.
My query(Display min, max and average price of Round shape and color D and clarity FL and caratweight.(This query will be ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to override window show operation? I have a class derived from window to show message to user. The problem is in some places in my application it is throwing an exception saying
The calling thread must be STA, because many UI components require
this.
I came to know i need to introduce the Dispatcher to inv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make maven versions:use-latest-versions step up import scoped entry in dependencyManagement? We use the maven versions plugin to keep our versions up to date by regularly mvn versions:use-latest-versions. In our poms we have an import scoped dependency to another POM that looks like this:
<dependencyManagemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: php/regex - Extract proper nouns from text I want to extract proper nouns (e.g Micheal Jackson) from a text with PHP regex but my regex is not right.
The text:
My friend Micheal Jackson was the King of Pop. The Game Album sold little.
What I want:
A regex that is able to extract proper nouns of multiple words e.g ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Delete duplicate string with PowerShell I have got text file:
1 2 4 5 6 7
1 3 5 6 7 8
1 2 3 4 5 6
1 2 4 5 6 7
Here first and last line are simmilar. I have a lot of files that have double lines. I need to delete all dublicate.
A: To get unique lines:
PS > Get-Content test.txt | Select-Object -Unique
1 2 4 5 6 7
1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Use SQL Server for file queue storage We are developing file processing system where several File Processing applications pick up files from queue, do processing and put back file to queue as response. Now we use Windows file system(share a folder on network) as queue. We share one folder and put files in it, the Fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: filter text from list view in an edit text I have a list view and above that one edit text. In edit text, data is searched from the list view and show in edit text. In the list view some data are two words. For example, list view contains "car", "red car", "blue car" . Now if I type c in edit text, it shows only car... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Geocoder API or Places API for an address based map search I am trying to build an address based map search using PHP and Ajax. Typing in a term in the address field should bring up suggested addresses in a dropown and any address term not bringing up any suggested addresses in a dropown should present a 'Did ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL Database Function to reduce value in other table by 1 I have a MySQL db. When a field in a table is updated can I write a function or by some other process get a field in another table to be automatically updated?
ie, and this is what I want to do, if table 1 field discount_code and discount code is 123456, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does pthread_exit kill a thread.. I mean free the stack allocated to it? I want to create a lot of threads for a writing into a thread, and after writing I call exit... But, when I call exit do I free up the stack or do I still consume it??
A: In order to avoid resource leaks, you have to do one of these 2:
*
*M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery doesn't work in page called by ajax If I have the following in a page:
$(document).ready(function () {
alert('moo');
});
It will show the alert when I view that page BUT if that page is called via Ajax then the alert will not show... Any ideas why? Or how to get around thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django: Custom 'clean' method on a Form that sets to self._errors, but isn't shown on the HTML? I have a Form in Django, I've added a custom clean() method since some of the fields depend on each other. When there's an error, I add things to self._errors['FIELDNAME'] (as the Django documentation says).
However I als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hive Dynamic Partition table issue with altering partition I Have table with dynamic partition "campaign" and static partitions year and month(that means I am giving there value while inserting/creating partitions).
'ABC' Partition by (year='2011', month='08', campaign)
As dynamic partition is only supported when i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I turn Wifi on when my application runs in Android? When I start my twitter app, how can I turn on WiFi automatically through coding?
A: I have not tried this but it should work:
WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
if (wifiManager != null)
wifiManager.setWifiEna... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Matlab: Optimize this? Im v new to matlab. Have been tasked with speeding up a procedure. Im sure there is a better way to do the following statements:
for i = 2:length(WallId)
if WallId(i) ~= WallId(i-1)
ReducedWallId = [ReducedWallId;WallId(i)];
ReducedWallTime = [ReducedWallTime;WallTime(i)];... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to send multiple inputs to the remote shell using subprocess.Popen I am trying to run multiple commands on a remote computer after doing ssh to that machine and then running commands on its terminal.
I want to use subprocess for this work. So I wrote the following command:-
import subprocess
process = subprocess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Display array elements in smarty I have merged two mysql results :
while($rs_1 = mysql_fetch_array($r1))
{
$arr1[] = $rs_1;
}
while($rs_2 = mysql_fetch_array($r2))
{
$arr2[] = $rs_2;
}
$resN = array_merge($arr1,$arr2);
var_dump($resN) shows the following result :
array(5) {
[0] => array(4) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is Step 7 v5.5 compatible with v5.4? Does anyone know if a project that was originally created in step 7 v.5.4, then opened, edited, and saved in 5.5, can then be reopened in 5.4 again?
A: No, it can't be re-opened if it was saved in a later version.
A: It is not recommended that you open project with older versio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I move the most recent few commits to my git repo to their own branch off a specific historical commit? I have this:
A -- B -- C -- D -- E -- F -- G (master branch)
Where F and G are my recent commits and E is the last commit from the origin.
What I need is to make F and G into a separate branch, which oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Inserting text into a text file Alright, this maybe the simplest (or the stupidest) question, but I just got to know...
Suppose I have a text file containing account no. and balance. I am writing a program to search the file using entered account no. and update the balance field in the same text file with a new bala... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Storing data in memcache to be accessed by different languages I am working on a system that has components written in the following languages:
*
*C
*C++
*C#
*PHP
*Python
These components all use (infrequently changing) data that comes from the same source and can be cached and accesed from memcache for per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: StructureMap Error: No Default Instance defined for PluginFamily very new to Structure-Map. trying to figure it out how it works and how can i benefit from it.
i have got this so far..
Global.asax.cs:
IContainer container = new Container(x =>
{
x.For<IControllerActivator>().Use
<StructureM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Adding external JS and CSS file dramatically slows the loading of the site a few line like these:
<link rel="stylesheet" href="style_base.css" type="text/css" />
<script type="text/javascript" src="fallings.js"></script>
dramatically slows my site loading down. This checks the files too?
A: Those references could b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: can we see html localstorage content through client browser? supppose I use html5 local storage for my website.
1)can End user see my local storage values through browser using view source code etc?
2)How can we enter data for HTML5 local storage as domain level, i dont want to add my records manually when page load... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Execute Lync 2010 extension code before user accepts call I'd like to execute some custom code every time Lync 2010 receives a call. I tried it with a Conversation Window Extension (CWE), which contains a Silverlight client, and the Silverlight client uses the Lync API, like this:
var lync = LyncClient.GetClient();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Obtaining MAC address on windows in Qt I am attempting to obtain mac address on windows xp using this code:
QString getMacAddress()
{
QString macaddress="??:??:??:??:??:??";
#ifdef Q_WS_WIN
PIP_ADAPTER_INFO pinfo=NULL;
unsigned long len=0;
unsigned long nError;
if (pinfo!=NULL)
delete (pinfo);
nError = GetAdap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Lisp: Evaluation of quotes Which of the following expressions has correct lisp syntax?
(+ 1 (quote 1))
==> 1 (???)
(+ 1 (eval (quote 1))
==> 2
I'm currently writing my own lisp interpreter and not quite sure how to handle the quotes correct. Most lisp interpreters I've had a look at evaluate both expressions to "2"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: external sorting: multiway merge In multiway merge The task is to find the smallest element out of k elements
Solution: priority queues
Idea: Take the smallest elements from the first k runs, store them into main memory in a heap tree.
Then repeatedly output the smallest element from the heap. The smallest element ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: weird grey square in extjs layout (ie7 & 8 only) I have weird grey square in extjs layout (ie7 & 8 only).
I applyed css code to all doc in hope to see borders of gray element but...
There are NO BORDER ON IT. please tell me what to do or check next.
*{
border:1px red solid !important;
}
ie7 & ie 8
normal browser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AlternateView and čćžšđ when sending mail by C# MailMessage message = new MailMessage(email.From,
email.To,
email.Subject,
email.Body);
me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Phone 7.1: AutoResetEvent does not work with Service Methods? After adding Service Reference to my Phone Application (for example http://www.deeptraining.com/webservices/weather.asmx?op=GetWeather), I tried to use AutoResetEvent for emulation syncronous method calling. But after calling WaitOne, method Set i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cURL and an extern Tor relay I'm creating a tool and I wish to use the Tor network.
I am familiar with with both PHP and it's cURL extension but I just cant seem to use Tor as proxy. I keep getting no response from the server.
$this->ch = curl_init();
curl_setopt($this->ch, CURLOPT_CONNECTTIMEOUT, 1);
curl_setopt($... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Oracle Single-row subquery returns more than one row error I have a scenario. Can this be done using one query ?
*
*Table Company : Single Company information with CPK as primary key and one Manager,Lead,HR attached to it
*Table Employees : For every Company there are Employees (1 or more can be up to 500) with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unxpected result when iterating nested arrays for merging content in PHP I have 2 nested arrays over which I intent to iterate over one and insert into it a portion of a match in the other based on a key->value.
The idea is to iterate for each element of arrayA and nested iterate for each key->value of arrayB. When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Animation Listener OnTouch of an ImageView I'm starting a fade in animation:
myImageView.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
v.startAnimation(fadeInAnimation);
I know it's need an animation listener to find out when the animation is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Skeptical behavior of MoveWindow function MoveWindow(int x, int y, int nWidth, int nHeight,false) even used SetWindowPos(&wndTopMost, m_iLeft, m_iTop, m_iWidth, m_iHeight, false);
as i do not want to repaint my window, i am passing repaint parameter of MoveWindow with false. but it repaints the window.
This behavior... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: jQuery - function with custom callback I'm trying to execute a specific function once some processes finished executing.
My specific example refers to a number of animate() methods after which I want to call another function, however this function should only be called once the animate() methods finished processing:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Return a dynamic resource from a converter I want to change the color of a WPF control depending on the state of a bool, in this case the state of a checkbox.
This works fine as long as I'm working with StaticResources:
My control
<TextBox Name="WarnStatusBox" TextWrapping="Wrap" Style="{DynamicResource StatusTextBo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Possible memory leak with malloc, struct, std::string, and free I've a situation like the following, and I'm not sure whether or not the std::string elements of the struct leak memory or if this is ok. Is the memory allocated by those two std::strings deleted when free(v) is called?
struct MyData
{
std::string s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I resize the windows work area, and then update the other windows to reflect the change please? I have a toolbar application which changes the work area of the desktop and positions itself in the gap (either at the top or bottom of the screen). I need a function which will resize the other windows so that th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery execute script only for url and not this url but url has the same work in both url I would like to execute some script only for http://win-23ookphjfn0/Previsions/Pages/default.aspx and not for http://win-23ookphjfn0/abc/Pages/Les_Previsions.aspx
that script doesn't seem to function.
var url = location.pathnam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bug with Ruby on Rails 3 tutorial, chapter 13 I updated to rails 3.1 the "sample application" from the Rails 3 Tutorial. Everything went smoothly except that when I'm using the site and a logged in user tries to follow/unfollow another user, I get the following message from the log:
Started POST "/relationships" fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to understand the workflow between latex, sweave and R Let's say I have written the following tiny .Rnw file:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{Sweave}
\usepackage{tikz}
\usepackage{pgf}
\begin{document}
<<>>=
sessionInfo()
@
\end{document}
I then can go to R and use sweave t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: android map not showing in signed app I have developed an app which uses google map. The problem is when I sign this app and then download it from some link say dropbox or any other, the map does not show up. I have created a new Google map key as well but not working at all. Any idea...???
A: Are you signing the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retain count and factory methods in Objective-C I have been in this forum before to find the best way of creating a factory function to construct a custom view from a nib (here is my previous post)
i am now using the following code:
+ (LoadingV *)loadingViewCopyFromNib
{
LoadingV *view = nil;
NSArray*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7609999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the purpose of the -m switch? Could you explain to me what the difference is between calling
python -m mymod1 mymod2.py args
and
python mymod1.py mymod2.py args
It seems in both cases mymod1.py is called and sys.argv is
['mymod1.py', 'mymod2.py', 'args']
So what is the -m switch for?
A: I just want to m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "304"
} |
Q: Injecting a bean from a different Jar in Weld I have two Jars A and B where A depends on B.
Jar B has a single class:
@ApplicationScoped
public class MyManagedBean {
private String user;
public MyManagedBean(){
//Constructor necesary for CDI
}
@Inject
public MyManagedBean(@Named("user") String user){
thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: WPF warm AppDomain startup performance (Application.RunInternal, XamlReader.LoadBaml) I have relatively simple application, but warm (second, etc.) start-up time is awful 3-5 seconds. Profiler (VS2010, CPU Sampling) shows that more than 80% of time is spent in Application.RunInternal (~40%) and XamlRader.LoadBaml (~... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android geocode get nearest locations I have Geocoder in my application and I want to get location by street name.
But if try to get location of some, I've get a location of that street in other city.
Is there a way to range found locations by distance from some location?
A: You can add the city into string if you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Applying box-shadow to in Safari I need to apply a box-shadow to the tbody-Element of an TABLE.
Example: http://jsfiddle.net/emqUd/1/
The shadow doesn't display in Safari, in FF does.
I found a solution to apply
display:block;
on the Table, but then I have to explicitely have to assign a width to each column.
And ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Crashing at ABRecordCopyValue Following is the method:
-(id)getValueForProperty:(NSUInteger) propertyId{
if(personRec != NULL)
return (id)ABRecordCopyValue(personRec, (ABPropertyID)propertyId);
}
}
I am calling above method as follow:
NSString *lastName = (NSString *)[self getValueForProperty:kABPe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android tabhost with asynchronous HttpClient I have an application with tabs and every tab has HttpCLient that is triggered every time user clicks on the tab and a page is downloaded in a tabActivity thread. When user clicks on tab and then switches to another one, he must wait for a few seconds, so that the request... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: nginx only sending GET requests to unicorn I'm trying to run a Rails 3 app proxied through nginx to unicorn, using the following virtual host.
upstream nginx {
server unix:/tmp/nginx.socket fail_timeout=0;
}
server {
listen 80;
server_name nginx.domain.net;
rewrite ^(.*) https://nginx.mydomain.net$1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i logout from my application I am new to android.
I want in my application logout facility.
How can i log out from my application. I want to clear shared preferences in logout button ,but i don't know How can I do this.
A: *
*keep android:noHistory for all of your activities
*See that you clear everythi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to flowplayer play while a mp4 file is buffering? It always play only when mp4 is fully loaded, i would like to it playing while video is buffering, it's possible to do?
thanks.
A: I use flowplayer with those settings and the video starts while it buffers
flowplayer("player", {
// ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Missing PropertyChanged event when BindingList elements has properties changed I have a class ViewModel that has a property MyList of type BindingList<Foo>.
ViewModel implements INotifyPropertyChanged.
Foo has the property FooProp.
Foo implements INotifyPropertyChanged
ViewModel has this property:
public bool IsButt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Make a build for ios3.1.3 through Xcode 4....? I'm using xcode 4 and making the build for ios4 and ios3.1.3 . I'm able to make the build for ios4 but when i made a build for ios3.1.3 it gives me "signcode error" at the time of sync can any one suggest me the proper way of making the build for ios3.1.3 through... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pointer becomes null when constructor finishes running I have a camera class that has two pointers as parameters:
Camera::Camera(
float fOVDeg, float nearCull, float farCull,
float xPos, float yPos, float zPos,
D3DMATRIX* matProjection, D3DMATRIX* matView)
{
this->SetCamera(fOVDeg, nearCull, farCull... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a jQuery plugin or JavaScript code to allow client-size image resizing/cropping in a circle? We're trying to allow the user to select the exact face of a person from a chosen photo and we want to achieve this by providing an oval shape into which the user has to fit the face by resizing the photo or the ova... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using jQuery to read a JSON file errors in Google Chrome I have a JSON file here:
http://dalexl.webs.com/products.json
I'm trying to read it on my site with Javascript/jQuery:
$.getJSON("http://dalexl.webs.com/products.json")
(Yes, I know that it isn't complete, I'm currently just trying to get it to load, I haven'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: REQUEST_TIME in C# Is there a similar function in C# that is akin to the PHP functionality of ("$_SERVER['REQUEST_TIME']")?
A: The following property returns the initial timestamp of the current HTTP request:
HttpRequest.RequestContext.HttpContext.Timestamp
In an ASP.Net-Page it can be accessed through the Request... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ListView selection In a ListView control by default you select a row if you click on the content of a column but if you click on the row out of bounds of content then it wont select the row. Is there any quick way to do it expect specifying templates for each column?
I've tried (this actually works for ListBox ):
<S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error with zoomStartTime and AnnotatedTimeLine I'm a bit of a beginner with Javascript, but last month I had a working Google chart linked to a Google Docs file, which uses a start date for the graph at 90 days before the current date.
I checked the page today and in Chrome I get the message "Object # has no method ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: May UIComponent#getFamily() return null or not? I would like to know wether the method UIComponent#getFamily() may return null or not? Mojarra 2.1.3 will throw an exception when returning null but MyFaces 2.1.3 not.
Does a component really need a family?
A:
I would like to know wether the method UIComponent.getFam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Define custom UnmanagedType for the MarshalAs attribute class is it possible to define a custom UnmanagedType for the MarshalAs attribute class?
Specifically I want to convert a long int unix time into a DateTime type. Something like this:
[MarshalAs(UnmanagedType.LongTimeUnix)]
public DateTime Time;
Where do I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Binary Zero, NULL Byte and ASCII I am very confused. Is there any relationship between the following:
*
*Binary Zero.
*Null Byte.
*ASCII Character 0 (Decimal value is 48).
Your explanation is highly appreciated.
A: Technically, I suppose the first refers to a single bit. Eight bits make a byte, and eight bin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Get information about a SHA-1 commit object? I searched for a topic of interest in a commit log:
$ git log --pretty=oneline | grep -i ...
$SHA1 < ... commit message ... >
I now have a SHA1, and I want to know information about the files affecting that SHA1 and maybe later diff them with their parent. How can I get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: Bugzilla Apache server config I have installed Bugzilla on my dedicated server with Centos5.5.
I have already a website running on this server with Apache config
<VirtualHost *:80>
DocumentRoot /var/www/html/XXX
..
</VirtualHost>
and I have defined a new virtual host on Apache as
<VirtualHost *:8000>
DocumentR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: get out of memory exception when indexing files with solrj I write a simple program with solrj that index files but after a minute passed it crashed and the
java.lang.OutOfmemoryError : java heap space appears
I use Eclipse and my memory storage is about 2GB and i set the -Xms1024M-Xmx2048M for both my VM arg of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get id of merged JPA entity I have a little application where I store entity to DB. I do this in next way:
class Entity {
privete id;
String somePropertie;
// getters and setters
}
// In main class
Entity newEntity = new Entity();
newEntity.setSomePropertie("somePropertie");
Entity entity = enti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find and replace strings using sed I am trying to replace strings in a document that enclosed in single quotes, to a string without.
'test' -> test
Is there a way using sed I can do this?
Thanks
A: This will remove single quotes from around any quoted word, and leave other quotes alone:
sed -E "s/'([a-zA-Z]*)'/\1/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add class for form label defined in cakephp and then add jquery event I have created a form in cakephp
<?php echo $form->create('User', array('action' => 'login'));?>
<?php
echo '<div class="loginbox">';
echo '<table width="200" border="0">';
echo '<tr>';
echo '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: portable AIR apps. Is that possible? is it possible to build a portable version of an air app? So that it's possible to put it on flash, and launch on any PC.
Thank you in advance!
A: In AIR 3, you can package the app as a captive runtime bundle. This is self contained and can be run without a special install. (A f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android compatibility Here is the thing, I'm developing an application that uses a lot of the screen space, I need to show 3 list views in certain times for example. At first I was testing on my Android 3.1 tablet, but then I decided I wanted to have it playing on Android 2.1 as well. When I tried to play the applic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7610094",
"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.