text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I link to the App Store reviews for an application on the iPad? I want to put a "rate/review this app" feature into my iPad app. As described in this similar question, I can use code like the following:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/WebObjects/MZSto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mod_rewrite: adding a rule causes it to break (error 500) I have the following mod_rewrite rules:
RewriteRule ^stats/$ stats/index.php
RewriteRule ^adm/$ adm/index.php
RewriteRule ^iphone/$ iphone/index.php
RewriteRule ^android/$ android/index.php
RewriteRule ^([^/\.]+)/?$ index.php?page=$1
RewriteRule ^([^/\.]+)/([... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: calling asmx from c# server side: endpoint element matching this contract could be found in the client element I wrote an asmx webSerivce on srv1.
I wrote a bll project of an asp.net (original text: an asp.net) project on srv2.
Both are hosted under the same web domain
I want to call the asmx from the bll project ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Redirect the standard input and output of .net program I am writing a test script for a C/S system in python. And right now, we only have a test client written in C#. It is a command line based client. I want to control the input and get the output of the client in my python script. How could I make it?
Thanks!
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Initialize struct in class constructor How can we initailize a struct pointer in constructor of a class.
Example:
struct my_struct{
int i;
char* name;
};
class my_class{
my_struct* s1;
my_class() {
// here i want to make s1->i = 10; and s1->name = "anyname" ;
// should i assign ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to control my app's version? I want to control my customer's app's version. If the application is not update ,i want to show them an alert message that "your app isn't update would you like to update ?" how can i control this in android?
A: You can host your new version apk file in web page with a text f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting NullReferenceException in Code What is wrong with this code?
public partial class MainForm : Form
{
private Dictionary<String , PropertyInfo[]> types;
public MainForm()
{
//OpenAccountStruct is in the scope
types.Add("OpenAccount", new OpenAccountStruct().Ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: why 'remoteCertificate' parameter is empty in LocalCertificateSelectionCallback method? i wanna setup a SSL connection, but really don't know everything about SSL handshake rules and life cycle. i wrote a code
void main()
{
TcpClient client = new TcpClient("192.168.1.160", 4113);
SslStream sslStream = new SslStream(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Insert a record in Main table & several into sub table SQL 2008:
I have 2 tables TableMain & TableSub. The 2 tables are related via the MainID
When I insert 1 records in TableMain, it creates a MainID automatically.
I have to use the MainID & then insert several records into the TableSub.
TableMain has 16 parameters... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to extract selected item from ListView? I have a Listview that can only select one item. When that item gets clicks, it runs an AsyncTask. In the onPostExecute(), an AlertBox Dialog pops up. But what I'm trying to do is get the selected item to display inside the alertBox and I've tried everything I could thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP .NET MVC with ADO .NET causing issues? I'm new to both ADO .NET and MVC, and I am trying to do something simple where I am editting a "DailyReport", which is basically representing a work-report.
Here's my relevant controller pattern:
//
// GET: /DailyReport/Edit/5
public ActionResult Edit(int id, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7510997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to stop scrollbars from affecting the box model measurements? I have made a table in the way described at imaputz.com, but with alternating colors for the rows. Because of these colors there is a distinct difference in the row color and the color surrounding the table, and that makes the table look ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to replace entity in LQC? I have Lazy Query Container (LQC) + hibernate connected to table. I don't want to display some collections at the table so some collections are lazy loaded.
When user select item (row) in table I want to open edit form with all data available. I have to initialize selected item - I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Don't understand the output of this C program Here's the code:
#include <stdio.h>
int main (void)
{
int value[10];
int index;
value[0] = 197;
value[2] = -100;
value[5] = 350;
value[3] = value[0] + value[5];
value[9] = value[5] / 10;
--value[2];
for(index = 0; index < 10; ++inde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it considered readable to call methods inside the IF condition? Is this way of writing IF conditions considered good coding style in Java and C# languages or not?
if (checkIfIdInFirstRange()){
//call Range1 handling method
}else if(checkIfIdInSecondRange()){
//call Range2 handling method
}else{
//call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How use TDataset and Dll with Delphi I'd like create a dll to import data from a file (different format, for example csv, txt, xls, ...). My idea is this: the dll load the data with her "engine" then send this data to my application so my application can show them inside a grid.
This is my second DLL so I have some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add homepage URL to SAP business partner? I'm working on a program witch creates Business Partners in SAP IS-U system. For the creation of business partners I use function module BAPI_ISUPARTNER_CREATEFROMDATA
I have to add homepage URL too, any idea how to do it?
Thanks!
A: The homepage URL is part of the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Postgres xmlelement encoding My postgres database in UTF-8 and client in UTF-8 too.
When i try to:
select xmlelement(name pampam, xmlattributes('русский' as "top"));
I get back:
<pampam top="русский"/>`
But i want get back attribute as is( i.e. in Russian UTF-8), not as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ScrollView steals focus when scrolling I am trying to make a chatting window.
There's a TextView wrapped in a ScrollView in the upper side of the screen; and a EditText in the bottom of the screen.
I use following code to make the ScrollView scroll automatically when the new message is out of view.
scroll.post(new R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NSDictionaryController and image I am referring to this example code. I am trying to display image in the first column at where lastName is displaying, but unfortunately I can't.
A: I think you can do it in two ways-
*
*The data-source - peopleList array contains dictionary which does not have any NSImage object... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting remainding lines in a CSV I have a script here which will get all the lines in a csv and insert them into a database (FileMaker to be exact), and I want it to count to 100 lines, break the loop, then tell me the remainding lines which are left. My code is below, Please see and any help would be greatly appre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using jQuery .ajax for a voting script. How do I update MySQL DB after successful vote? I'm assuming I have to put something in the success option. However what I have isn't working.
I declare this JS function on the page:
<script type="text/javascript">
function performAjaxSubmission() {
$.ajax({
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: set view text align at center in spinner in android view-text-in-the-center-of-the-spinner-when-select-from-the-drop-down-list
I want to align the view text of spinner to center. I google it but didn't find anything, does anybody knows about this? any help or suggestion are appreciated
A: Create a adapter for your ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Codeigniter sorting array values after array_unique I'm trying to use sort function for an array after array_unique function but I'm getting below error:
A PHP Error was encountered
Severity: Warning
Message: implode() [function.implode]: Invalid arguments passed
Filename: controllers/admin.php
Line Number: 250
Bel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Package versioning policy - Harmless type changes? The package versioning policy specifies that changing the type of any entity makes a change of the B number in A.B.C necessary.
However, it seems to me that some type changes don't break dependent code. In particular, consider the following example, where I drop a T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to pass the value into the view I writed a plugin that start from the file,
I want to pass the file context into a view,
Anybody can tell me how to pass the context into the view?
A: Normally you pass the objects between editors using 'EditorInput'. Create a POJO class extending EditorInput and then pass it as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PostgreSQL - Aliases column and HAVING SELECT
CASE WHEN SUM(X.Count)*3600 is null THEN '0'
ELSE
SUM(X.Count)*3600
END AS PJZ,
X.Mass
FROM X
WHERE X.Mass > 2000
HAVING ((X.Mass / PJZ * 100) - 100) >= 10;
Getting: ERROR: Column »pjz« doesn't exists.
How can I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: setting session or php variable in javascript? i am doing a simple html form for two languages(English & Hindi) so i show the link for both language for ex <a href="#"> English </a> / <a href="#">Hindi after that i need to display the form with corresponding language what user clicked one of the hyperlink. so here h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add or Update object from a form GAE python I try to create a class which will add data from a form to a db.model, but my problem is that when I will try to add an existing book, I want to update the copies and not to add a new object. I really try to find an answer, I read books for programming in GAE, but I find n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSF/JSP - Beginner Question I've recently dipped my toes into JBoss Seam and naturally have ton to learn but having had a hands on approach so far with looking at code and trying to write my own seam applications I've looking for understanding on below:
I've come across the following peace of code which i cannot see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing Params to a page in key-value pair in CodeIgniter I am using CodeIgniter, and I am new to it.
I came to know that I can pass parameters to another page like http://example.com/users/list/param1/param2/param3/.... and so on.
Now on the destination php script, I can get it as $this->uri->segment(2) , but I mus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: variable not passed to predicate method in ANTLR The java code generated from ANTLR is one rule, one method in most times. But for the following rule:
switchBlockLabels[ITdcsEntity _entity,TdcsMethod _method,List<IStmt> _preStmts]
: ^(SWITCH_BLOCK_LABEL_LIST switchCaseLabel[_entity, _method, _preStmts]* switch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set Label control on BezierSegment path I understand the concept of drawing the path using BezierSegment.
However, can I set label control position onto the path? Thks!!
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7511082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Conditional MySQL INSERT if record number is set at specific number I'm creating a simple session based app in PHP/MySQL. I'm storing a session for each user connected to app in mysql table with their associated session_id. What I want to do is stop recording once a certain specified number of records are inserted i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between No-Interface View and Interface View in EJB What is difference between No-Interface View and Interface View in EJB?
Advantages and disadvantages of both of them.
A: AFAIK EJB 3.1 no-interface view means that the local interface or proxy is implicitly generated by the container, i.e. all public me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Composite key in Hibernate Annotations confusion I have two tables say 'A' and 'B'. A third table 'C' has two columns that directly refer to 'A' and 'B' i.e. 'C' contains 'A_id' and 'B_id' that refer to A's id and B's id respectively. There is unique key defined on 'A_id' and 'B_id'. But there is no id column in 'C'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java .lang.IllegalArgumentException: PWC1430: Unable to add listener of type How do you make sense of exceptions like this? It doesn't add up because the CatalogFacade does compile fine, and By the way, I do implement the classes they ask for. "Any of" seems like it's not needed to have all of them.
Exception while... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loading images only one time per spring webapp I need to load a bunch of images into my Spring webapp. For performance reasons this should only be done after starting the webapp. The images should be saved in a singleton to access from multiple users, sessions etc
I already build a Java Bean with an initalizer that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DOMDocument escaping end chars in PHP I have a problem with class DOMDocument. I use this php class to edit a html template. I have in this template this meta tag:
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
But after editing, although I was not editing this tag, it escapes the end char "/" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing the underlying type of an enumeration to long
Possible Duplicate:
C# int, Int32 and enum's
C# allows you to set the underlying type of an enumeration to long. But, how would you explain the difference in behavior when you try to compile the following two statements:
public enum Colors : long
{
Blue = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Android: Unit Test: How can I create unit test with SensorManager? I have plain Jar Project that reference by android application.
Then, I have Functions.java for my common functions which I want to create unit test class.
Here are the sample functions inside the Functions.java:
public static double getAltitudeBySen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are all the possible languages to create a mobile phone application? I know j2me , Android for creating mobile phone applications. What are the other languages ?
A: Just about anything. There's frameworks and SDKs for Javascript (Phonegap, NimbleKit, Unity 3D), Flash, Lua, C/C++, and Objective-C (of course). T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: maven scm:checkin error My maven script generates a laconic "error 1", and I am a bit at a loss as to how to extract the root cause from the huge output.
Could you help me in isolating said root cause for this error?
Here is the command I used:
mvn scm:checkin -Dmessage="check in"
error 1.
List item [DEBUG] Config... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: dynamically choosing a launch activity doesn't always work I've read a few articles here (and other places) that describe how to dynamically choose which activity to show when launching an app. Below is my code:
AndroidManifest.xml
<activity android:name=".StartupActivity"
android:theme="@android:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to add a tag to currently opened page using Chrome extension? I want to add div tag to the currently open website when user clicks chrome extension Icon. This image should appear on the left top corner of the page. How can I achieve this goal?
The code below adds div tag to extension window.
<html>
<head>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to somehow define a material or brush that completely ignores the current lighting? I have a model that looks good with lighting, but in that model I want to add a 3D-surface-graph that looks best if I turn lighting off. Does anyone know if it is possible to make the light affect only a selection of o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getting caller uid 10066 is different than the authenticator's uid I am using following code to add account into Account list
final AccountManager accountMgr = AccountManager.get(this.getApplicationContext());
Account ac = new Account("my.id","com.google");
try{
accountMgr.addAccountExplicitly(ac, "password"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET MVC3 in Visual Web Developer 2008 Express I've Visual Web Developer 2008 Express installed on my PC,
Does ASP.NET MVC3 works in visual web developer 2008 express?
How to create simple ASP.NET MVC3 site using simple text editor?
A: No, it doesn't work. ASP.NET MVC 3 requires .NET 4.0 and VS 2008 doesn't supp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Truncate links with CakePHP How can I truncate links through the Html Helper in CakePHP?
the book only truncates text strings, but how the truncate a link like this?
$this->Html->link('This is a very long link that needs to be truncated', '/pages/home', array('class' => 'button', 'target' => '_blank'));
Thanks
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regexp to remove all special characters in URL i need to basicaly clean urls that have special characters in it, like so:
http://172.23.113.79/recherche/pages/Results.aspx?k=**cr%c3%83%c2%a9er***
I would like to replace **cr%c3%83%c2%a9er*** by **créer**
and more generally all characters like À Á Â à á â È É Ê è é ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Releasing an App for a client So I have just finished building an iOS app for a client and they want me to release it under their company developer account.
I am an admin for the account but not an agent.
I cant build the app for release because i don't have the Distribution certificate and key pair and they arn't s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tag H3 inside UL tag
Possible Duplicate:
Is anything except LI's allowed in a UL?
I was doing something like that:
<ul>
<h3><a name="titlename">Title</a></h3>
<li>Text.</li>
<li>More text.</li>
<span><a href="/url">Click here</a> to go to some place.</span>
</ul>
But i get warnings in visual stud... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: android-failed-to-install--apk-on-real device-null-error I have similar problem to
Android Failed to install HelloWorld.apk on device (null) Error ,but I cannot start my app only on real device. On emulator all is OK. Maybe someone faced with this problem and found a good solution.
Thanks in advance.
A: Go to Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there a fast way to replace two map contents? In my code I have a map which holds a large amount of data (~100MB) I need to copy all that data from one map to another. currently I am doing this with swap but to my understanding, swap is a fancy way to do a copy. Is there a way to simply transfer the memory used b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to make the entire combobox clickable in a windows form? Instead of only the little tiny down arrow? Seems like there should be a property I can set or something, but I'm not seeing one... unless I'm blind.
A: Are you looking for
comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
maybe? That will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cache control in iPhone web app - ajax loaded pages Im looking for a guru on caching and ajax loaded pages :-)
I have read a lot of input about the subject but are still unsure what the best way is to cache ajax pages. I would like to be sure that Im doing all I can to make my iPhone web app as fast as possible to l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Given layer's object. How do i get the view of a layer in iPhone? I just want to access the view's object from the layer associated with it.I have searched in the CALayer properties for something like "view" but failed.any one have idea about this?
A: Since the view is normally the CALayer’s delegate, just use theL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to show taskbar when focus on application I wrote a WPF application, and when it is opened and focused, I cannot show the taskbar when my cursor hovers on the bottom edge (the taskber is auto-hidden), regardless of whether the application is maximized or re-sized to a smaller dimension. I have to manually cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Object and Event Scope in XAML Frame I have a program which is made up of 5 "pages" and a main "page". How can events in one page trigger actions in other "pages"... or a control value set in one "page" be used in another "page"?
I have included the pages like this
<Frame Source="GeneratorPage.xaml" />
Which I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Send images from sdcard to server using multipart entry I am making an android app in which i am sending image to server from /mnt/sdcard/DCIM/Camera/IMG_20110922_124932.jpg to serverthrough multipart request .. Can anybody help me out....
Any help will be appreciated..
Thanks..
A: Here is a simple example of a m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS: text align error I am getting text-align error, as i want text align from Left but it starts from center. i have tried to fix but unable to do that. please take a look & correct me.
css
.text {
width: 100%;
height: 10%;
text-align: left;
font-weight: bold;
}
html
<div class="text"> ....sentence s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I know client side which submit button causes submit when the submit button has been triggered? I'm using asp.net form. If a submit button is clicked I check his identity by doing
$('form').submit(function(e)
{
// VALIDAZIONE CAMPI LOGIN
if(e.originalEvent.explicitOriginalTarget.id
But..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: dates calculation in bash I have a file full of dates with this format (2002-09-26 02:20:30),
I want to extract the last 5 days from the end of the file , here is what I wrote
END-DATE=tail -1 my file (which is 2002-09-26 02:20:30)
time=$(expr 60 * 60 * 24 * 5) ( counting 5days which is 432000)
up to know every ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make SNMP query in Windows? Since I am a noob about SNMP I will have a little question for you. I have written a program in Java to make SNMP queries or normal command line operations etc. I have implemented all connections and functions but as I know I need something secial installed in my PC or something el... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Call/modify current activity on click of a button I have an activity "MyListActivity". I have an adapter associated with it "MyGridAdapter". It contains a grid of buttons (say 3). Each button has a "OnClickListner()".
On click of the 1st button, I would have to take the same action. So, instead of creating similar ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying a list or Map in Visualforce page I have a controller which has a method which populates a list and map.
Public class A
{ public Map<string,Book__c> map1 {get;set;}
public List<String> Lst {get;set;}
public A()
{
..... do something...
}
public refresh()
{
Lst= new List<String>();
map1=ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: REST Architecture for Multiple Deletes? I send a delete request to server as like:
@RequestMapping(value = "/user/{userId}", method = RequestMethod.DELETE)
for a single user delete. However what to do when multiple users wants to be deleted? I want to obey REST architecture but I want to see the another ways from s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to get website URLs from a sentence? I need to identify URLs (links) in a sentence using C#.Net Windows Form's TextBox.
e.g.: That is http://stackoverflow.com link.
that sentence is in the textbox.
I need to extract http://stackoverflow.com from this sentence.
How can i do that ?
Thanks you for your time.
A: Lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: System.ServiceModel.dll missing in references visual studio 2010 I want to use ChannelFactory<TChannel> Class I am trying to add reference to System.ServiceModel.dll but I not see it in the references .
I see there System.ServiceModel.web.dll but it is something different .
I am using VS 2010 .net 3.5.
Any idea what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to control my itemized overlay on map? I want to add new place when i long touch on the map, I can but the problem is when i add the overlay i can't move the map. The code is below.
public class CustomPinPointOverlay extends ItemizedOverlay<OverlayItem> {
private GeoPoint newMarkerLocation;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC3 Entitiy Framework - The EntitySet 'x' specified as part of this MSL does not exist in MetadataWorkspace I'm making an reservation system.
The following query
Reservatie r = (from res in entities.Reservaties
where (res.datum == date && res.tijdslot == time)
select res).FirstOrDefault();
giv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: UITextField: backspace not working I have an issue with UITextField's validation. I want to validate the UITextField's text-length to be 5(fixed).
my code :
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
if(textField==codeTxt)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Address of Null pointer? I came across the macro below
#define OFFSETOF(TYPE, ELEMENT) ((size_t)&(((TYPE *)0)->ELEMENT))
I kind of not able to digest this because in c++, when I try to deference a null pointer, I expect an unexpected behaviour... but how come it can have an address? what does address of null mean?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to get the processor number on linux I need to get the processor number in my program with C/C++ language. My code
like as follow:
#include <unistd.h>
int main()
{
int processorNum = sysconf(_SC_NPROCESSORS_CONF);
return 0;
}
when i compile it , it had two errors:
error: '_SC_NPROCESSORS_CONF' was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the difference between and ? I have written one XSLT to transform xml to html. If input xml node contains only space then it inserts the space using following code.
<xsl:text> </xsl:text>
There is another numeric character which also does same thing as shown below.
<xsl:text> </xsl:text>
Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: android how to finish an activity from other activity In my app i have 3 activities.
From 1st activity it goes to 2nd and from 2nd it goes to 3rd. From 3rd it is coming to 1st again. and if I press back key from the 1st then it should go to home screen (App will stop).
If I press back key of 1st its goes to 2nd act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: ExtJS4: Add field to form panel but not want it to be rendered by panel I have a static html form layout where i add extjs form fields using the "renderTo" config. In order to have form validation and simple submit methods i want to add the fields to a form panel. As the layout is managed by the html frame i don't w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Storing global immutable data in static classes I have a WinForms project, which uses a lot of user controls. Some of these user controls use classes from business logic layer. These classes are mainly performing CRUD operation to a database (through data access layer) plus some additional validation and reporting.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Website Rendering Problem: Safari 4 displays flash of content, then white screen I'm working on developing a rails application, and I'm getting word from Safari 4 users of a strange and irregular rendering error in which the page appears briefly, but quickly disappears and is replaced by a blank white page.
I have n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Help with structs im making a simple text game in c just for fun, but is having some problems with structs and/or Visual Studio 2010. I've started a empty C++ project, but my main main file is main.c.
Here is the code:
int main()
{
struct Player
{
char name[256];
int sum;
};
struct P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to implement html5 in android I am new to HTML5 and phonegap. when i googled, i came to know that html5 can use in android but i dont know how to implement html5 for android application. Is there possible to use HTML5 with phonegap or can use html5 alone in android application. I am confused with using html5 and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET MVC: How to handle 400 bad request error when url end with % I am trying to handle all HTTP errors to my custom error pages, but I find that when there is a % at the end of url, i cannot use config setting or code to handle it,
for example: http://localhost/abc%
the response is:
Bad Request - Invalid URL
HT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: cakephp sms functionality not working $this->Email->to = '+91number@airtelmail.com';
$this->Email->subject = 'hi';
$this->Email->from = emailid;
$this->Email->template = null;
$this->Email->sendAs = 'text';
$text = "Device is down";
$this->Email->send($text);
With Above code, if I set $this->Email->sendAs ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: javamail dir issues with windows I am using javamaildir to read e-mail messages from the physical folder on windows machine.
I am passing the url as "maildir:D:\\home\\test\\maildir". the direcotry maildir has the email message. I am able to connect to the store "maildir:D:\home\test\maildir", but when i am trying ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gtk Button inner-border I add a button to HBox, with expand equal to False, but I want the button to have more spacing between its label and border. I assume it is "inner-border" property, but it is read-only. How can I set it to e.g. 4px?
A: gtk.Label is a subclass of gtk.Misc which has the method set_padding. If ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access or MySQL in a big company Since a month, i'm working for a big company in France. They asked me to make a application manage their plannings. I devellopped something not so bad using their existant Access database and VB.net.
The problem is that in a few months, the application will maybe be used by 70 worker... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: implementing TTThumbsViewController on a UIViewController? Im trying to implement add TTThumbsViewController as a subview of UIViewController but the app is crashing. Here you see the code-
.h file-
#import <UIKit/UIKit.h>
#import <Three20/Three20.h>
#import <Three20UI/UIViewAdditions.h>
#import "MockPhotoSource.h"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Odd behavior when running bundle install I have a project where I used to have simple_captcha gem but no more. All traces removed. I even cleaned the directory and added a new project, even though the bundler installs all gems into a local path called simple_captcha. I have also uninstalled the gem from the system.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android phone and Tablet problem I know this is not a technical related question.But i do not have any idea.I am going to develop a project which should be supported in both phone and tablet.Is it possible having one project working for both tablet and phone ?
A: Yes. The only thing you need to keep in mind where y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending data to RESTful web services from iOS app I am facing a challenge to upload & download data, to and from the server using RESTful web services.
Is it possible to use a RESTful service client, if possible any way to achieve that in an iOS app to send data to the service.
A: @Ajay: As Claus mentioned there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript a=b=c statements I searched through the internets but could not find a relevant search criteria so I thought this would be the best place to ask.
I have a JS statement saying
document.location.hash = this.slug = this.sliceHashFromHref(href)
How does this work??
A:
How does this work??
a = b can be s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: I'm trying to export a runnable jar in Eclipse, but I need it to include some other files necessary for running my program Specifically, I am using JDBC libraries to work with databases in my Java program. When I perform "Export Runnable Jar" in Eclipse, it includes the referenced libraries but I am never given an o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: facebook localhost development problem - works occasionally I am trying to integrate facebook login in my application and the development is on localhost...
problem is I get the login button sometimes when I open the site.
Most of the cases, I have to refresh the page again and again and still it does not appear.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to avoid repetitive if statements in python dictionaries I am trying to create a new dictionary out of html form data that was submitted by the user. I end up writing repetitive if statements, checking if xyz key is in the dictionary in the form data. I know this is a quite suboptimal approach though I am not qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Node JS Express Boilerplate and rendering I am trying out node and it's Express framework via the Express boilerplate installation. It took me a while to figure out I need Redis installed (btw, if you're making a boilerplate either include all required software with it or warn about the requirement for certain softw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple markers in google map I am scratching my head for google map integration please help me out.
I want multiple markers, but its taking only 11 markers not more than that.
Below is my code..
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1");</script>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change size of Android-Seekbar? I have a question concerning seekbars.
I tried several things but nothing helped.
I want to change the height of the seekbar, but not the complete seekbar, only the bar where you scroll over with your thumb. I tried several things e.g. setBackGroundDrawable and setProgressDrawable and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Pass CurrentUICulture to Async Task in ASP.NET MVC 3.0 The active language is determined from the url and then set on the
Thread.CurrentThread.CurrentUICulture = cultureInfo;
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(cultureInfo.Name);
That way the translations are retrieved from the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: HTML5: Placing a canvas on a video with controls I want to draw things on HTML5 video. For that I am trying to place a canvas on the HTML5 video element.
But there is a problem when I place the canvas on the video element the video controls do not work. Since canvas getting all the mouseover and click events. Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Uploading base64 encoded Image to Amazon S3 via Node.js Yesterday I did a deep night coding session and created a small node.js/JS (well actually CoffeeScript, but CoffeeScript is just JavaScript so lets say JS) app.
what's the goal:
*
*client sends a canvas datauri (png) to server (via socket.io)
*server upload... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7511321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "142"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.