text stringlengths 8 267k | meta dict |
|---|---|
Q: Need a Property to hold the result from a data table I need to create a property tha will hold to ints for example
int age and int numbers so.. something like This data is comming from a function in another class that returns a DataSet, in the data set there will be those two items like:
Age number
24 1
29 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 3.1 Asset Pipeline have Heroku implications? Does the asset pipeline have implications for rails on heroku that I should know about?
A: Yes it does, details can be found on Heroku's Rails 3.1 guide:
http://devcenter.heroku.com/articles/rails31_heroku_cedar
A: Take care of that during the "rake asset:precompi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: setting NetworkStream.ReceiveTimeout not triggering exception This is a continuation of the this question. I am new to network programming, so I am just writing small sample stuff to gain understanding, but somewhat struggling with explaining results.
It seems setting NetworkStream.ReceiveTimeout is not working corr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to populate the alertdialog from the values queried from database? Right now I can only see the fetched values when I press OK button of the dialog. But I want to see it when the alertdialog appears. I know I have put the display code inside the .setPositiveButton("OK", But even when I tried putting it before th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7542997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does "contextual conversion" with `&&` and `||` operators work in conjunction with user-defined operator overloads? From @Xeo's excellent c++-faq question: Is the safe-bool idiom obsolete in C++11? I learned that the safe bool idiom is no longer needed, because an explicit user-defined conversion to bool will be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Ordered comparison between pointer and integer - (void) dealloc
{
[_id_list release];
[super dealloc];
}
- (void)update {
CFArrayRef ar = CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly, kCGNullWindowID);
CFDictionaryRef window;
CFIndex i;
CGWindowID wid;
[_id_list release];
_id_list = [[NSMutableArray ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: spawning thread using a method without being static? is it possible to spawn a new thread using a method that isn't static? i have a program in wpf, i want to spawn a thread when it starts. i'm trying to do this:
static Thread thread = new Thread(new ThreadStart(SomeMethod));
private void SomeMethod()
{
Sending... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL SELECT multiple rows with same column value based on value from another column I am just getting started with MySQL queries, and have been fighting this for days with no luck finding a solution, so here goes.
Table structure as follows:
| ID | TAG
| 111909684134416384 | WesternU
| 11190968413... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drawing triangles with CSS problems This code
.right {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
border-color: #fff transparent transparent transparent;
border-style: solid;
border-width: 200px;
height:0;
width... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Call a method in a dynamically loaded module perl I am using Module::Load to load a module dynamically.
But I am not able to invoke a method defined in the module. Here is what I am doing
my $module = load("Module");
$module->function();
I am getting the following error:
Can't call method "function" without a packa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Jackson vs Gson for simple deserialisation For parsing JSON like this twitter API users/show response I've been using Jackson and Gson Java libraries as candidates to do this work. I'm only interested in a small subset of properties of the JSON so Gson was nice because of its very concise syntax but I'm losing an in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to have filled video at top and show label at bottom. (Fill and Anchor) In Winforms, I use Fill and Dock to achieve this.
I have a "Page" where I would like to play a video file and also show the label at the bottom. I would like the page to be able to stretch and for the video to stretch and to have the label s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Playing one MediaPlayer instance at a time I'll keep it simple. I'm making what could essentially be considered a soundboard. I have everything working the way I want with one exception. When I select one ImageView, the sound assigned to it plays. When I select another ImageView, the sound assigned to it plays, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: saving date to RMS in Java ME I would like to save a Date object into an RMS in Java ME. The way I would like to do it is by converting the date first to some String/int/any primitive data type value that the RMS can save. I then would like to read this data back and create a Date object from it. So how can I do thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Improve Load Time of Sectioned UITableView I am displaying a UITableView modally, but it takes about two seconds for it to appear, below is the code that is holding up the transition.
ModalViewController.m:
- (void)viewDidLoad
{
[super viewDidLoad];
// get all songs from iTunes library
MPMediaQuery *so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to add rows to mysql database table and display it in a listbox in vb.net? I have the following controls:
*
*textbox1 - this is where i type a message.
*listbox1 - this is where i display the messages.
*button1 - this is what posts my messages to the server.
*StatusStrip1.Title1 - this is where the current... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UIWindow UIView addSubview issue Every video tutorial and book I have read displays the following code to add a UIView to the UIWindow.
[window addSubview:self.viewController.view];
My understanding of the above code is that a "View" (which is an instance of a UIView) is added to the window (Which is an instance of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is wrong with this JQuery code? <script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
//waits till the document is ready
$(document).ready(function() {
//onclick function
$('button.butter').cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to trigger cellTemplateSelector when Items changed I have 2 templates for DataGrid's CellTemplate. When I change the items, it won't help me select the template for me, my DisplayModeTemplateSelector won't even be called!
What I'm wondering is if there is a way to trigger this CellTemplateSelector again when ite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JavaScript SDK auto log me in I am trying to see if something is possible.
If I am updating my website to act as a proxy for me and want to know if there is any way to access myself via Open Graph when someone comes to my site without having me needing to literally log myself in?
I was only hoping to leverage the Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC3 C#4.0 / Passing variables between views new to C# and MVC. What I would like to achieve is passing a variable as ViewData from one view to another view without using ID in the ActionResult because this view generates it own variable. I am sure there are better ways to do that, but here what I thought might wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What happen to existing server queries when pushing new Rails code to Heroku or putting it in maintenance mode? This page http://devcenter.heroku.com/articles/maintenance-mode doesn't give any indication.
Server queries to Heroku could run up to 30 seconds before they got terminated forcefully. So I am wondering wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to prevent users from entering invalid characters inside an input field Given a text input field. How can I prevent users from entering spaces, and other other than letters numbers or dashes (-).
Alphanumerics only - "The alphanumeric character set consists of the numbers 0 to 9 and letters A to Z. In the perl ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I add jpg files to ipa and load them with FileStream class I'm developing a tile engine with actionScript-3 for IOS machines. Is there a way to package JPG files with IPA and then read them with Adobe Air's FileStream Class. I need to read files asynchronously. Embeding them or putting them in a swc wouldn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails: controller method or instance variable inside a helper I'm using the bitly gem and would like to have access to the bitly API inside my helper methods (which get called by views and mailers to generate URLs).
I initiate an API connection in this method in my ApplicationController:
(is there a more appropriate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: what is wrong with this simple regex? I am stuck in a dump:
import re
print re.search('return[^$]+',
'return to the Treasury of $40 million\nnow!').group(0)
The above regex only prints return to the Treasury of, but I expected it to include $40 million. What I understand from regex is that I am ask... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting fb.me URL How do I go about either making, or retrieving facebook short url's (fb.me) from a page, profile, event etc? I want to update my url shortener site - but if the user links to a facebook page I want to just return a fb.me link instead. Does facebook make their short urls on the fly, or does each pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to load an image in memory with Flex/ActionScript? So I'm trying to load an embedded image this way:
[Bindable]
[Embed(source="path")]
private var cls_img:Class;
var img:Image = new Image();
img.source = cls_img;
Now I'm trying to copy pixel chunks from it however I get an error that img.bitmapData is null and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to print http response first and do the heavy db operations later? I'm implementing a mobile api. One of the requests processes json data and returns afterwards a predefined message( is independent from the calculation) back to the device. I'm using kohana 3.
How do I return the http response first and do the ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to walk dynamically into multidimensional arrays? For example:
$size = 0;
$array = $array;
$size = 1;
$array = $array[x];
$size = 5;
$array = $array[x][x][x][x][x];
I got a $config array that can either have 1 dimension or many. Depending on setting of the var $size the elements I need walk gonna b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby: Resize Images without ImageMagick? Is there a way to resize images in Ruby without ImageMagick.... and also without ruby-vips? Yes, I know I am being rather narrow, but can't seem to get both of them to install on my Mac, which is kinda annoying. I just wanna resize, nothing fancy... anything lightweight?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Callback conflict Both of my callback methods have update_attributes in them. So it looks like when calculate_rating runs it also calls modify_rating. I only want calculate_rating to run for creating a new record and modify_rating to run only when editing and updating a record through a form.
after_create :ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detect unreachable ports for UDP in Erlang I am looking for a way to detect "port unreachable" errors for outgoing UDP packets in Erlang, so I can eagerly report transport layer errors to the application. I.e, I want to capture ICMP type 3 packets to report to the higher layers that packet have not reached the desti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to sort the elements (columns) in xslt to transform the xml file to csv format <?xml version="1.0" encoding="utf-8"?>
<Report p1:schemaLocation="Customer details http://reportserver?%2fCustomer details&rs%3aFormat=XML&rc%3aSchema=True" Name="Customer details" xmlns:p1="http://www.w3.org/2001/XMLSchema-i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Grammar involving braces I'm trying to solve DCG grammar in prolog and succeeded upto a point, i'm stuck in evaluating the expressions involving braces like these.
expr( T, [’(’, 5, +, 4, ’)’, *, 7], []),
expr(Z) --> num(Z).
expr(Z) --> num(X), [+], expr(Y), {Z is X+Y}.
expr(Z) --> num(X), [-], expr(Y), {Z is X-Y}.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Standard for uploads into a server directory? I have a topic/question concerning your upload filename standards, if any, that you are using. Imagine you have an application that allows many types of documents to be uploaded to your server and placed into a directory. Perhaps the same document could even be uploaded ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get the content of a dt element using jquery? I'm trying to get the content of the dt element using jquery.
var test_name = $('dt').text();
alert(test_name);
<dt> cycle_1 </dt>
This is not working. What I'm doing wrong? Meaning the alert message does not display.
A: <script type="text/javascript">
$(funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What effect does changing the process priority have in Windows? If you go into Task Manager, right click a process, and set priority to Realtime, it often stops program crashes, or makes them run faster.
In a programming context, what does this do?
A: It calls SetPriorityClass().
Every thread has a base priority ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Switch Background Image with jQuery animate When the user hovers over a div I have the background image change using the code below
$(document).ready(function(){
$("#f1_container2").hover(function(){
$(".photobg").fadeIn( 800);
},
function(){
$(".photobg").fadeOut(800);
});
});
That works fine but I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why does nmap show that my tcp server is not listening on the port it should be? I intend to build on this code, found here
However, I notice I can telnet to this server on the local host. Can't from another computer. I did a quick nmap scan, which reported that nothing was listening on the port I had selected.
For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Removing an object from the duplicate ArrayList only I've copied an ArrayList over as so:
MyList2 = MyList1;
In an attempt to load MyList2's objects with the ones which MyList1 has.
Now as I iterate through MyList2, I it.remove() some objects, but this is causing a concurrent modification exception elsewhere on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Efficient Methods of Rapidly Redrawing a Map (Java / JPanel) I'm currently working on a simple 2D top-down shooter in which you maneuver your character around a map. The graphics are still very much in the "testing" phase (solid colors and rectangles). The drawing process is as follows:
*
*I have the map (this i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Facebook Android SDK Wall Stream I am developing an application for a client who wishes to display their Facebook wall posts in the application. The Facebook SDK examples do a wonderful job explaining how to allow users to sign in, but this is not the functionality I desire. I only wish to stream information from a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .htaccess cache static content (unless modified)? Was wondering is this possible in .htaccess?
I'm currently caching .js, .css and all image files via PHP (and providing the cached only if the file has not been modified by checking the filemtime()).
However someone suggested it's possible via .htaccess and much fast... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Google App Engine (Java) Datastore Statistics API causes error I'm trying to implement Google App Engine's default Datastore Statistics API example:
http://code.google.com/appengine/docs/java/datastore/stats.html
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does "each" function work in Ruby (and therefor Rails)? In the book I'm reading to learn Rails (RailsSpace) , the author creates two functions (below) to turn all caps city names like LOS ANGELES into Los Angeles. There's something I don't get about the first function, below, however.
Namely, where does "word"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: matching double quote in preg_match I want to match the pattern below and obtain the word target.
INPUT TYPE="HIDDEN" NAME="TITLE" VALUE="target ">
I try this but in vain.
preg_match('@(?:<INPUT TYPE="HIDDEN" NAME="TITLE" VALUE=")(.*)(?:">)@',$data,$matches);
I think the problem is because of double quote
I als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how do i call a webservice using phonegap for android How do I make a webservice call from my phonegap app? I found two javascript libraries one from IBM and another IvanWebService http://wiki.phonegap.com/w/page/43725416/SOAP%20Web%20Service that allow you to make such calls but i couldnt get them to run any of my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: problem with asp.net redirection after login to admin page I built a simple site which has an open section and admin page, which you can get to, only after loging in.
I implemented the default asp .net login control.
The problem is, after successful login (the login page is called admin.aspx) I want to redirect to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python script or applescript to get active pdf in foreground window, open in another application I'm interested in writing an OS X service and figured python would be the easiest way. Is it possible to write a script to get the active PDF in the foreground window of any app, and then open that file (or a copy) in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is there a way to add current working directory/current git repo/branch in terminal prompt for Mac first time poster.
This came up in conversation at work this week...
Is there a way, when you connect to git remotely that you can get display current working directory/current git repo/branch in your terminal prompt?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Close window as soon as it opens I am using the facebook dialog feed to allow the user to post a message to their wall.
You must provide a redirect_url for the page to redirect to after it has submitted,
I want on the page it redirects to to have some code which simply closes the windows.
I tried using
<html><head>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Kohana : how to get the sub-request's (HMVC) cookie changes I use the following code to perform sub-request in HMVC structure:
A request to "page1" will make a sub-request to "page2" by the following code:
$request = Request::factory('/page2')
->method(Request::POST)
->post($postData)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I insert a variable result into a string in C++ I just started learning C++ in Qt and I was wondering how can I put a variables result in a string? I'm trying to use this for a simple application where someone puts their name in a text field then presses a button and it displays there name in a sentence. I kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to generate with ruby interpolation? I have a need to generate an html id using some .erb code. Specifically, I want to use the row and column index of a cell in a rectangular array (made out of a table of cells). I have a method cell.web_id, which constructs a string thus:
"r#{row_index}_c#{column_index}", ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getOwnerActivity returns null in custom dialog I write a custom dialog and try to get some data from its parent activity, but I always get null when I call getOwnerActivity, could anyone tell me why this happen? Why I can show the data in the DemoDialog while failed to show data from TestDialogActivity?
Many thanks ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: how to perform a post through chrome extention? How can I perform a post through the chrome extention, lets say I want to send the current tab page title to a webpage
A: You can do POST XHRs from chrome extensions to any URL, as long as you have host permissions defined in your manifest. See these docs.
A: In a ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ado.Net - How to use connection pooling? .Net allows connection pooling which based on what I've read is simply by adding parameters to App.config
The question is, am I suppose to do anything in my code to use the connection pool?
In my code I open a connection every time data is needed and I close it as soon as I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cannot find settings to change moderation options Ok- new to this today. Two major issues:
First- I am setting up a FB comments box for each of the pages on my website. I have followed step by step and have created an app so I can mederate all of the comments at once rather than page by page. Problem is when I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NSNumberFormatter Won't Accept Zeros After a Decimal Point Similar questions have been asked but I find that the offered solutions don't work with the latest iOS SDK or are not exactly applicable in this particular case.
I call a method using an NSNotification, that formats a number with grouping symbols in a UILabe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting margin and padding for in css? I can't seem to get the CSS to modify my radio buttons. Their default settings aren't symmetrical so my layout looks a little ugly. I am generating a bunch of these forms with javascript. I do not want to inject large amounts of inline style='margin:0px padding:0px' stuff but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python CGI - Change data based on user time zone I have a Python CGI program which prints datetime values. The timestamps are all formatted to the server's time which is way off from the local time of some of the users. How can I format it automatically for all users based on their time zone?
Here is one of the form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to put two Lambda expressions inside a single query? I was wondering if there is an easy way to place two Lambda expressions in a single (Linq/Where) query?
For example, I currently call a method with something like the following:
string testing = "blablabla";
if(testing == "" || testing == null)
I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ubuntu 8.04 Hardy and node.js upstart script I am trying to write an upstart script for my ubuntu machine, which is version 8.04 "Hardy". I have followed the instructions on this site: upstart for node.js but it seems like these instructions are for a current version of ubuntu.
I noticed that the /etc/init direc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get data from a forum thread? I'm starting in Curl / php and I'm really enjoying what it can do. Although, I'm blocked for several days on something and I really need help.
There are some peculiar datas I need to grab and treat with another script thanks to a txt file.
The datas are proxies posted on my forum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to dynamically create named classes in Coffeescript without using eval? I want to be able to write:
generate 'Cat', 'meow'
and define the generate function in such a way that it produces:
class Cat
meow: ->
@.__proto__.constructor.name + ' says meow.'
so that I can write:
garfield = new Cat
garfield.meow(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Help needed in refining PHP search I am trying to create a php search engine which can refine search results based on time similar to google's search refine but with a select dropdown without a submit button.
I am using sql server as database with pdo-sqlsrv driver. The regular search works great. I have problem on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: How to put the value of a variable inside a new LI element? How do I put a variable name inside an li tag?
For exmaple,
var test_name = $('dt').text();
$('#test_div').html('<li> test_name </li>');
This is not working. What am I doing wrong here. It displays test_name not the value of test_name.
A: You need to bui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ‘Cannot modify header information’ at the very first line I'm getting this very weird error. I call it weird because the full error is
Cannot modify header information - headers already sent by (output started at [...]/user.php:1)
As you can see it says that the first line of the script prints something, therefore ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++11 with Xcode on Mac OS X Snow Leopard I have project that is at times developed on Windows/Visual Studio 2010 and uses some C++11 features and I need to be able to develop/build on Mac OS X. When I tried to build the project with Xcode I got a lot of errors around new C++11 features and checked the gcc version t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How To Parse Multipart HttpWebResponse I'm completely lost on how to parse this multipart httpresponse. This is the format that I receive:
MIME-Version: 1.0RETS-Version: RETS/1.8RETS-Server: Interealty-RETS/1.5.247.0Transfer-Encoding: chunkedCache-Control: private,private, max-age=0Date: Sun, 25 Sep 2011 00:45:51 GM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: no-jk Equivalent in mod_proxy I've always used Apache + Tomcat via mod_jk. To tell Apache not to forward /recources to Tomcat, you just put this in vhosts:
SetEnvIf Request_URI "/resources/*" no-jk
How do you do the same thing with mod_proxy. If it matters, I'm using the bitnami tomcat stack and there is a tomcat.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there such a thing as a SECURE client side password encryption? Client side encrption of user password->>
I have searched for an answer to my question on this site but there is nothing specific to my question and was wondering if someone could shed some ligth.
*THE QUESTION***
Would it be possible (and secure) i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: for each loop inside a if statement? I've been getting an "illegal start of expression" error when trying to compile this for loop inside a if statement in java. Does anyone have any idea why?
if(letter.equals(" ") || letter == null ||for(String a: array){ letter.equals(a);})
A: Try
if( letter == null || letter.eq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS: Submit button looks smaller than text input and textarea I just noticed this strange rendering of a very simple form.
Here's my markup/CSS: http://jsfiddle.net/a9PLM/
As you can see, text fields and the button share the same styles but their size is quite different.
Why does this happen?
Thanks!
A: This is bec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Homework: "Exception in thread "main" java.lang.NullPointerException" Okay so I have a homework assignment. I thought I had everything good on it, and I am getting an
"Exception in thread "main" java.lang.NullPointerException at HW3.main<HW3.java:18>
That line is:
tempMembers[i/4].setFirstName(args[i]);
Now I am s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to select elements row-wise from a NumPy array? I have an array like this numpy array
dd= [[foo 0.567 0.611]
[bar 0.469 0.479]
[noo 0.220 0.269]
[tar 0.480 0.508]
[boo 0.324 0.324]]
How would one loop through array
selecting foo and getting 0.567 0.611 as floats as a singleton.
Then sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Rails - Problems refactoring controller's nested attribute creation I have models:
Transaction has_many :credits, :debits
Credit belongs_to :transaction
Debit belongs_to :transaction
Each credit must have a balancing debit and vice versa.
I currently (successfully) achieve this with the following inside Transaction... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding detailed text in QMessageBox makes close (X) button disabled I noticed an interesting thing - if I add a detailed text to QMessageBox (which adds "Show Details..." button) then executing it will show the system frame's close (X) button disabled and hence marking this window as non-closable (right click on fra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: iOS: executeFetchRequest:error: A fetch request must have an entity I developed an application targeted for iPhone and it uses CoreData. All is working ok when I run it on the simulator, but when I run it on the device I'm getting the following error:
"*** Terminating app due to uncaught exception 'NSInvalidArgume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using GET for the values of two text inputs I am having some difficulty getting the values of two text inputs:
<form action="search.php">
<input type="text" name="q1">
<input type="text" name="q2" >
<input type="submit" name="submit" value="Search" />
</form>
This is the search.php page:
$q1 = @$_GET['q1'];
$q2 = @... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook RSVP to an event using jQuery / JavaScript I've been trying this without success. I've already gotten the user's authentication with event_rsvp permissions, as well as an access token, yet each time I try to RSVP to an event, it doesn't work. I call the following on a button click:
function attendingEvent()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Issue with Checkboxes in Wicket I am finding an issue in getting the checkboxes count that are checked by default using,
item.add(new CheckBox("selected",new PropertyModel(this, "checked")).setEnabled(false));
Any help is appreciated.
My Listview class:
ExampleListView(String id, List<Extended> lists, PageParameter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Writing a binding to libpcap with Python 3 I've been banging away at this for a while an I'm unsure of the issue here. For some reason my device is being changed and I'm unsure why. I suspect it has to do with how I'm mapping the libpcap libs to ctypes because the same program written in pure C works just fine on my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to sync Code-first Entity Framework 4 built database with Membership on remote server I've started building a ASP net MVC 2.0 web application using SQL Express 2008 R2. I'm hosting the application on somee.com.
I decided to use Entity Framework 4 with a code-first implementation of the database as to be able to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Non-bootable Win 2003 Server--need to find ODBC settings I inherited a problem. I have a Windows 2003 machine that will not boot. I really just need to view the ODBC setttings from this drive (i.e. win 2003 boot drive). I was able to mount and access the drive from Win 7.
My plan was to:
1. Launch regedit from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Iterate through lots of records and aggregate an integer property in Google App Engine - java Google App Engine - Java - JDO
I'm storing an object "Bucket" in the datastore that has a field/property of "totalsize" - an integer that is an aggregate of all the size of the associated blobs of the Bucket. Each Bucket ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fadeout on hover effect in iPad I tried to use the fadeIn and fadeOut effect as you can see in this page:
http://www.lifetime-watches.com/gal-w.html
var titleString = $(this).find('a').attr("title");
$("#title").html(titleString).fadeIn(100);
;
So when they run the script the title of the image would fade in in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: touch issue advice Hi guys i have a issue with my code.
I have 6 sprites that moves from bottom and to the top. 3 of the sprites can be touched. When i touch that sprite counter will increate +1 and that sprite will be removed.
The problem I'm facing is that when i select that sprite the counter increase to 1, but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating new files on SD card: Permission denied. I've tried all solutions? I am sure that I have added permission WRITE_EXTERNAL_STORAGE in manifest.xml, and I have also checked the state of SD card using Environment.getExternalStorageState(), makeing sure the value is Environment.MEDIA_MOUNTED, not Environment.MED... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I override default privacy setting using Facebook API? I got default privacy setting set to Custom (Only you) in my facebook.
Then I have the following code to create a photo album:
$privacy = Array('value'=>'ALL_FRIENDS');
$privacy = (object)$privacy;
$albumDetails = array(
'name' => 'My album name',
'pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle keypress events in a Qt console application? For example, that when you press "Esc", the application ends.
A: Here is a workaround for linux. Using these posts
Capture characters from standard input without waiting for enter to be pressed
https://stackoverflow.com/a/912796/2699984
I've made it like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Internal anchor links break scrollbar with Tiny Scrollbar plugin Help! I'm trying to build a webpage using the excellent Tiny Scrollbar from www.baijs.nl. However, i need to add some internal anchor links to jump down to the appropriate section of the content but this is proving to be a problem. (All the content, in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IIS 7.5 Rewrite URL with Reverse Proxy from a default web site to two web sites failed I want the users to access my intranet test website - http://mywebsite:9090 if they type http://mywebsite/test.
I am following section - 7. Reverse Proxy To Another Site/Server in http://blogs.iis.net/ruslany/archive/2009/04/08/1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to convert WebResponse.GetResponseStream return into a string? I see many examples but all of them read them into byte arrays or 256 chars at a time, slowly. Why?
Is it not advisable to just convert the resulting Stream value into a string where I can parse it?
A: You should create a StreamReader around the str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Will I see decreased network throughput if I bind many sockets on the same port? I am creating 3 sockets(sender sockets) to send my data to a remote single socket using UDP.
I have bound all these 3 sender sockets on the same single port.
Will this design of binding all the 3 sender sockets on the same port decrease... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Controller's Action name in View What is the correct way to get the name of the Action returning the View in MVC3?
I am using ViewContext.Controller.ValueProvider.GetValue("action").RawValue to return the name of the Action (Method), which is creating the View in MVC3. I return this in a Partial View, which is i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Explanation of plain SQL to get user_meta from Wordpress I have below SQL command that works to get user_meta details in Wordpress. This works fine to get the data in one table and one row per user info with info for each user in each column but I'm just trying to find out how this works. Can anyone be kind enough t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Shortcut key to open a class or a file in VS2010? I've googled around for an answer to this - can't find one.
In Intellij, if you want to open an arbitrary class, you press ctrl-n, you get a little text box where you can type the name of a class or just the camel caps initials or some wildcards.
Same with files - ct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: EF Gives Odd Property Names in Entity I've created a Companies table with foreign key (ParentCompaniesId) to the primary key of the same table.
When I generate an Entity Framework model from the database, it adds a ParentCompany property, just as I want. However, it also adds a collection property called Companies1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.