text stringlengths 8 267k | meta dict |
|---|---|
Q: SQLite - Select and Integer type I have a problem.
I want to access to an specific register in a SQLite table.
String[] campos = new String[] {"codInterno"};
String[] arg2 = new String[] {strId};
Cursor c = db.query("Incidentes", campos, "codReg=?", arg2, null, null, null);
so I need to hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get my wifi hotspot ssid in my current android system I have a problem that I couldn't find my wifi hotspot ssid in my Android system.
I found many information from google, but nothing helpful.
Please help me to solve it.
A: Here: http://www.androidjavadoc.com/2.3/android/net/wifi/WifiManager.html is the ful... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: CanvasAuthorize C# SDK Infinite Loop I'm looking to try and get an MVC3 Canvas app working with the Facebook C# SDK, but am struggling to allow permissions - Below is my code, and when I open the app I get the 'Allow / Deny' dialog but when I click allow I get redirected to my app and the same dialog appears again ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP recursion issue My idea is simple: if child->indent, if parent->make bold.
Lets say p0 is the parent of p1 and p2, p3 and p4 are the childs of p1. p5 is the independent page like p0. So what i wanna get is
p0 (bold font)
[3px]p1(bold font)
[ 6px ]p3
[ 6px ]p4
[3px]p2
p5 (bold font)
The problem is, I can't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Update products programmatically in Magento I'm working on a script that will create or update products in my catalog.
The script works fine when the product needs to be created, but it fails when the product already exists in the database giving me (many times) the following messages :
2011-09-30T08:00:53+00:00 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Servlet 3.0 finalise? Is java servlet 3.0 finalised yet? I'm trying to implement comet and it would be a good idea to move on to Servlet 3.0. But I'm not sure if it'a way to move forward yet.
Thanks
A: Yes, it's finalised since 10 Dec 2009.
http://jcp.org/en/jsr/detail?id=315
A: Yes it is:
Final Release: 10 Dec,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: T-SQL - CROSS APPLY to a PIVOT? (using pivot with a table-valued function)? I have a table-valued function, basically a split-type function, that returns up to 4 rows per string of data.
So I run:
select * from dbo.split('a','1,a15,b20,c40;2,a25,d30;3,e50')
I get:
Seq Data
1 15
2 25
However, my end data nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WinForm ListView Layout Issues enter code hereI'm having an issue with setting the layout for my ListView. I must be missing something simple.
All I want is a list that has one item per row and instead its making the list run from left to right.
public Form1()
{
InitializeComponent();
Items = new List<Item>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: difference between using extern and using a getter? I have a camera class that sets up two variables - a projection and a view matrix. I could either make these extern and include the header in anything I wanted to have access to the variables, or I could make a getter for them / pass references for these variables ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Verifying a method called with certain derived parameter Consider the following snippet;
public enum ReportType {Monthly,Quarterly}
public class BaseReport
{
public ReportType ReportType {get;set;}
}
public class MonthlyReport : BaseReport
{
public String month = "January"
public MonthlyReport() { ReportT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use Zend_Db_Table with multiple schemata and multiple deployments? My boss wants the application we are currently working on to be split across several schemata in the database, because he wants multiple applications -- some of which I have no control over -- to be able to access the data, following a namin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing Data in Httphandler sent using post request I have created a httphandler. Everything is working fine If you take the request type GET. But I really don't want GET request due to security reasons.
I am making a POST request using Jquery using following code:
$.ajax({
type: "POST",
async: fal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to analyze a java thread dump? I am trying to understand more about java, especially about memory management and threads.
For this reason I have recently found interest in looking at thread dumps.
Here are few lines taken from a web app using VisualVM, a built-in tool for java:
"Finalizer" daemon prio=8 tid=0x02... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "105"
} |
Q: SQL Server CE - bad performance I'm developing an application that uses a SQL Server CE database and I am having trouble with the performance of the queries. For example, a simple query that gets the customer's last order:
SELECT
Customer.Name, Orders.Amount AS LastOrderAmount
FROM
Customers
LEFT JOIN
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Choosing a clever solution: SQL Server or file processing for bulk data? We have a number of files generated from a test, with each file having almost 60,000 lines of data. Requirement is to calculate number of parameters with the help of data present in these files. There could be two ways of processing the data : ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Regarding an example illustrating the usage of generic class syntax In thinking in Java, page 566 gives the following example.
class CountedInteger {
private static long counter;
private final long id = counter++;
public String toString() { return Long.toString(id); }
}
public class FilledList<T> {
private ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GWT Spell Check I would like to implement a "spell check" for my GWT rich text area. I do understand that Firefox and other browsers automatically highlight words with misspellings, but I need to be able to warn the user before they submit a form that there are potential misspellings if they ignore the "squiggles".... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: formulating an SSRS query to include zero/empty rows in a GROUP BY I'm working on a SSRS report and I'm having an issue with my Plant name not showing when there is no data available for the date range selected.
The far left column, first row (technically the 2nd by the image) is where my plant name should appear a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I pass parameters to an asp.net function from an asp.net control inside an itemtemplate I have a vote button in a repeater and I want to use it by giving the post id which is in the same itemtemplate in a repeater/datalist. I can't pass the value I get from Eval() to the codebehind function because it takes 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pixel precise positioning and different browsers I am making one simple horizontal menu with CSS and simple unordered list. The HTML of the menu is following:
<div id="navigation">
<div id="nav-holder">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get large photo URL in one API call? I want to display large photos in my Facebook app's feed view immediately. Is it possible to get the large photo src URL from a stream/feed using one API call? The photo id is returned in the stream/feed and one can of course then supply this photo id in an additional FQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: How can I programatically recreate these Websphere logs due to Unsynchronized access to HashMap We have few components in our project extending the HashMap
Due to unsynchronized access to the HashMap object we are getting the logs like the below one in Production:
ThreadMonitor W WSVR0605W:Thread "webcontainer:5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: RuntimeException with PreferenceScreen and Custom Attributes from inside a Library Project I recently split my project and created a library project and a main project. Having a preferences screen that has custom attributes, i removed the preferences with custom attributes from my preferences.xml, put them ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows symbolic link ASP.NET app repository We are hosting huge app for our cutomers. There are diffrent configuration and contents (images, user files). But the core code, directories structure, databse scheme is this same for every client.
I'm looking for a way to create one core code repository, so all clientes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My div does not exists after loading my pixel I have a pixel and when I load it, it says:
a call to document.write() from an asynchronously-loaded external script was ignored
and then displays:
document.getElementById('gospixel') is null
Here's my pixel code:
<script name="gospix" src="http://www.example.com/p/gos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: php scanning content for specific keywords As part of a CMS admin, I would like to scan new articles for specific keyphrases/tags that are stored in a mysql db.
I am proficient enough to be able to pull the list of keywords out, loop through them and do stripos, and substr_count to build an array of the found keywo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deploying Jenkins within Glassfish throw Exception I'm trying to deploy Jenkins 1.432 to GlassFish Server Open Source Edition 3.1.1 (build 12), running in Ubuntu 10.04.
It throws this error:
java.lang.RuntimeException: Installation Problem??? Couldn't load messages: Can't find bundle for base name com.sun.org.apac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone-MPMediaPlayer disable seek forward button I would like to remove or disable the seek forward button from the MPMediaPlayer.
I have tried to enumerate all the views but apparently I could not find this button.
Does anyone have any idea?
Thanks.
A: You could always provide a custom control panel, you can hide ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Telerik RadGrid Visible Property Not Working as Expected I have two image buttons that hide and show a radgrid depending on what the client wants to see. When a button is clicked, the grid.visible property is set to true or false. The problem is that when I click the button the first time, the page posts back and do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Text floats out of its div I'm dealing with a text who goes out of its div. I've coded the frontpage. So, no matter how long the main content is, it should force the sub-content (the grey area and the footer) to move down.
You see how the dummy text is acting
URL http://nicejob.is/clients/pizzahollin/www/divproblem.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: DataGrid.Items filled with Null data I'm trying to fill a asp.DataGrid with data from a DB2 database. The problem I'm getting is that the data is coming back null. The weird thing is, the records themselves (seem to) load from the database, as when I step through the code while debugging, the DataGrid.Items.Count ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Importing csv into Numpy datetime64 I am trying out the latest version of numpy 2.0 dev:
np.__version__
Out[44]: '2.0.0.dev-aded70c'
I am trying to import CSV data that looks like this:
date,system,pumping,rgt,agt,sps,eskom_import,temperature,wind,pressure,weather
2007-01-01 00:30,481.9,,,,,481.9,15,SW,1040,Fine
20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to custom init an EAGLView? In my iOS project, glView ends up with height=0 and width=0 even though CGRect frame correctly gets the screen's dimensions in the previous line.
- (void) applicationDidFinishLaunching:(UIApplication*)application {
CGRect frame = [[UIScreen mainScreen] bounds];
EAGLV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MS Access 2007 Append query trouble I have an append query that is trying to append some records to one of my tables. However, I am getting an error that says “didn’t add 1200 records due to key violations.” 1200 is the total number of records I am trying to append. I don’t understand why I am getting this error bec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create WCF service client with specified address without specifying configuration name Is there a way to create an instance of a WCF service client in C# with a specified endpoint address without specifying a configuration name?
By default, clients have these constructors:
public ServiceClient()
public Serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Jqgrid Master Detail don't send the appropriate info I'm searching about my problem here and find some tips, but doesn't work anyway, my problem is this:
In the jqgrid Javascrip, I send as setGridParam this: {url:'myurl/myfunction/'+ id, page:1, datatype:"json"} but, the Jgqgrid still doesn't sending to my controlle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How add custom text to AddressBook contacts in iPhone? I have working in a app for iPhone and I am getting de AddressBook contacts. I got it access to contact, but I wish add some text in some contacts (like WhatsApp), something like this:
Could someone help me please? Thank you very much.
A: See the Table View Pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Should I use one form on page or generate a form per item? I want to display a list of items. Each item would have an edit and a delete icon next to it.
For obvious reasons I want to trigger the delete action with HTTP POST.
With jQuery, I would bind links to trigger form.submit.
However I'm not sure if I should ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SEO URL rewriting ASP.NET I already have an ASP.NET Web Site
I want to change my site to be more SEO url friendly.
I want to change ex. this site:
www.mydomain.aspx?articleID=5
to:
www.mydomain/article/learningURLrewrite
- articlename needs to be read from DB
How do I accomplish this?
I have already tried with some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Java EJB interfaces Could anyone explain me how do the functions inside the HOME and REMOTE interfaces relate to the Bean object?
The interfaces are instanciated so that the functions are used. But the functions body rests only in the Bean object. What am I missing?
A: The actual EJB instances will typically be ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Show LiteralControl in GridView dynamically I create an html and set it to a literalControl.
Then I'm trying to insert this literalControl in a repeater's ItemTemplate.
But when I do this, it is seen as "System.Web.UI.LiteralControl" text, not the html inside.
Here's the code:
<asp:Repeater>
//SomeColumns
<I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Array within a cell I have a cell that contains an array of characters seperated by commas i.e. "1,2,3,4,5" My question is, is it possible to remove a particular element of the array such as if I wanted to remove "1" then the cell would then become "2,3,4,5" or remove "3" and it becomes "1,2,4,5" I want to perfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reliably Sending Emails Through Gmail SMTP I have a C# application that sends emails through smtp.gmail.com. If I ever send about 20 emails, I start getting errors like
The server response was: 4.7.0 Temporary System Problem. Try again later (WS)
Usually, about 17 messages out of 20 ever end up getting sent.
Note... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Handle APNS Remote Notifications while in Background I have implemented all recommended methods in AppDelegate to get working Remote Notifications service.
I can accept them while running, while launching and while turned off.
But there is an issue, since I can't work with many received notifications while in backgr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Jquery: probleme with $.ajax (json datatype) I have a problem to refresh a bloc in my page.
Here is the request:
> $("#pwd_lost_link").click(function(){
alert('1');
$.ajax({
type : 'POST',
url: 'test.php',
dataType: 'json',
data :{"nom" : "akbar"},
success : function(data){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Checkout the git commit corresponding to a certain revision from the old SVN repository? I migrated my repository from SVN to git. I used
THIS site. Now I have a bug in revision X. How do I checkout from my git repository, knowing only the revision number from my old SVN repo?
Thank you for your Help.
A: You can f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Refining results of an existing search query in Android In my Android app, I want to execute a query against a content provider, and then refine that search (I have two WHERE clause strings). The records that should be returned by the second query are a subset of the rows returned by the first query.
My current solu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: real time output in php
Possible Duplicate:
How to make For Loop Real Time in PHP
I think when we run php script,web server wait until end of script and after that will return output. for example if following script doesn't have output.
set_time_limit(0);
$i = 0;
while(1) {
$i++;
if ($i%10 == 0)
e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Caching in a console application I need to cache a generic list so I dont have to query the databse multiple times. In a web application I would just add it to the httpcontext.current.cache . What is the proper way to cache objects in console applications?
A: In a class-level variable. Presumably, in the main metho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: wordpress image path changing dependent on file I'm having problems with the paths to my first wordpress theme. Post images and stuff not related to css is located in wordpress_folder/blog-images/ and in index.php when I link to images I use this path: blog-images/img.jpg
The problem is now that when I want to link ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Monodroid - GC.Collect fails without any reason I have an application with 4 tabs (TabActivity). By some reasons I call GC.Collect every time user switches tab (overriding OnPause Activity's method). Sometimes (approximately 1 time from 50-100 calls, but sometimes this happens when application just started) my appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Express/Node.js - How to save an array of objects within one Model
Possible Duplicate:
Mongoose - Form to save model with embedded documents
I have a simple Mongoose schema with BlogPosts and Feeds embedded within those BlogPosts. So each BlogPost can have several Feed objects. Right now my HTML form allows me to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I recognize EOF in Java Sockets? I want to recognize end of data stream in Java Sockets. When I run the code below, it just stuck and keeps running (it stucks at value 10).
I also want the program to download binary files, but the last byte is always distinct, so I don't know how to stop the while (pragmatic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Benefit of having an abstract class implement an interface? I recently asked this question on if I should implement interfaces or abstract classes. Scottm gave answer suggesting I use both, but I am still unsure why I would want to do this. Is there a benefit in the long term? What are advantages of doing it that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: rails 3.0.3 activerecord wants to pluralize certain mysql tables all of a sudden This is in development mode. ActiveRecord::StatementInvalid. This is an example: I have a model called DisplayAds. Now activerecord wants to query the table as display_adses instead of display_ads. I have another model called Media. A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript class inheritence I am trying to learn how to work with 'classes' in javascript.
Here is my code:
function Shape(x, y) {
this.x= x;
this.y= y;
}
Shape.prototype.toString= function() {
return 'Shape at '+this.x+', '+this.y;
};
function Circle(x, y, r) {
Shape.call(this, x, y);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the most efficient and concurrent way to implement a public API for an existing command-line program? An existing command-line program generates some output when called with some parameters, and then exits.
I would like to modify this program to run on an event loop, and listen through a public API (could be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Threadreference.isalive = true but in the threads window its location is [In a sleep, wait or join] I have a simple function that launches a thread with a modal form and then waits to the form to be closed.
private static bool GetSomeText()
{
Thread threadx = new Thread(GetSomeTextx);
threadx.Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: django url tag: Caught NoReverseMatch while rendering #urls.py
places_url_regex = ur'''
^places
(
(?:/types/(?P<types>\d+(?:-\d+)*))
|
(?:/cuisines/(?P<cuisines>\d+(?:-\d+)*))
|
(?:/avg-bills/(?P<avg_bills>\d+(?:-\d+)*))
|
(?:/cities/(?P<cities>\d+(?:-\d+)*))
|
(?:/sectors... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS3D Transforms: Losing element interactivity I'm creating a 3D cube that can be rotated with keyboard controls. But after rotation, portions of each face lose interactivity (mouse events don't register on contained elements). Anyone know what might cause that issue?
It's difficult to explain, so here's a link to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL select all last added query Im trying to select all the items that are recently added.
I have to find what is the last added exam (sometimes more that one as shown below)
Here is an example of the DB.
id name start_date end_date duration
4 Exam August 2011 24.8.2011 0000-00-00 20
3 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use variable across contexts in rspec In below code every call to subscriber_with_99_users creates a new subscriber with 99 users, which I don't want. How can I fix this to only create the subscriber once and return it in all subsequent calls or is there a better way to do this.
describe "#as_json" do
contex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scrollable div inside table cell using css I want to be able to set a max width on the div and have the overflow be handled with scroll-bars.
This works in FF, but not in IE or chrome so well... the scrolling part seems to work OK but the width of the table doesn't adjust like it does in FF, the width is still accou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django - coercing to Unicode I am having a unicode problem and, as everytime I have something related I'm completely lost..
One of my Django template renders a TypeError :
Exception Value:
coercing to Unicode: need string or buffer, long found
The line giving trouble is just a string ( which I want to use in a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upgrading Team Foundation Services (TFS) Currently our company is using Team Foundation Server 2010, and we have quite a bit of source code in our repositories.
Although I am not a big fan of TFS, we are still continuing to use it. I do have hope for TFS 11, but I wanted to know:
*
*what needs to be done to make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Singletons, Enums and anonymous inner classes As you may know, some people are declaring singletons with an Enum of 1 instance, because the JVM guarantees that there will always be a single instance with no concurrency problems to handle...
Thus what about an Enum with multiple instances?
Can we say something like a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to select every n-th element from a list
Possible Duplicate:
How to get every Nth element of an infinite list in Haskell?
Simple task - we have a list and want to leave only each nth element in that list.
What is the most idiomatic way to do it in haskell?
off the top of my head it is something like:
dr n [] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Understanding functions hooks This is my first post in stackoverflow, eventhough I'v been reading here for more than a year.
I would like to ask some questions about function hooking, and would be really glad to have some answers.
Say I created an executable and I would like to hide it in the list of the task manage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cucumber: web_steps.rb I'm wasting my time here and I can't seem to figure this out..
I have used Cucumber in Rails applications before, and if I'm not mistaken, it generates the features/step_definitions/web_steps.rb file when you run rails g cucumber:install. Right?
I looked this up in a book I was using a while ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: BlackBerry screen shot utility - from a desktop computer I am looking for a screen shot tool that I can use to capture screens from my BlackBerry Tourch 9850. I have tried using the included JavaLoader utility with my SDK but I receive "Retrieving screen <active> data ... Error: buffer too small" errors. I have al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Number of parallel instances of my process (app) Is there some portable way to check the number of parallel instances of my app?
I have a c++ app (win32) where I need to know how often it was started. The problem is
that several user can start it parallel (terminal server), so i cannot search the "running process" l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP If folder exists do a loop for each subfolder I am trying to get my code to work. I basically check that if a folder exists, and any sub folder exists within that directory called 3 or more (3,4,5) then do a loop, otherwise nothing.
// the folder path
$folderPath="".cdnurl."assets/".pid."";
// looks like site.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: BigInteger to String according to ASCII Is there a way to convert a series of integers to a String according to the ASCII table. I want to take the ASCII value of a String and convert it back to a String. For example,
97098097=> "aba"
I really need an effective way of taking an integer and converting it to a Strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why aren't recursive calls automagically replaced by recur? In the following (Clojure) SO question: my own interpose function as an exercise
The accepted answers says this:
Replace your recursive call with a call to recur because as written it
will hit a stack overflow
(defn foo [stuff]
(dostuff ... )
(foo (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to use a case statement to determine which field to left join on I have a query that needs to be able to left join a field at the right place given the condition that the field is equal to a variable.
Something like:
CASE WHEN challenges.userID = $var
LEFT JOIN challengesRead ON challenges.userID = challengesRea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Rails Nested Forms With Images So I'm building a nested form with an Campaigns model and a Sites model where Campaigns has_many Sites. In my Campaigns form I have:
<%= f.fields_for :sites do |builder| %>
<%= render "site_fields", :f => builder %>
<% end %>
And then in the _site_fields.html.erb I have:
<div clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Creating tabs using Fragments now that TabActivity is deprecated I am creating an application which has five tabs at the bottom of the screen, each of which opens a different Activity.
My Tab Activity extends TabActivity which I have just read is deprecated and I should use Fragments instead.
How do I change my app ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Two divs: one fixed, other stretched I am trying to accomplish this:
But I am having trouble getting the two middle divs to play nice. If I set them both to a relative number (30% and 70%) it "works" but the left div changes size as the user changes the browser-windows width.
#floatitleft{width:30%; float:left;}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Redirecting back to my custom tab page's iframe app after auth I've got an app embedded in an iframe in a 520px wide custom tab page of my fanpage.
When it auths a user, it always takes them to the full-width canvas page for the app rather than the custom tab page. How can I resolve this please? It's driving me nuts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery autocomplete 'length' is null or not an object I'm building an ASP.NET MVC 3 application and I'm trying to properly incorporate the jQuery autocompletex into one of my pages so a user can type in an ingredient name or choose one from the dropdown.
I get this error:
Microsoft JScript runtime error: 'length' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web Site version control with Team Foundation System We have a Web Site Project, (not a Web Application), and we need a way to track version changes on web pages. The .dlls are no problem, the problem is keeping track of the current version of a web page in the production server.
Is there a way to do this with TFS? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue with asp.net validation control with IE? I do have a strange problem here with asp.net required field validation controls.To my understanding validator controls render client-side script for IE users so no postback occurs in case there's a problem with data entry. So when i was running my web app on my local m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: showing part of xml response in different DIV tags I have a AJAX response which looks like this
<XML>
<request>
<!-- some xml data related to request -->
</request>
<response>
<!-- some xml data related to response -->
</response>
</XML>
My requirement is to display whole xml under node in a DIV wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Strange results using android PHP API Library Using a PHP implementation of the java android market API I'm attempting to display the top 10 most popular applications.
Using the code below:
<?php
include("local.php");
include("../proto/protocolbuffers.inc.php");
include("../proto/market.proto.php");
include("../Mark... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Connect to remote MySQL DB (Linux) from Windows using MySQL Workbench. Remote DB Connection requires local Socket The Linux Server only allows connection over it's local socket.
--socket=/tmp/mysql5.sock
I want to connect to the Database using MySQL Workbench, but don't know how to specify the socket path there.
Us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: mozilla border gradient equivalent I made this idea of mine to work in Chrome but still failed to do so in Firefox.
Here is the concept that works in Chrome:
<ul>
<li>test</li>
<li>test</li>
<li>test</li>
<li>test</li>
<li>test</li>
</ul>
ul{-webkit-border-image: -webkit-gradient(linear, left top, left bottom,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a name for this concurrency pattern? The problem: we have critical path code that should never block. In many places it relies on configuration data, or similar, infrequently updated data from an external source.
When we need to reload configuration data, or refresh data from an external source, we don't wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Converting Bitmap to Binary Array performance I do have a Bitmap Array that contains more than 500 Bitmaps object. I need to convert each single Bitmap object within the Array into a binary Array. I'm using the MemoryStream class to achieve this:
using (MemoryStream ms = new MemoryStream())
{
images[0].Save(ms,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why does my jquery animation not function properly in chrome when using browser confirms and alerts? I'm seeing an issue regarding some jquery animation in chrome.
I'm wondering if anyone else has seen this.
I'm just trying to do some simple slide up to hide a div, or hide and then fade a div in.
The slide up animat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook JavaScript SDK for FQL with additional parameter Facebook deprecated FB.Data.waitOn and FB.Data.query and they recommend we use FB.api instead.
More info: http://developers.facebook.com/blog/post/561/
This sounds easy enough, but I can't seem to pass additional parameters with my FQL request without gett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: sending nested struct over UDP api that accept string I am using a UDP api that basically accept string parameter to be send only.
send_udp(str data, ip_address dest);
so the thing is that I have a struct below
typedef struct
{
int bmw_red;
}vm_car_type;
typedef struct
{
int numberofbuyin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set button state programmatically I define my button's states with
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" >
<shape>
<gradient
android:endColor="@color/orange_light"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Akka Cluster Java API sample I am pretty interested in testing out the 2.0-SNAPSHOT Akka cluster features, but for my purposes would like to do this in Java.
I have read through the example here: http://letitcrash.posterous.com/clustered-actors-with-cloudy-akka
But the API seems to have changed enough (Cluster.star... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which indices should be added to speed up queries on massive InnoDB table? Here is my table:
CREATE TABLE `letters` (
`a` bigint(20) unsigned NOT NULL,
`b` bigint(20) unsigned NOT NULL,
`c` bigint(20) unsigned NOT NULL,
`d` bigint(20) unsigned NOT NULL,
`e` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`a`)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fb.ui() popup works but dialog loads forever I want to ask a user to grant the "publish_stream" permission to my app with the facebook javascript sdk.
I initialize it like this:
FB.init({
appId : '203702512703',
status : true, // check login status
cookie : true, // enable cookies to allow the server t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHPUnit test case aware of symfony2 dependency injection container I'm actually testing a bundle that I created. All the code is fully unit tested but now, I want to test if my symfony2 services can be request without any trouble.
For that, I need the symfony2 dependency injection container in my test case. How can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Django Template does not exist in production server but is working in :8000 Hi guys im having a problem with my own django server (at home), django can't find templates, my error code django is looking in the correct place (/var/www/project/templates) but nothing happen
Template does not exist but all path are fine.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Cygwin emacs C-c is read as C-g I recently installed cygwin and emacs, and when I try to exit the program (by pressing C-x C-c) the minibuffer reads "C-x C-g is undefined". When I type C-c the minibuffer reads "Quit" just like if I had typed C-g. To the best of my knowledge, it's just reading the c key as a g in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ACTION_SEND and Google+ App in Android is there any way to share text from my android app by using ACTION_SEND and google+ app.
Has anyone try that, which mimeType should i write?
Thanks for your answers
A: I am pretty sure that Google+ app has intent filters for text/plain and image/*. Here's what they have in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: My tab menus exit the page width So I'm editting the CSS and the tab menu has a whitespace: nowrap property, which means it doesn't overlap but it ends up exiting the page. Setting the width of the tab menu itself does nothing even with !important and heirarchy CSS.
Looks like this
http://i.imgur.com/yxblJ.jpg
When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7599928",
"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.