text stringlengths 8 267k | meta dict |
|---|---|
Q: How to select the default selection on the item in my list box using jquery Using this code I am inserting the code into listbox.
<select id="lstCodelist" size="17" name="lstCodelist" style="width:100%;height:280px;background-color:#EFEFFB;"></select>
Using this code I am displaying data in to lstCodelist box.
$.fn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: error importing gdata.photos.service in gae servers I'm using python + django in gae python proyect.
I'm working with picasa python api, but in my computer i haven't problems with gdata.photos.service, but when i push project in GAE servers i have this error:
ViewDoesNotExist at /
Tried main in module trazovillena.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does MSDN recommend including object sender in delegate declarations? I was reading this page and I noticed how it said this is standard guidelines:
The .NET Framework guidelines indicate that the delegate type used for an event should take two parameters, an "object source" parameter indicating the source of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Facebook login through android I write an Android application that integrates facebook, but failing in the login to facebook step. What I'm doing basically is to perform authorization and then ask if the session is valid. The answer is always negative. If I'm trying a simple request like:
String response = facebook... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java simple asynchronous HTTPS client I need to develop an application that comunicates with an https server.
This application needs to do some asynchronous data transfert.
I first tried to use an HttpsURLConnection and manage the returned inputStream using a separate thread with an observable object. The observer c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Twitter4j TwitterStream doesn't get all tweets I am trying to get all the tweets on twitter through the twitter4j TwitterStream object. I'm not sure that I am getting all the tweets. For testing the delay after which the streaming API returns the tweet, I posted a tweet from my account on twitter. But I didn't recei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Get function name as symbol (not as string) - C preprocessor Is there a way in C to get the function name on which I can use token-pasting
(I know __FUNCTION__ and __func__, but they don't expand to name at pre-processing,
and I do not want the name as a string).
I want to be able to do something like:
prefix_ ## _... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Route-me on Xcode 4.X doesn't compile for distribution (app store) Route-me on Xcode 4.X doesn't compile for distribution (app store)
This is the error:
ld: library not found for -lMapView
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resultset Shows first 12 Rows empty of jTable - Java I have created a Method in a same class, which take SQL Query as a parameter but there is a problem:
First time when I call
ABC(String sqlQuery)//Method Definition
this Method is working fine for me.And when I implement action performed event on a button with th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: render :partial returning an array when defined in ApplicationController but string when in ApplicationHelper This method:
def admin_buttons
render :partial => 'portable/admin/admin_buttons'
end
returns this (not html_safe) when defined in ApplicationControler and made a helper with helper_method:
["my part... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Jquery UI slider not working My Jquery slider is not working.
Here is my header code:
<head>
<link href="/stylesheets/public.css?1316972296" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/tipTip.css?1263394346" media="screen" rel="stylesheet" type="text/css" />
<script src="/java... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE6 text selection issues I am running into some weird problems with IE6 when I am trying to select text from the main div at http://mincovlaw.com/doc/canadacopyrightact. In IE6, I can only select the whole DIV at once, not line by line, like in other browsers.
No such problem exists in any IE7, FF3.6, Chrome 16 or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone json library to map the json to my own objects I seek a iPhone json library that parse json strings into Custom Objects (such as Employee, Course, etc, not into NSDictionary or NSArray)
Thanks.
A: I don't think one exists. How would you design a general one, without knowing in advance about the kinds of obje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing Variable through function to main() I'm very new to C# but am learning more and more every day. Today, I'm trying to build a simple console calculator and need help passing a variable from the function to Main() so I can use it in an if-else to determine what function should execute.
public static void Main... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getch equivalent in assembly language I am prigramming in assembly Language, x86 in C++ and I need to know the getch equivalent in assembly language instead of C++ language as I dont want to use any function from the C++ programming language.
I found the code on the web but it saves the given value to a variable an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: problem with 2 button layout in android I have two buttons (buy and share) in my layout and I want them to occupy equal space. However, "share" button is occupying much more space than "buy" button. Can any one kindly point out my mistake ? Thanks.
<Button
android:id="@+id/shareButton"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I prevent browser caching with Play? Part of my app provides a file to be downloaded using the redirect() method. I have found that Chrome (and not Firefox or IE, weirdly) is caching this file so that the same version gets downloaded even if it has changed server-side. I gather that there is a way to tell a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: when two 16-bit signed data are multiplied, what should be the size of resultant? I have faced an interview question related to embedded systems and C/C++. The question is:
If we multiply 2 signed (2's complement) 16-bit data, what should be the size of resultant data?
I've started attempting it with an example of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: linux command line: cut (with empty fields) I have a file (input.txt) with columns of data separated by spaces. I want to get the 9th column of data and onwards.
Normally I would do:
cut -d " " -f 9- input.txt
However, in this file, sometimes the fields are separated by multiple spaces (and the number of spaces var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to securely erase a file in iOS? When I encrypt a file I want to overwrite its contents, not only delete it. My intended purpose for this is to securely erase the file. Is there a way to do this in iOS?
A: Open the file memory mapped and overwrite the data, then delete the file using NSFileManager:
NSFileHand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Turning the same column from 3 rows into 3 columns in another table There are three tables, table a, table b, and table c. Table b combines id's from the other two tables to define a 1-to-(1 to 3) relationship between a and c. So any a will have between 0 and 3 c's.
Performing joins and multiple selects to do valida... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UI_USER_INTERFACE_IDIOM() always returns UIUserInterfaceIdiomPhone on iPad 4.3 Simulator? I am new to iOS development and following along with the book "Learning Cocos2d, A Hands-on Guide to Building iOS Games with Cocos2d, Box2d, and Chipmunk".
I have noticed that the UI buttons and viking characher I have render... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to test a Facebook application on Google App Engine locally (code 191 error)? I want to test and develop locally, while having the application on the air, and I'd rather not use two separate application id's because this means I have to change the code every time I deploy a new version and then change it back.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android Filter ListView I need a little help with a problem that I have.I'm trying to get a specific part of a list view which I am using in my application.Here is what I have in my list view :
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Virtual dtor segmentation fault I've got the following code in C++:
#include <iostream>
class Number
{
public:
virtual void foo(){std::cout << "Number foo\n";};
Number (){ std::cout << "Number ctor" << std::endl;}
virtual ~Number(){ std::cout << "Number dtor" << std::endl;}
};
class Complex : p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET MVC Apply web.config transformss on "Publish" I'm using VS2010 and I have a Web application that I deploy using the "Publish" command.
I have defined a couple of transformations in the Web.Release.Config file to change the connection string and other settings that need to change in the "live" server.
The pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change axis ticks formatting and add lines to plot I have an x-axis which is categorical. I would like to have the ticks along the axis be boxing the labels, as opposed to centered above them. I would also like to have vertical lines in the plot separating each category along the x-axis.
Here is an example data se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: replace output of lines through external command Suppose I have several lines of python code:
for i in range(10):
print "item {}".format(i)
is there a way I can get the output of the lines directly in vim without having to copy the text into the interpreter and copy the output back?
The lines are usually just a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Display all phone contacts with a check box ![I am developing an application in which I want to display all contacts with a checkbox, as shown in pic I can display all contacts but not with checkbox please help me.][1]
A: If I understood you correctly, you are trying to display user's contacts in the ListView. In t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating masks across browsers I see that there are ways to do this in webkit browsers, but I don't see ways to do it in others. Is this simply a feature that hasn't been implemented in all the browsers?
I don't have standard images, so clip won't work. I may have to render everything ahead of time, which will make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jquery form validation - error class to parent container I am using Jörn's jQuery validation - which you can view the full code for by downloading it here.
I'm running into a bit of a problem, as I'm not entirely familiar with Javascript.
Here's an example of my HTML
<div class="field">
<label for="myInput">My I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: numpy uint8 pixel wrapping solution For an image processing class, I am doing point operations on monochrome images. Pixels are uint8 [0,255].
numpy uint8 will wrap. For example, 235+30 = 9. I need the pixels to saturate (max=255) or truncate (min=0) instead of wrapping.
My solution uses int32 pixels for the point ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Loading .obj file in OpenGL in Visual Studio 2010 In which directory should I store the .obj models in Visual Studio 2010?
I am using the OpenGL Mathematics (GLM) library to use them in OpenGL, and when I try to load the object it shows
Error11error LNK2019: unresolved external symbol _glmReadOBJ referenced in fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: codeigniter set_rules allow more characters I am building a registration system and i have come to a problem.
I want to allow dots(.) into my username but i cant find a way to do this...
This is just an example which i may want to use in order features of my app as well.
This is what i got so far:
$this->load->l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to start Azure Storage Emulator from within a program I have some unit tests that use Azure Storage. When running these locally, I want them to use the Azure Storage emulator which is part of the Azure SDK v1.5. If the emulator isn't running, I want it to be started.
To start the emulator from the command line... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: GWT DisclourePanel I have got a DisclourePanel with a button on it. But when I call button.getParent()
I always get a SimplePanel. With other Panel like VerticalPanel it works.
Does Anyone know why?
A: DisclosurePanel extends type Composite meaning it is a widget that can be composed of many widgets. It consists of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exception while using java youtube api I am using java youtube api , I have this exception when i am just trying to do the first line of the connection
YouTubeService service = new YouTubeService("");
I am getting this
type Exception report
message
description The server encountered an internal error () that prev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Save array positions I have tree where user can drag and drop element and change elements positions.
After every change I'm sending this serialize array and I want to save it .
Example tree :
Economics
Blogging
General Dev
Japan
Productivity
Humanities
Education
Science
Haskell
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regular expression for string of digits with no repeated digits? I'm reading through the dragon book and trying to solve an exercise that is stated as follows
Write regular definitions for the following languages:
*
*All strings of digits with no repeated digits. Hint: Try this problem first with a few digits, su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Dictionary style replace multiple items I have a large data.frame of character data that I want to convert based on what is commonly called a dictionary in other languages.
Currently I am going about it like so:
foo <- data.frame(snp1 = c("AA", "AG", "AA", "AA"), snp2 = c("AA", "AT", "AG", "AA"), snp3 = c(NA, "GG", ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: http post successfully logged in? I am trying to login to a webside which needs 3 parameters in the post command.
Token, usr_name and usr_password.
The token always has the following value "545616f1e29bc538843ec7aa908122b1e".
I am getting this value by doing a HttpGet on the loginpage and store it as a string.
If i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple EAGLViews but only one copy of each texture - how? I have an app running on iPad which is using lots of textures, rendering into one EAGLView. Now I need a second EAGLView, sharing textures with the first.
I can get both views rendering fine, in parallel, on screen, by fixing some design mistakes in Apple's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Speeding up SQL to Linq ToList I have a SQL table with about 380,000 rows.
In SQL SMSS I perform this query:
SELECT Longitude, Latitude, street FROM [Stops].[dbo].[Members]
WHERE ABS(Latitude - 51.463419) < 0.005 AND ABS(Longitude - 0.099) < 0.005
It returns about 20 results almost instantly.
I have a WCF web... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problems with pagination in JQuery I need to be able to parse an XML file with JQuery, show 3 posts at the time and have pagination that links to the rest of the posts.
Below in the code, I am parsing a local XML file that I have downloaded from slashdot. The code displays the right amount of posts and creates the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Safely insert string into HTML using JavaScript The insertion looks like this:
a_span.innerHTML() = input.value
To prevent any kind of attacks in PHP I use htmlspecialchars. Should I use this
for protection or native escape is enough?
A: First off, I'm assuming you intended to write a_span.innerHTML = input.value, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: App Crashes when trying to add cells to tableView I am using an NSMutableArray to populate my tableView.The array's name is cells. I have a button that adds cells, but when i press the button, the app crashes. The code in my button is:
- (IBAction)outlet1:(id)sender {
[cart.cells addObject:@"1"];
[cart.myTableView r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding an id to the tag is not working I'm trying to add an id attribute to the <circle> tag using jQuery's .attr():
r.circle(x, y, 6).attr({fill: "#ff0000", stroke: "none", id: "cir1"}),
The problem is that it adds the fill and stroke attributes but not id. I know because I look at the Google Chrome DEV and it's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Help with MySql trigger or alternative I am trying to bring together two separate designs here so I understand the overall approach may not be ideal. Basically through user input in PHP table1 and part of table2 is populated and then in turn I need the rest of table2 and table3 to be populated automatically.
I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Event anonymous function parameters not working correctly PictureBox[,] picBoard = new PictureBox[3, 3];
for(int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
{
picBoard[i, j] = new PictureBox();
picBoard[i, j].Click += new EventHandler(
(sender, e) => Debug.WriteLine(i.ToString()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to register a controller with parameterized constructor, programatically? (in Castle Windsor - ASP.NET MVC) I want to register controllers programatically in Global.asax.cs.
with MvcContrib.Castle.WindsorControllerFactory
private static IWindsorContainer _Container;
protected virtual void InitializeWindsor()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL/PHP Relating Database Content by Keywords I read here a lot but this is the first I've asked a question.
I'm developing a website, with LAMP, that is essentially all about user submitted articles. I would like to relate some articles together by tags (or keywords) so that I may show a viewer some content that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inject/simulate WPF routed mouse click events I have some straight WPF 3.5 controls handling left mouse clicks that I need to use within a Surface app (SDK 1.0). The problem I am facing is that do not work by default. I am thinking of wrapping each control in a SurfaceContentControl and translating ContactTouchDown ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ImageIcon doesnt show up on top left app window I have this code:
public DesktopApplication1View(SingleFrameApplication app)
{
super(app);
pbu.registriere(this);
ImageIcon icon = new ImageIcon("resources/BilKa_Icon_32.png");
this.getFrame().setIconImage(icon.getImage());
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is removeChild recursive? I create many new page elements (in some arbitrary hierarchy) using document.createElement and have been using element.removeChild() to erase elements I no longer want. I was wondering if this would correctly clean up all of the sub-elements as well, or if I should be using some sort of rec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: external reference to third-party library (Jar) inside another Jar without wrap the second inside the first I'm writing a small fragment of code that aims at using AppleScriptEngine in order to communicate with Growl. I would obtain a jar file called MyApplication.jar with all my classes but I need to refer AppleScr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find if the image has black rectangles of size greater than 5*5 I am trying to write a program in c# or c++, which finds if the image (png or jpg) has a rectangle which is black in color and is greater than size 5 * 5 pixels. If there are multiple such rectangles in an image, it should be able to give me the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: cakephp logout redirect I have a cakephp app that when I logout it add's admin/login ti the url of the logging in screen. Then when I log in again it says missing controler. I already have a redirect to the Auth logout. If I change that will it still logout?
Original login url:
mydomain.com/res/admin
Url after logo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make the text bold using jquery I have this out put.
<option value="18277">Dollar Max Hospice~Mx</option>
<option value="12979">Routine Adult Physical Exam Visit Limit</option>
<option value="12841">Is Reverse Sterilization Covered Out of Network?</option>
<option value="12918">MD CDH PPO Variables 2</option>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Pass variable in document.getElementByid in javascript I have a variable account_number in which account number is stored. now i want to get the value of the element having id as account_number. How to do it in javascript ?
I tried doing document.getElementById(account_number).value, but it is null.
html looks like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to scrape a huge amounts of tweets I am building a project in python that needs to scrape huge and huge amounts of Twitter data. Something like 1 million users and all their tweets need to be scraped.
Previously I have used Tweepy and Twython, but hit the limit of Twitter very fast.
How do sentiment analysis co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to make X.509 certificate? I am trying to make a X.509 certificate. I am using makecert.exe to make this. I use this command to make my X.509 certificate
makecert.exe -sr LocalMachine -ss My -a sha1 -n CN=MyServerCert -sky exchange –pe
But i don`t know there X.509 certificate is storeing.
I need to use this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android SQLiteDatabase NullpointerException Okay full code now:
DBOpenHelper:
public class DBOpenHelper extends SQLiteOpenHelper {
private SQLiteDatabase mDatabase;
private static final int DATABASE_VERSION = 1;
private static String DATABASE_NAME = "RTDB";
private static final String DB_TABLE_NAME1 = "playerta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use UIWebView in Objective-C to display a Webpage I've been trying to implement UIWebView into my application for a while now but when I do my application crashes upon startup.
My code is:
-(void)viewDidLoad {
[super viewDidLoad];
NSString *urlAdress=@"http://www.facebook.com";
NSURL *url = [NSURL URLWit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: wxPython - Import Error - Environment Variables? I'm running Python 2.7 and wxPython 2.8 on 64-bit Windows 7 (but Python and wx are both the 32-bit versions).
I'm trying to import the module, but import wx returns an error:
Traceback (most recent call last):
File "C:/Users/Adam/Desktop/test", line 4, in <module>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't I define a nested class externally? I'm having trouble putting together an object model that involves nested classes, using MinGW C++. Here is an example that exposes my issue:
foo.h:
/*
* foo.h
*
* Created on: Sep 25, 2011
* Author: AutoBot
*/
#ifndef FOO_H_
#define FOO_H_
class Foo
{
public:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Libxml parser iphone issue I am using libxml for parsing the xml. I have referred the XMLPerformance example by apple.
Following is the part of xml document which is causing a problem as it contain the " " string. i cannot just replace this " " with any other string is i am getting data in didReceiveData d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Custom Listview issue - for time schedule can I change the text color and size? I'm working on a project which is something like bus schedule.And I'm curious about one thing : Is there any way to do something like this :
This is how I want to look like my list view. My idea is to get the current time and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ajax json post to Controller across domains, "not allowed by" Access-Control-Allow-Headers I create a simple MVC Controller action, that takes some json data - then return true or false.
[AllowCrossSiteJson]
public JsonResult AddPerson(Person person)
{
//do stuff with person object
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: asp.net mvc 3 serverside remote validation not working on submit through fiddler I am trying to understand how remote validation works. It works great client side or in browser. This is what I did, I need to check if a username exists while registration. So I added remote validation and it worked perfectly in browse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Regex extract numbers from Url (except port number) i have to extract id value of a product from url.
It is SEO Friendly (url routing).
Url can be
http://www.example.com/{param0}/{param1}/123/{param2}/{paramN}
Or
http://localhost:6847/{param0}/{param1}/123/{param2}/{paramN}
For the first url there is no problem.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom Detail Image View from Three20 I am pretty new with Three20. I have followed ray wenderlich's nice introduction to three20 and the examples within the three20 framework. When I click on a thumbnail in a thumbnail view (subclass of TTThumbsViewController) to launch a Details view, a standard Details image view... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Open file location in GUI using keyboard only I know about the
[ctrl] + [alt] + t
[ctrl] + f
[alt] + f1
shortcuts to bring up the standard system browsing tools, and I use them often. I am not satisfied with them (except the terminal...of course).
My question is: is there an equivalent to the Window's shortcut
[w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: canvas or OpenGL ES? I am embarking on a project (game) and I have a question about the implementation, will be developed specifically for Android and want to know which is better (easier, faster to develop and portable). canvas or OpenGL ES
A: Unless you already have a good working knowledge of OpenGL, then using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Slidetoggle - force div open if closed? I am using jQuery slideToggle to show/hide comments. I need my function to always make sure the DIV is open after a comment post. How do I do this?
$.ajax({
type: "POST",
data: "trackid="+trackid,
url: "http://rt.jaxna.com/viewcomme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check the text of an NSTextField (Label) In Xcode I'm trying to get the text of an NSTextField (Label) to see if it says Yes or it is says No
I've tried this:
if ([LabelYesNo StringValue] == @"Yes"){
[LabelYesNo setStringValue:@"No"];
else{
[LabelYesNo setStringValue:@"Yes"];
}
}
and
if (LabelYes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does the release of Google Wallet change any of the capabilities available to Android developers? Recently, Google released Google Wallet and additionally released an update for Sprint Nexus S phones (CNET , NFCWorld ) to enable the secure elements on the phone, (probably the SmartMax chip).
-Can we presume that, de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Apache VirtualHost won't work (Wamp/Win7) I own two domains which I want to point to my local server here at home:
*
*www.first.com
*www.second.com
They both point to my own server here at home (Yes I've already managed the A-record config at my webhotel where I registered the domains).
I've done the following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Read directory then insert to sql For some reason I am just dumb with arrays... I cannot figure them all the way out... All I want to do here is read a folder and get all the folder names inside of that folder and insert them into a mysql db. Now the db part isn't my problem. Its handling this array. I did something... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: drupal 7 calculated field returns undefined index Ok, struggling now after two hours - and I still cant get it.
I'm trying to average all of the fivestar ratings I have for a node using a computed field. But i'm struggling to simply access the other fields using entity!
In the body of the node, this works fine:
$tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP error page problem I can't figure out why this script isn't working.
<?php
if (($_GET['p'] != 'index') &&
($_GET['p'] != 'reg') &&
($_GET['p'] != 'login') &&
($_GET['p'] != 'ad') &&
(!isset($_GET['p']))):
?>
<?php endif; ?>
I want to not display the error page if the $_GET is not set, whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java JPA implementation - how are properties read/set? I am reading the Beginning Java EE6 Platform and Glassfish 3 book and I have some minor difficulties at understanding Access type on field/properties. What is the difference between the two of them?
Is it how the properties are read/set by the JPA implementatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why text on SWC doesn't show up when imported from FlashDevelop? I created many SWCs with graphics and code for my project so that the compiling time has a really better performance. I just found a problem, tough.
One of the SWCs is a 'text container'. It is just a set of graphics with a dynamic text field in it. Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debug.WriteLine to different "channel"? http://i.minus.com/ibsHfIOAy7lBCj.png
I want to write some stuff to VS's output window so I can see what's going on, but it just gets flooded with all this other stuff. Is there some way I can write to a different "channel"? It's got that dropdown there, which I see AnkhSVN ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Django recursive imports I have two apps: pt and tasks.
pt.models has a Member model.
tasks.models has a Filters model.
Member model has a foreign key to Filters model (one for a member).
Filters has M2M field to Member as it holds some kind of filtering settings.
So, I must recursively import both models to get eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating an array while passing it as an argument in Java Is there a way to create an array of objects as part of a constructor or method? I'm really not sure how to word this, so I've included an example. I have an enum, and one of the fields is an array of numbers. Here is what I tried:
public enum KeyboardStu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: MySQL find the mode of multiple subsets I have a database like this:
custNum date purchase dayOfWeek
333 2001-01-01 23.23 1
333 2001-03-04 34.56 5
345 2008-02-02 22.55 3
345 2008-04-05 12.35 6
... ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Re-size a bitmap using "Nearest Neighbor" in .net I have some low detail images I'm rendering to the screen. I'm using a bitmap as a buffer. Is there a way to re-size the bitmap (using "Nearest Neighbor") in .net?
I'm using VB.net so all .net solutions are acceptable.
A: A simple Winforms example that draws a sca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automatic checking of jstl fmt:messages? Is there any automatic way to check that all referenced messages in my jstl are, in fact, provided in a properties file?
Of course I always add in translations as I make references to them, but I'm mainly concerned about the rare instance where I forget one, or have a typo in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to switch between layout at runtime in android? i have four images in a row at the top , on click of each icon i want to change the underlaying background (image) and the controls on the layout , this way it achieves tab like structure and behavior , i want to know whats the best way to achieve this ? I think i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails: Convert string to variable (to store a value) I have a parameter hash that contains different variable and name pairs such as:
param_hash = {"system_used"=>"metric", "person_height_feet"=>"5"}
I also have an object CalculationValidator that is not an ActiveRecord but a ActiveModel::Validations. The Object va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: codeigniter $this->db->where(); custom string problem Im trying to select some values using a custom string. below is my code
$this->db->from('posted');
$st="infor='rent' AND (typeq='in' OR typeq='out')";
$this->db->where($st);
$q = $this->db->get();
A Database Error Occurred
Error Number: 1054
Unknow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: BlackBerry - Set HTTP Proxy for connection I would like to set a HttpProxy for a subsequent HttpConnection on Blackberry.
In Android I would do something like:
HttpHost proxy = new HttpHost(PROXY_IP, PROXY_PORT);
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,
proxy);
What is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Memory accesses in MIPS We're studying for our midterm in Computer Organization and Design on Tuesday, and none of us understand the following question:
procedure:
addi $sp, $sp, -4
sw $ra, 0($sp)
... Some unknown work is done ...
addi $sp, $sp, 4
lw $ra, -4($sp)
jr $ra
(1-H) Again consider ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scala: Contains in mutable and immutable sets I've discovered a strange behavior for mutable sets which I cannot understand:
I have a object which I want to add to a set. The equals method for the class is overridden. When I add two different objects to the set, which produces the same output for equals method, I ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: UITouch equivalent for Mac I'm writing a Mac game using Cocos2D-iPhone, and need to get a click event. Is there an equivalent to UITouch for the Mac platform?
A: You need to look at both NSEvent and NSTouch - which isn't an exact match for UITouch, although close.
A: Kobold2D (improved Cocos2D version) has a simpl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changes to UIView before transitionWithView animation are ignored I have an UIView that contains two UIImageView (one is a cartoon, the other one its special shadow). "self" is the UIView object.
On tap I want to remove the UIView from its superview via a curl effect. This works very fine.
But before it is curled up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: smalltalk block - can I explicitly set the returning value and stop executing the block? The return value of #value: message, when sent to a block, is the value of the last sentence in that block. So [ 1 + 2. 3 + 4. ] value evaluates to 7.
I find that hard to use sometimes. Is there a way to explicitly set the retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I stop the Clicking function While it is finish Animation? I need to know how can I stop the clicking function while it finishing the Animation
here is my code
$(function () {
$('legend').click(function () {
$(this).parent().find('.content').slideToggle("slow");
});
});
A: Change you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: rails partial's layouts with named yield - why is yield block never used? I have a partial, with a layout:
<%= render :partial => 'home/mobile/home', :layout => 'home/mobile/page', :locals => {:page => 'abc2'}%>
The layout (page.html.erb) has yields for different blocks, such as:
<div data-role="header">
<%= yiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Form Invoke causes strange Exception I have the following method inside a Form
public void Bye()
{
if (InvokeRequired && IsHandleCreated)
{
Invoke(new Action(Bye));
return;
}
Close();
}
This form is created in the main form's thread, but this method is called from a System.Thre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7547755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.