text stringlengths 8 267k | meta dict |
|---|---|
Q: Javascript - Get Sound Data I'm wondering if any new HTML5 functions or existing JS library would allow me to access information about the sound that's currently playing in an Audio object. For example, I'd like to be able to access an array of ranges the a song is currently playing at (that is, low values appear fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: I am using fgets() to read in a line in PHP. But i am getting a wierd result? $size = intval(trim(fgets($fp,4)));
$triangle = range(1,$size);
for($j=0;$j<$size;$j=$j+1)
$triangle[$j] = split(" ",trim(fgets($fp,400)));
This code reads in the number of lines to read, then reads them one by one. Issue is, when fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android - Calculate Distance Using Haversine Formula (Using GPS , Lat and Long) I need some help :) I am assign with a project to come out with the distance / speed and time. I have already come out with the Timer. However, the distance is giving me some problem. The distance does not changed at all from I travel fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Advantages/disadvantages to using struct as a parameter while defining new API The APIs that I am writing are for a Ruby class that inherits from ActiveRecord. I am trying to write static methods to avoid leaking the ActiveRecord instance. All the APIs now need tuple to uniquely identify a database row.
Is it a goo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing grails "no conversion strategy" error that is not in message.properties Is there a way to change Grails conversion mismatch error to custom message?
I am getting:
Failed to convert property value of type java.lang.String to required
type java.util.Map for property items;nested exception is
java.lang.Il... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get day of the week from GregorianCalendar I have a date and I need to know the day of the week, so I used a GregorianCalendar object but I get back some dates that are incorrect.
GregorianCalendar calendar = new GregorianCalendar(year, month, day);
int i = calendar.get(Calendar.DAY_OF_WEEK);
What am I doing wrong?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Return string until matched string in Ruby How do you return the portion of a string until the first instance of " #" or " Apt"?
I know I could split the string up into an array based on "#" or "Apt" and then calling .first, but there must be a simpler way.
A: String splitting is definitely easier and more readable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Wordpress Dynamic menu highlighting if page belongs to specific category I'm looking for a way to dynamically highlight a menu item anytime a user is viewing a page that is assigned to a given taxonomy or category. For example a nav bar at the top with items "Products" and "Strategy". Any page or post that is create... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.net MVC: Execute Razor from DB String? I was thinking about giving end users the ability to drop Partial Views (controls) into the information being stored in the database. Is there a way to execute a string I get from the database as part of the Razor view?
A: Update (I forgot all about this)
I had asked this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Converting a parent child relationship into Json in python I have a list of list like the below. The first column is the parent, second is the child, and the third are node attributes. I need to convert the below to a JSON format like the following.
0 0 "flair" 1000
0 1 "analytics" 1000
1 2 "cluster" 1000
2 3 "Ag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: initiate class with an argument in class declaration in my object State, i'd like to have object pq. but pq needs to be initialized with a parameter. is there a way to include a class that depends on a parameter into another class?
file.h
class Pq
{
int a;
Pq(ClassB b);
};
class State
{
ClassB b2;
Pq pq(b2)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RoR3: How do I use the generator to generate views? I have this namespace:
namespace :manage do
# Directs /manage/products/* to Manage::ProductsController
resources :instructors
end
and I want to generate views in the appropriate sub folder and the controller.
What are the commands?
A: Just create the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Jquery AJAX with WebMethod removes zero from front I have following code. Jquery Ajax calls webmethod . If i pass zipcode "07306" it returns and sets session to "7306" . No idea why it removes zero from front!
function onChangeLocation(){
var newzip =$('#<%= txtNewLocation.ClientID %>').val();
$('#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I select a record from one table in a mySQL database, based on the existence of data in a second? Please forgive my ignorance here. SQL is decidedly one of the biggest "gaps" in my education that I'm working on correcting, come October. Here's the scenario:
I have two tables in a DB that I need to access cert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Run IDE, for Java, ON Android 3.1 I am about to purchase a tablet probably a Thrive. I need to know if I can write applications in Java, to use on a regular PC, on a tablet using Android 3.1. I am in school and I write a lot of applications using Java. I need to be able to write code using a tablet running Android 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Handling multiple grids with heavy data I am developing a website using asp.net 4.0(Browser IE8).My page contains a tabcontainer with 5 tabs .Each tab contains a grid without paging i.e each grid can contain 250 to 300 records. I am loading tabs on demand but once all tabs are loaded. My UI becomes too slow. How do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sass --watch not compiling I am running Sass from terminal like this:
sass --watch --style expanded css:css/compiled
I have these files:
*
*compiled.scss
*_style.scss
*_forms.scss
compiled.scss @imports the other two files
When I modify _style.scss and save it I get
Change detected to [path to file]
overwrite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Pass Sqlite Values in a view How to pass sqlite data in a view .I want to display sqlite data in a view controller,with paging enabled.I have a big amount of data in database,that i want to display in many pages.How to do this?
Thanks in advance.
A: You should probably use Table Views, should have googled ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript: Most effecient way to define variable to a function call, or if null to a variable? Using ternary operator requires two calls to the function.
var colour = (tryAdventurousColour() != null) ? tryAdventurousColour() : 'black';
Possible to do it in 1 line?
EDIT: Fixed syntax
EDIT: Like this but better
var ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails content_for overwrites rather than appends I load my stylesheets and js files in <head> for performance reasons.
My site has multiple components and each template wants to its own extra header files in inside <% yield(:head).
I tested <% content_for :head do %> .. but then I realize it actually overwrites ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I resolve a ZenTest-4.6.2 successfully installed & missing gem? I'm loosely going through http://ruby.railstutorial.org/chapters/ and am at the point of preparing to test http://ruby.railstutorial.org/chapters/static-pages#sec:testing_tools . I listed the autotest related gems in my Gemfile and ran bundle in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google Scholar with Matlab I would like to fetch some data from Google Scholar automatically via a matlab script. I am mostly interested in data like Google Scholar's Bibtex entries and the forward citation feature. However, it seems that there is no API for Google Scholar, is there a way to automatically fetch bibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Querying large dataset for statistics in SQL Server? Say I have a sample for which 5 million data objects are stored as rows in SQL Server. If I need to run some stats on the data, would it be better to have a table for each sample, or one giant table, where I would select by sample id and then run the stats?
There ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Opening another file from Python and terminate script I am trying to figure out the best solution to accomplish this. Basically, I want to open another program from Python (doesn't matter, could be an image, executable, etc). I have tried os.system and subprocess.call however both will not terminate the script after... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Null pointer exception with static Map It's 5am and I'm a bit asleep, so that may be it (also I'm relatively new with Java). But I don't see why this code generates Null Exception with this code. The map should be initialized by then, shouldn't it?
private static final Map<String, Integer> CONDS_MAP =
Collectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Devise + omniauth routing problem on Heroku I've been pulling my hair for hours on this one... I have a Devise and omniauth setup that allows users to log in with their Facebook accounts. I am using the following gem versions:
Installing devise (1.4.7)
Installing oauth2 (0.4.1)
Installing oa-oauth (0.2.6)
Installing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how could i change these code to MVC3 Razor how could i change these code to MVC3 Razor,it script code.
these code i get form http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-5-master-page-templates.html
it's MVC2 Template and i want change it to Razor.
<%@ Control Language="C#" Inherits="Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Expand functionality for rows in Richfaces DataTable I am looking for a way to implement a expand functionality to the rows of a Richfaces DataTable. The user would click a "+" link located in the first column (of each row) of the Datatable and the row would "expand" (meaning new text would be shown between the curr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UIView & Image Clipping in iPhone? Let said I have a image which the circle in the middle is transparent and I use the drawRect function to draw sqaure like the second image below.
Then what I want to do is to get the alpha layer of the first image, the circle as a path, then apply on the square i draw and clip it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I access the row in a RowCommand event I am trying to find a DropDown element in the GridView_RowCommand but it says that GridViewCommandEventArgs does not contain a definituon for 'Row'. I need to do this in this event because i am evaluating a GridView Command. See failing code below
protected void GridVie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: real time data updating from form I have a dynamic form that users enter receipt data. I'm trying to clone what they're inputting on a separate div that is designed to look like the receipt they're inputting. I want to display the values of the text and select elements into that separate div.
I was trying to do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7523996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Learning Core Data for iOS Development I have been trying to learn iPhone development for a while now. I am now interested in looking at building a iPhone app using Core Data. I built a app using sql lite. The app I created using sql lite basically asks the user for two fields of information "firstname" and "lastnam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can you sort tabs in Visual Studio 2008 by file type? I have been trying (without much luck) to write a macro for Visual Studio 2008 that will sort opened .cpp and .h files into two tab groups, placing headers on the left tab group and .cpp files on the right. I would love to have this feature because of the am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting a C# (Windows application) into commandline application? I am looking to convert a C# (Windows platform application) into a commandline version.
The scenario is: I have implemented a C# (Windows application) in VS 2010. The output of this application is to generate a txt (log) file (in simple explanation)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need some way to store functions in a list, and then call them This list, has to hold functions, they might be from different namespaces and even methods of instanced classes.
This list will then be iterated and all the functions and methods called. It would be nice if they could contain arguments also.
I was thinki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Getting started with tabs in Rails app I was researching here on SO how to implement a tabbed interface in my Rails app. For example, I like how Ryan Bates uses it in his Railscast overview page.
I want to mimic that in my Rails app so that a User's profile has a navigation in it with two or three links. Clicking e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: windows authentication using ajax I want to create an internal website, preferably in asp.net, that uses ajax calls for performing all operations.
The requirements are that the site should use windows domain authentication (to act as a single-sign-on solution) for verifying which user is sending the request. What i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to integrate barcode scanner directly on my app? Does anyone here knows how to to integrate barcode scanning directly into an application without having the separate ZXing application installed?
A: The complete source code to Barcode Scanner is here: http://code.google.com/p/zxing
As a developer of the library,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Drawing/coloring application - flood fill algorithm/clipping region I have to develop a coloring application. Basically the user is presented with an image. An outline of a character maybe and the user can fill it using different colors. I've looked at a few options but I can't seem to find a good one.
Could someone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change NSScrollView font from XCode 4 Interface Builder? Does anyone know how to change font in NSScrollView using XCode 4 Interface Builder?
Thanks for the help.
PS: This is for Mac OS development. The font panel for iPhone ScrollView can be seen in Attributes Inspector (as pointed by Khrisna below), but no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the items inside an array in Object Oriented PHP? I have the following variable available inside a view:
$recent_posts
It is an array so I performed a foreach loop on it and var dumped the result like so:
<? foreach($recent_posts as $post): ?>
<pre><?= var_dump($post) ?></pre>
<? endforeach ?>
This is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems with xmlhttprequest status 302 I am trying to get real path in link megaupload but always but this dont work.
function getRealURL(){
var st = new String("");
var req = new XMLHttpRequest();
req.open("GET","http://www.megaupload.com/?d=6CKP1MVJ",true);
req.send(null);
req.send(null);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to specify distance metric while for kmeans in R? I'm doing kmeans clustering in R with two requirements:
*
*I need to specify my own distance function, now it's Pearson Coefficient.
*I want to do the clustering that uses average of group members as centroids, rather some actual member.
The reason for this r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Mutliple domains same application, feedback please After watching the F8 keynote my company wants to use the options with the new open graph beta.
The situation:
The company is devided in 2 different sites, a record label and a artist management site.
Both sites have the same artists, but have different publish opti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby on Rails nested resource routing error I have a user, comment, and route model as shown:
class User < ActiveRecord::Base
has_many :routes, :dependent => :destroy
has_many :comments, :dependent => :destroy
end
class Route < ActiveRecord::Base
belongs_to :user
end
class Comment < ActiveRecord::Base
belongs_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: My Textfield UITableViewCell and my textfieldShouldReturn are not seeing eye to eye After selecting a cell and writing something in it, I would like to hit the return/next button on the keyboard and simply move to the next cell, that's what I am trying to achieve. But after placing a breakpoint on my method textfiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Websphere 7 form-based authentication ignored when classloader order PARENT_LAST I have a very simple web-application that integrates spring security with j2ee declarative security.
The important parts of the web.xml are shown here:
<security-role>
<role-name>ROLE_USER</role-name>
</security-role>
<security-rol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to give file level rights with SVN server I am currently using SVN for Source Control (Visual SVN server + tortoise SVN) and we are starting a new project in a large team.
I was wondering how to give commit rights on specific files or folder to a particular user.
We have given responsibilities for different modu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I change the full background color of the console window in C#? In C#, the console has properties that can be used to change the background color of the console, and the foreground (text) color of the console.
Console.BackgroundColor // the background color
Console.ForegroundColor // the foreground/text color... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Windows Form code not executing? Ok, I've got a weird one here. I'm trying to make a basic tile engine using a windows form, but some of my code is just...not happening. I'll post the chunks in question.
private void MapEditor_Load(object sender, EventArgs e)
{
LoadImageList();
FixScrollBarScal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel - VBA Question. Need to access data from all excel files in a directory without opening the files So I have a "master" excel file that I need to populate with data from excel files in a directory. I just need to access each file and copy one line from the second sheet in each workbook and paste that into my ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should the custom error set to off to be able to simply log errors? I implemented a simple error logging as a test in a MVC website using the following code:
protected void Application_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError();
using (StreamWrit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flash Player embedded in .NET WinForms app cannot load HTTPS content with self-signed certificate I have a Flash Player ActiveX control embedded in a .NET WinForms application and am trying to load a SWF into the FP control over an HTTPS url. In development I'm using a self-signed certificate and it seems that in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C - 'char **' differs in levels of indirection from 'char (*)[6]' Can someone please explain to me what's wrong with the following, and more importantly why?
int main( int argc, char *argv[] )
{
char array[] = "array";
char **test;
test = &array;
*test[0] = 'Z';
printf( "%s\n", array );
re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to define implicit data templates in Metro XAML? I am trying to create a DataTemplate for mapping a simple data type with a corresponding view as follows:
<DataTemplate DataType="{x:Type src:Person}">
<TextBox Text="{Binding Name}"/>
</DataTemplate>
I get a compiler error indicating that the DataType proper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how to submit combo box value with out form using javascript? I need to submit combo box value with out form. When I click on any value of combo that suppose to submit automatically using javascript. I am using PHP in backend.
<select name="select" id="select" style="width:50px;">
<option value="25">25</option>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing CK editor filder I created a asp.net web application and then I downloaded ckeditor. And I extracted my application directory this editor folder. And I added dll of ckeditor to reference of my application. I registered in my web page.
<add tagPrefix="CKEditor" assembly="CKEditor.NET" namespace="CKEditor.NET... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing JSON into Java from Klout API I am making a web application that returns the Klout Scores details of Twitter followers. The work flow is as follow :
*
*From Twitter API, get twitter_id of the followers . eg: 48,000 ids of Sachin Tendulkar followers.
*get twitter info(screen name,twitter_name,location) f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I implement a Timer on this MVC setup? Using Java Spring, I have a page which pulls a random auction listing from its database, and refreshes this action every time the user refreshes the browser.
Instead, I want to make it show the same randomly chosen auction for all users, switching to a new random one ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "self.navigationItem.rightBarButtonItem" Not working I have the following code taken straight from the NavBar sample code from Apple. I put this in the viewDidLoad method for a view in my app that is being presented modally, and it wont work.
UIBarButtonItem *addButton = [[[UIBarButtonItem alloc] initWithTitle:NSL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do i make database object more efficient by reusing I am confused on how to handle the logic of reusing the database object and configuration variables or constants that stands global for the application.
the way i have been doing till now is, i created a config.php file in Config directory and declare all the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: No error message in Haskell Just out of curiosity, I made a simple script to check speed and memory efficiency of constructing a list in Haskell:
wasteMem :: Int -> [Int]
wasteMem 0 = [199]
wasteMem x = (12432483483467856487256348746328761:wasteMem (x-1))
main = do
putStrLn("hello")
putStrLn(show (wasteMem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex to accept at least one alpha char and numeric char I was trying out a regex to "partial match" (any place in the string):
abcd1234 1a2b
I searched for a regex and found this:
/^(?=.*\d)(?=.*[a-zA-Z])$/
But it accepts only alphanumeric; abcd123!@#$ is not matched.
How can this be fixed?
A: How about this?
/^... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Picture Messages To C++ program I'm currently thinking of setting up a picture message import project. Something like this:
Client Mobile Device [picture message] -> our Server Device
Server Device [picture && number -> Server Computer
However I don't know if there's a possible way to do this. I could set up a g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Proper Android game threads I have been looking at a lot of tutorials and blogs about Android game development and I have a question regarding the best way to implement threads.
Some examples, like Lunar Lander, has an inherited SurfaceView class (LunarView) with another class inside (LunarThread) that seems to hand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remove text field if value in datasource is empty? If I am creating a Jasper report template file in the iReports designer, is it possible to prevent a static text field from displaying if a field in its datasource is empty?
I know that I can use a certain amount of JavaScript to manipulate data in the report. Is it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does Iterator ties into Collection Interface I am new to Java.
Java has Collection interface
public interface Collection<E> extends Iterable<E>
{ // a lot of other stuff.
Iterator<E> iterator(); }
What I don't understand is how does Iterator Interface is tying into Collection Interface ? When I look at th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert a texture to the ETC1 format for android Im an openGL es newbie, and am trying to figure out how to lower texture usage in my app. Im aware of ETC1 and the various other compressed texture formats but am having difficulty figuring out how i can convert my JPGs to ETC1 while the app is loading. I found... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to format getdate into YYYYMMDDHHmmSS In SQL Server how do I format getdate() output into YYYYMMDDHHmmSS where HH is 24 hour format?
I've got the YYYYMMDD done with
select CONVERT(varchar,GETDATE(),112)
but that is as far as I got.
Thanks.
A: Close but not exactly what you are asking for:
select CONVERT(varch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Finding a particular Set of SubSets of a PowerSet in an efficient way I'm trying to find an efficient way to grab a Set of Subsets of a PowerSet.
For example, this works when the set sizes are small:
Set<Integer> set = new HashSet<Integer>();
set.add(1);
set.add(2);
set.add(3);
Set<Integer> set2 = new HashSet<Inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iOS: Crash when keyboard is used...? Pretty simple bug:
Pressing any key on my Mac's keyboard causes an "EXC_BAD_ACCESS" error to occur when running an app on the simulator. Unless I'm entering data into a text field that is, where it works fine.
-
Not sure if this is a bug in my app, or somewhere else. If by some c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get recently authenticated user? I am working with MVC 3 and I have just implemented a wrapper for the FormsAuthenticationService.
Something similar to the following.
public void SignIn(string username, bool createPersistantCookie)
{
if (string.IsNullOrEmpty(username))
throw new ArgumentException... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python performance vs PHP I am an experienced PHP developer, and I would want to know what of both languages is better for web development.
I understand that there are a lot of factors to evaluate; but focusing in execution time, in your own experience making connections to a MySQL server, parsing and concatenating ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Static fields and methods
Possible Duplicate:
Java: where do static fields live within the memory?
Java uses the heap to save objects and instance variables and the stack for storing methods and local variable. I want to know where static feilds and methods are stored.
static fields --
static methods --
A: Your ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does windows error 0 "ERROR_SUCCESS" mean? I've written a python program which read a stdout of another process by the pipe redirection.
However, the program sucks in this line:
print "[Input Thread] ", self.inputPipe.readline(ii)
The error is IOError: [Errno 0] Error
I found the explanation of windows errno 0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WiX: How to schedule the InstallUISequence I am working on a installer. It is very simple; I just to write some key into the Windows Registry. But before doing this, I have to check some conditions, so I make four dialogs:
*
*Welcome;
*Check that connection to the Internet is available
*Check that the database ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to track an "app opened" metric for Android? I'm integrating with Mixpanel, which lets you track arbitrary events for your app. I want to track how often the Android app is opened.
Is there a central place where I can put code that runs every time the app is opened, regardless of activity?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is there a gap when I alignTop?
Why is there space between the top of the text and the top of the image??
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
andro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't I make my URLs rewrite in my htaccess file? I've been messing with this for the last hour... visiting about 20 different Google tuts and I can't seem make my site rewrite the url in any way. I've even just tried changing .php to .html and I'm not having any luck.
Here's one of my many fails:
RewriteEngi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automatic Staging with Git I have a git repository and it is doing something I've never seen before and haven't found a solution anywhere. I initialized with git init and added everything with git add * and went on my way now when I try to commit after editing any number of files none are staged for commit so I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: php regular expression matches and replacement again.
I'm trying to go through a database table and replace all instances of old BBCode (ie: [i:fs8d979]) and replace it with simple BBCode ([i]). However, I'm getting very confusing results.
$root_path = './';
include($root_path.'includes/common.php');
$posts = array... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to update the JSF sessionscoped managed bean if i access it? As title.
The problem is the attribute in the bean is fixed after init().
I want to update the count attribute when ever i access #{managedBean.xyz} method in JSF
I want to stick with the sessionscoped instead of view/request because it saves some time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems with Kohana Logs For some reason I cannot get kohana to log my custom errors. Here is the code:
$log = new Log;
$log->add(Log::ERROR, 'There was a conflic with the username and/or email. UUID: '.$user['uuid'].' username: '.$user['username'].' email: '.$user['email']);
Thanks in advance for any help.
A: Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exposing the return of method into a property How can i expose the return of my method in to a class property?
public class BIContactLib: ContactLib
{
//Expose it here.. to replace the code below
public IEnumerable<BIContactLib> GetContactLibs
{
get { return (BIContactLib) GetAll}
set {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sending larger object to WCF results in 400 Bad Request I have a unit test that sends a moderately large object to a WCF service. If I pass null for that parameter, everything works fine. When I send a populated object, I get an HTTP 400 response.
WCF tracing shows this error:
The maximum message size quota for i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can we add a inside an tag? Is it a proper method to use a <span> tag inside an <h1> tag?
<h1>
<span class="boardit">Portfolio</span>
</h1>
I know we can write it in this way...and am also following the below syntax in my own website..
<h1 class="boardit">
<span>Portfolio</span>
</h1>
However, I Ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: set my state with collection_select with pluginaweek/state_machine How do I create a collecton_select drop down to set the state of a resource in a form?
right now I have
<%= f.collection_select :state, Ticket.state.all, :event, :state_name_humanize, :prompt => true %>
(could pluginaweek make a 'getting started wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't Link up UIButton with File's Owner in XCode I started my intrepid journey into learning objective-c for ios, and got as far as trying to build my view in the interface builder, when I realized that I can't link up the buttons I'm creating to my File's Owner. I have made sure that my File's owner has my view co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does sql server compact still limit to 4gb I saw in forums that the limit for an SQL Server compact database is 4gb. Does anyone know if this limit has been increased yet, sql server express was recently expanded to 10GB..
Can anyone point me to the official source for this limit?
A: The limit for a SQL Server Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are there any legitimate reasons to hide static methods?
Possible Duplicate:
Why doesn't Java allow overriding of static methods?
Is there any legitimate reason why one would want a derived class to override hide a static method of the base class?
A: Terminology aside, static methods in Java do have a kind of ov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is more useful when optimising for Eclipse PDT or PyDev - launcher.XXMaxPermSize or Xms,Xmx? I use Eclipse with PDT. Most optimization solutions mention increasing the Xms and Xmx values to enable Eclipse to handle more Java objects. I am curious about XXMaxPermSize. Increasing its value increased the memory th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PreferenceActivity with TextItems I'd like to use PreferenceActivity for my games settings. But I'd like to add to that list, so that after the settings items in the list, there would be just text items like "MyGame, version 0.1" or clickable text item "Rate my app" etc.
What's the "correct" or most straighforward w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Slicing objects in Python/Django question I want to retrieve the 13 latest objects, which shows this in my shell:
>>> last_13_issues = Issue.objects.order_by('-id').order_by('-pub_date')[:13]
>>> print last_13_issues
[<Issue: X-Men v2 #18>, <Issue: Uncanny X-Men #543>, **<Issue: Herc #7>**, <Issue: X-Men: Schism #4>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to extend jQuery's ajax This is rather a syntax question I am going to explain it jQuery's ajax functionality.
Let's say I want to control dataType of all ajax request according to url. For example url's with parameter &parseJSON=true should have a dataType of 'JSON' automatically.
For example:
$.myajax({ur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Managing changes in class structure to be consistent with mongodb collection We are using mongodb with c#. We are trying to figure out a way to keep our collection consistent seamlessly. Right now, if a developer make any changes to the class structure(add a field or change data type or changing the property within ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Installing pymake? There dont seem to be any instructions on how to build this sucker. Downloaded from http://benjamin.smedbergs.us/pymake/
The usual files are not in the top directory - make.py and mkparse.py. neither of them seem to do much.. seems like it needs a makefile, but there isn't one in any part of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with jquery .submit() and variables I am not sure what to do and why it is not working it is my first attempt at something like this.
Here is a fiddle of it http://jsfiddle.net/ProjectV1/LVPtN/
You will notice in javascript I have a var error which is by default false.
If there is an error it is true.
I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Proper way to refer to "this" view callback handlers (success or error) after save in Backbone JS I am trying to refer to the view element via $(this.el) within a success or error callback on a Backbone model.
Example:
From within SomeViewClass (which extends Backbone.View),
@model.save({}, {
success: (model, respon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jquery change & validation We have a jquery autocomplete input box:
<input name="suburb" id="suburb-agency" autocomplete="off" class="text" type="text" value="">
This drops down, and when they choose an option, another select box is updated depending on what was chosen:
<select class="text" name="state" id="state-a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to sort the array that contains dates in iphone sdk I have an array that contains date strings like
"9/15/2011 12:00:00 AM", "10/15/2011 12:00:00 AM", "11/16/2011 12:00:00 AM"
How can I sort this array in descending order?
The order should be, sort by year first, then, month, then date and then time.
Please ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524240",
"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.