text stringlengths 8 267k | meta dict |
|---|---|
Q: commenting in asp.net Ok..so here's the problem..i want to have facebook commenting on my productsDescription page..there are many products so when we click on a particular product it redirects to the productDescription page with the itemID in query string..now what i want is all the products have there own specific... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Caching dynamic Acts_as_tree category list I have a Category model which uses acts_as_tree
class Category < ActiveRecord::Base
acts_as_tree :order=>"name"
end
When I display my category tree I use recursion, and an almost identical partial is generated each time (apart from some checkboxes being checked or not), ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery auto-change a drop down span I am using wxtiles for Google Maps. These are weather overlay tiles for Google Maps. This source includes a DateTimestamp in an HTML select that, when changed, will update the overlay tiles for weather forecasting.
I am wanting to create a function that on page load, will automag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Memory leak when using json-data on a map I've the following problem:
I'm accessing foursquares Venue API and get a JSON string back. I parse this string with this json-framework. After that I'm saving the dictionaries and arrays for accessing further information about the venues (in special I'm using the explore AP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determine what ids were removed from array in Rails after_save callback? I am trying to figure out how i can tell what has changed in an array in the after save callback. Here is an example of code i am using:
class User < ActiveRecord::Base
has_many :user_maps, :dependent => :destroy
has_many :subusers, :throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Ensure that an image is displayed on browser How to be sure that an image is displayed on browser before further action?
I want to load some images in certain sequence because i want to be sure that an image will be always as background. I write the following code:
// load the view
final IView bgView = new StaticImg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selecting the newest record of a hasMany relationship I have 2 basic models in my CakePHP application: User and Login. A user has a hasMany relation with Logins (i.e., a new login record is created everytime the user logs in).
Now, I want to make 2 relations from the User model to the Login model:
User hasMany Logi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: git-svn clone a single module I have a repository like:
trunk/a/b/c
branches/V1/a/b/c
branches/V2/a/b/c
tags/T1/a/b/c
tags/T2/a/b/c
I'd like to work on module 'c', not checking out any other module. What is the git-svn command to do that?
A: *
*Do git svn init with whatever options e.g.,
$ git svn init http://svn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: xfbml support for diazo I'm trying to use collective.simplesocial on my diazo-themed site (Plone 4.1),
and notice the like button was broken.
The <fb:like> tag was transformed to <like> (the prefix is stripped). All other xfbml tags suffered the same problem.
I've tried to add xmlns:fb="http://www.facebook.com/2008... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Core Data - Add object to a relationship without firing a fault When I try to add a new ManagedObject to an existing relationship of an entity using the Core Data generated method "addArticleObject", a fault is fired for the articles relationship. Is it possible to add an object to a relationship without causing a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: guide me to find the best android programming pdf What the best android programming education pdf to learn fast and easily android programming?please guide me,thank you.
A: "Best" is very subjective, so it is hard to accurately answer your question.
However, the official Android documentation is probably a good pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding multiple spritesheets in cocos2d I have the following code to set up my spritesheets and batch node:
CGSize screenSize = [[CCDirector sharedDirector] winSize];
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"soldier-test.plist"];
[[CCSpriteFrameCache sharedSpriteFrameCache] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hashing raw audio data I'm looking for a solution to this task: I want to open any audio file (MP3,FLAC,WAV), then proceed it to the extracted form and hash this data. The thing is: I don't know how to get this extracted audio data. DirectX could do the job, right? And also, I suppose if I have fo example two MP3 fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is there way to view a Swing app remotely? I want to show my app conveniently without the hassle of carrying a laptop or distributing an obfuscated Java app.
Is there an easy way to view my Swing app in a browser. I do not necessarily need the command buttons to work (but it would be nice if they did), I just wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I debug JS code added into DOM by an AJAX call? I have a webpage which loads properly formatted html forms using AJAX calls. This HTML also loads javascript code along with it and it is not working. As I am using jQuery I tried to add live() but it didn't help me. Now I need to debug this. How can I set brea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calculating x position using .css('left') I have a issue finding the center of the screen. I have jQuery code:
arr[i].css('left')=='560px';
which will animate the html obj(arr[i]) when it's in the center of the screen.
I have posted my sample, if you can have a look at this link: http://kashi.9f.com/Carousel/index.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Missing builder(org.maven.ide.eclipse.maven2Builder) I'm using Eclipse Indigo and have the following in my .project file:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>new project</name>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Sending Parameters to the Function called by a thread in C#? Sending Parameters to the Function called by a thread in C#,
this is my code:
myThread = new Thread(new ThreadStart(myfunc));
myThread.Start(i);
public void myfunc(int i)
{
...
}
I get error:
No overload for 'installDrivers' matches delegate
'syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parent View Controller and Model View Controller dismissal detection not working I have a UIViewController called ShowListViewController that uses a Modal View Controller to push another view onto the stack:
AddShowViewController *addShowViewController = [[AddShowViewController alloc] init];
[addShowViewController s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generating random number from 0 to 10 including both I heard of some Math.random() but I'm not sure about using it correctly. Number must be whole, so I suppose I'll need some rounding function.
A: Math.random produces a pseudo random number between [0;1[ (0 included, but 1 excluded)
To have an evenly distributed p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: autofac instance initialization notification Is there a way to determine when Autofac has completed an initialization of an instance?
You may need it if you have Lazy dependencies, or you inject dependencies via properties.
Possible solution might look like this:
public class Component : IKeepMeInformed {
privat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove/clear previously drawn lines before redrawing new lines in Qt? I am drawing few lines using paintEvent(QPaintEvent * event). Sometime later if I want to draw new lines then the previously drawn lines are not cleared/removed. How could I draw the new lines only, by removing/clearing old lines. Is there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Create a FileReader from an XMLResponse? I'm trying to create a FileReader (not a Document) from an XMLResponse like this :
// Parse XML Response
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder db = factory.newDocumentBuilder();
InputSource inStream = new InputS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert NSString to C string, increment and come back to NSString I'm trying to develop a simple application where i can encrypt a message. The algorithm is Caesar's algorithm and for example, for 'Hello World' it prints 'KHOOR ZRUOG' if the increment is 3 (standard).
My problem is how to take each single character ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JDBC Connection Link Failure - How to fail over? I have a stand-alone Java windows application developed based on Swing. It connects to a MySQL database for data storage. In case the database connection fails, I am getting a link failure exception from the MySQL JDBC driver (MySQLNonTransientConnectionException). I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wrap panel with "kind of" two way wraping So I have a wrappanel which is wrapped vertically. The items are added at run-time, but all those items (user controls) have different widths and because the wrappanel is wrapped vertically, it stacks them dowm and when they cover the vertical space they wrap to the next col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I save my image as BMP format? I know that I should use the compress method for saving a bitmap file.
FileOutputStream fos = new FileOutputStream(imagefile);
bitmap.compress(Bitmap.CompressFormat.PNG, 100, fos);
fos.flush();
fos.close();
but I want to save my image as bmp format while "Bitmap.CompressForma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to look through multiple arrays? I have an array that looks like this?
Array ( [0] => 15 [id] => 15 )
Array ( [0] => 16 [id] => 16 )
I was wondering how can I know one from each other, if I want to echo the values separately?
$getid = mysql_query($query);
while ($get_id = mysql_fetch_array($getid)){
print_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to Optimize this Image convolution filter Method in MonoTouch? After having realized that no realtime graphics effect library exists for MonoTouch, I decided to write my own. After some research I've written a convolution method that works perfectly but, even using unsafe code, is VERY SLOW.
What I'm doing wron... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: m2eclipse can't find any dependencies I have created a new Maven project in eclipse, using the Nexus Indexer Archetype.
I am trying to add dependencies to this project via Maven -> Add Dependency. But whenever I search for anything, no dependencies are found.
I have tried setting my Maven -> Installations, to both E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pack setup files to single executable setup I have an old setup of the old program written on c++ which contains multiple installation files files.
_SETUP.1
_SETUP.DLL
_INST32I.EX_
_ISDEL.EXE
SETUP.EXE
DISK1.ID
SETUP.INI
SETUP.INS
_SETUP.LIB
SETUP.PKG
I want to combine all that in to single executable file and i w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: border-radius on . No border rounding I have css looks like that:
#caltable th {
border: solid 1px #333;
border-radius: 7px;
background: #f00;
}
But this is what i've got in browser (Chrome/FF):
The question is how to get black line also rounded?
A: Change border-collapse:collapse to border-collapse:s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Parse a large file - OutOfMemory - Android I'm trying to parse a large file in android.The xml file size exceeds 2Mb.
I'm using this code:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder db = factory.newDocumentBuilder();
InputSource inStream = new InputSource();
inStream.setC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are preferences persistent across updates Whilst in the debugging stage and using Eclipse I install myappv1. Then later I install myappv2 (both have the same package name). Because the name is different Android installs them side by side. Will the preferences established by myappv1 be available to myappv2? I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Building a 1,000M row MySQL table reposted on serverfault
Questions
Question 1: as the size of the database table gets larger how can I tune MySQL to increase the speed of the LOAD DATA INFILE call?
Question 2: would using a cluster of computers to load different csv files, improve the performance or kill it? (this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: HTMLPurifier Youtube <?php
require_once '/library/HTMLPurifier/HTMLPurifier.auto.php';
$config = HTMLPurifier_Config::createDefault();
$config->set('Filter.YouTube', true);
$purifier = new HTMLPurifier($config);
?>
(^ This is my only settings for HTMLPurifier)
It should <span class="youtube-embe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to read an xml file from R.java I have an xml file inside the res folder under the xml forlder. I want to parse it with SAX. I know there are lots of example but I want to understand InputStream, InputSource, File deeply. I can reach the file writing R.xml.hippo (hippo is the name of the xml file).
But how can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "DEPRECATION WARNING: class_inheritable_attribute is deprecated...." when executing rake db:create When I follow the Spree Guides, I got an error message ,
yulong@ubuntu:~/mystore$ rake db:create
rake db:create
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RoR - password protected model I want to create password protected model. For example Post on the blog. I want to store this password in the database. And if user wants to see password protected post he needs to write this password. If there is no password in database everyone can see this post, each post can have i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Conditional Comments within CSS I am currently developing a theme for a homepage but ran into a few problems. For whatever reason I have no access to editing the html code itself, and I need to write custom .css for IE (specifically versions below IE9).
I have "two" issues. First one is dual backgrounds. Versions be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to create map tiles from OpenStreetMap offline, display it on Android? What I want is to display a simple offline map using OpenStreetMap. I cannot find in the web the right tools to create map tiles and use it to display a map in Android. I have downloaded different resources but it seems that I don't have any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Create transparent form from png I have a png image that have transparent parts, how to set this png image like background image for my WinForms form and not lose transparency? i Use C#. Thanks!
A: Here I have written a code for painting the form. You can change the color and transparency according to our requireme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: transforming a plist in another nsdictionary I'm not english, new to objective c and new to this website. But i hope you will understand my problem. I tried to use the search engine but i couldn't find a answer...
THE PROBLEM:
i have a plist file like this
<plist version="1.0">
<array>
<dict>
<key>ID</key>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is there a uipickerview delegate method like scrollviewDidScroll? I have a customized UIPickerview and I do not want to use a datepicker. I want to implement the feature where when a user scrolls down/up the hours, the AM/PM component switches while the hour is scrolling. This means that I need to switch it before... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: heapsort implementation in c++ i have following code for heapsort
#include <iostream>
using namespace std;
void exch(int a[],int i,int j){
int s=a[i];
a[i]=a[j];
a[j]=s;
}
void sink(int a[],int k,int n){
//int n=sizeof(a)/sizeof(int);
while(2*k<=n){
int j=2*k;
if (j<n && (a[j]<a[j+1])... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GetValue by reflection i want to get each ToolStripMenuItem of my MDI form's value by looping through them and using reflection as following:
FieldInfo[] menuitems = GetType().GetFields(BindingFlags.GetField |
BindingFlags.NonPublic | BindingFlags.Instance);
foreach (var item in menuitems )
if (item.FieldType... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Automatic Formbuilder for Mongoid 2.0 ? Rails Is there a formbuilder for Mongoid 2.0 ?
Which generates automatically a form from a model.
Thanks
A: Why not just use Rails sacffolding?
A: https://github.com/mcasimir/document_form
gem document_form
It's a fork from https://github.com/justinfrench/formtastic i've ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# custom json serialization This class
class X{
public string a{get;set}
public string b{get;set}
}
is serialized like
{..., inst:{a:"value", b:"value"}, ...}
I need object of my class to be serialized like this:
{..., inst: x, ...}
Where x is a+b
How can I customize JSON serialization process from my c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IEEE 754 Floating Point Add/Rounding I don't understand how I can add in IEEE 754 Floating Point (mainly the "re-alignment" of the exponent)
Also for rounding, how does the Guard, Round & Sticky come into play? How to do rounding in general (base 2 floats that is)
eg. Suppose the qn: Add IEEE 754 Float represented... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update table SQLIte in my iPhone App I want to make it able in my app to insert data to sqlite database, and if the id for example is exist so to update this row.
i done the create with :
if (sqlite3_open([path UTF8String], &database) == SQLITE_OK) {
sqlite3_stmt *insertStmt = nil;
if(in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find the most popular Foursquare venue in each category in a given city? According to Foursquare API, Venues/Explore returns a list of recommended venues near the current location, Venues/Search returns a list of venues near the current location, optionally matching the search term. So in both cases, the retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: execute 2 MySql query using timer in C# How can i execute 2 mysql query using ThreadingTimer?I want 1st timer update data in db and 2nd timer count how much data are updated and also show in label in windows form.Here is my code,
void PrepareTimers(List<int> _dataValues)
{
foreach (int dataValue in _da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery - The background is still not changing
Possible Duplicate:
jQuery - Background color not changing
I know I have posted the similar question several times, but it is really confusing me why not working.
This is my latest version of the code:
HTML
<html>
<head>
<script type="text/javascript" src="jquery-1.6.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I make Eclipse/FDT build Main.as instead of the currently selected file? I'm using FDT, and I want Eclipse to build my Main.as file instead of the currently selected file when I click debug/run. Is there a way to do this?
A: It depends on your settings and the order you've done things...
If you right click ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mac OS X Hot Corners: run a custom AppleScript? Is there a way to run a custom AppleScript or any other custom application using the "Hot Corners" of Mac OS X?
The default system settings list a number of actions (e.g. Launchpad, Mission Control, Desktop, etc.), but nothing that would allow me to launch a custom app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: MySQL optimize subqueries I want to optimize this query (since subqueries aren't fast in general), but I'm lost because I cannot rewrite this using joins which will be better for performance, can you help mi with this?
SELECT id, company, street, number, number_addition, postalcode, telephone
FROM clients
WHERE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: get device flags by device name hope you can help me:
I'm trying to determine whether the device is removable or not, all i have is device name (/dev/sdc). Actually, I need to determine when the file on removable media or on local disk by full path of this file.
I've tryed to search in the
current->fs->pwd
and all I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I insert a value for an element of an array that is pointed by a pointer in a struct I currently have a struct that contains a pointer to an array of pointers. I am trying to give a value to an element in the array of pointers, but I get a segmentation fault.
aStruct->anArray[0]->string = test;
aStruct conta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ajax, PHP and Security? My question is that suppose, in my web app, I use ajax to call upon methods on the server side, isn't it creating a security hole in the app? Like, say I have an option for the user to deactivate the account, which can be done by clicking a button. This is done via Ajax.
So, can't a hacker se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Converting R.java variable to URI Is this possible converting R.java variable to URI reference?
What can be URI?
PS: So silly question I know. But thanks for your kind helps..
A: Do you mean that you're storing URIs as string values in an xml file, and need to convert those into java.net.URI objects?
If so...
In an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java function for int[], float[] or double[] array I want to write a Java function that will get as input either int[], float[] or double[]. The algorithm is exactly the same (some kind of a scalar product). How can I write a single function that will be able to handle all types of numeric arrays?
A: There is no ea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can't read an XML file with simplexml_load_string I have been trying to read the xml file, but it is giving me a strange error.
My XML is as follows
<?xml version='1.0' encoding='UTF-8'?>
<response>
<url>http://xyz.com</url>
<token>xxxxxxx<token>
</response>
To read this I am using
simplexml_load_string(va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android NDK build script ignoring main makefile I've got Application.mk file which is ignored by ndk-build for some reason.
What i've got in it:
APP_PROJECT_PATH := $(call my-dir)
APP_CPPFLAGS += -frtti
APP_CPPFLAGS += -fexceptions
APP_OPTIM := debug
APP_STL := gnustl_static
And flags on build is still:
-fno-except... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Utility of managed=False option in Django models In django models we have option named managed which can be set True or False
According to documentation the only difference this option makes is whether table will be managed by django or not. Is management by django or by us makes any difference?
Is there any pros an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Jenkins Error: 'Unable to Delete File' When Invoking Ant I'm running Jenkins 1.433 on Ubuntu 11.04 in order to perform a build which includes an Ant task. The clean portion of my Ant task, which deletes the build directory from prior builds, will work when running sudo Ant from the terminal, but fails from Jenkins ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Custom DataGrid Silverlight I'm writing custom DataGrid control. I have one collection of column headers and other collection of rows, which has collection of cells itself. I want all the cells in the column be the same width (the width of the widest cell). How can i do it?
Solution:
Every cell knows the column whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jasmine and node.js Have some Jasmine+Rhino combo to test the javascript code and trying to shift to node.js. However, couldn't find any setup instructions on the net (but only this link, with nearly zero instructions). Any help on how to make it true (on Ubuntu) will be highly appreciated.
A: I thought the same th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: GWT 2.4.0 RequestFactory polymorphism Does GWT 2.4 support this case:
@Entity class MyBase {...}
@Entity class MyChild1 extends MyBase {...}
@Entity class MyChild2 extends MyBase {...}
...
@ProxyFor(MyBase.class) class MyBaseProxy extends EntityProxy {...}
@ProxyFor(MyChild1.class) class MyChild1Proxy extends MyBase... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Ruby simple regex syntax error I'm new to Ruby and i'm working on a code for a server.
The code is a half year old. In the meanwhile Chrome updated versions to version 14.
So here is my code:
supported_browsers = /Chrome\/[3-9]|Firefox\/[3-9]|\sMSIE\s|Konqueror\/[4-9]|Midori|Minefield|Shiretoko|IceCat|Opera\/9.|\sAp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamically updating a plot in Haskell I have a program which performs a long-going calculation where the result is shown as a plot.
I am currently using Chart-0.14 for this. I want to show the partial results, and update during calculations.
Graphics.Rendering.Chart.Gtk.updateCanvas :: Renderable a -> DrawingArea -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Function to tell the user about errors wont reveal error div I have this function to validate an input field. When something is wrong it should write stuff into a div element (which it does!) and then reveal it through jQuerys $('#elementID').show('speed');.
I recently changed from checking if there was an error to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use mysql spatial with prepared statements I've got two scenarios, using the following statement:
INSERT INTO areas (name, polygon) VALUES (?, POLYGON(?,?,?,?,?,?))
Will result in errors like this:
Illegal non geometric ''58.03665463092348 14.974815566795314'' value found during parsing
What seems to be th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fixed GridView Header with horizontal and vertical scrolling in asp.net I want to fix(Freeze) gridview header while vertical scrolling.
I also want to fix first column while horizontal scrolling.
I want this in both chrome and IE.
A: It is possible to apply the specific GridView / Table layout via custom CSS rules ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Back Button in navigation controller Its a very basic question - but i could not find the answer to it anywhere.
I would like a back button like the default one that shows up in a navigation bar, but with a image in the background.
Even with customization, how to calculate the size/length of the button as per the ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting Type Mismatch Issue while Adding parameter to XSLT using VBScript I have got below code in VBScript:
<%
Option Explicit
#importXSLT "tcm:228-190529-2048" As expandXSLT
#importXSLT "tcm:228-642694-2048" As renderXSLT
Dim xml, currentDateTime
Set xml = getNewDomDocument()
xml.loadXML TDSE.GetListPublicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Time series plot with groups using ggplot2 I have an experiment where three evolving populations of yeast have been studied over time. At discrete time points, we measured their growth, which is the response variable. I basically want to plot the growth of yeast as a time series, using boxplots to summarise the meas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use javascript conditionally like CSS3 media queries, orientation? How to use javascript conditionally like CSS3 media queries, orientation?
For Example I can write css for specific
@media only screen and (width : 1024px) and (orientation : landscape) {
.selector1 { width:960px}
}
Now I want to only run so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Google Calendar API I have the code:
// Create a CalenderService and authenticate
CalendarService myService = new CalendarService("exampleCo-exampleApp-1");
myService.setUserCredentials("j...@gmail.com", "mypassword");
// Send the request and print the response
URL feedUrl = new URL("https://www.google.com/calenda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Query - Left Join or Union? How do I write a SQL query to find out what the group ID is and then display list of Options from that Group ID.
I can do it by two queries, for example:
//Get the group ID
SELECT option_group_id FROM options WHERE id =14122
//Now get a list of OptionID from that group ID
SELECT id,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use of HTML5 custom data attribute for AJAX response I have never used HTML5 much and so am not aware of its limitation.
But I have heard there is a useful custom data attribute which has got added. So my question is, can I use this for AJAX response handling? By that I mean, say I have coded some placeholder divs w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between variable === value and value === variable? a)
if(null === $object)
{
//take some action
}
b)
if($object === null)
{
//take some action
}
I am in habit of doing like b) but in Zend-Framework I find everywhere they have done it like a) . Is there any benefits of it ??
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xcode 4.2 Warnings when dropping Nav Controller on Tab Bar in IB I'm developing an app which is iOS 4 compatible, so my deployment target is set to iOS 4.0.
Whenever I drop a UINavigationController onto a UITabBar, I get these two warnings:
*
*warning: Attribute Unavailable: Defines Presentation Context is not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: python - single item tuple throws exception in for statement Im curious as to why this happens. Im using Mako templates to iterate over a tuple, that contains a number of number of dictionaries, that in turn contain link information:
links = (
{
'path' : request.route_url('home'),
'te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unit test a method which is on high abstraction level A similar topic has been discussed in The value of high level unit tests and mock objects
However, I'd like to describe a specific situation and ask your opinion about how I should write a unit test.
I am developing an ordinary 3-tier application, which uses Enti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: is there any way to change urls is iframe? I want to show a page of my website within iframe in another page.
I mean you can see helper.html while you are navigation main.php.
but I want to change some links in helper.html regarding to some conditions set in main.php.
The regular solution is to get content of helpe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: I don't have "Application" field in Logcat I use Eclipse with ADT and according to release notes for R14 preview now we can create filters using Application field. But it is always empty for me, for different applications, different log levels. Why? How can I use this?
A: You need to set debuggable to true
A: Clea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: navigationController issue I have the following:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath(NSIndexPath*)indexPath
{
audiChassisInputViewController = [[myAudiChassisInputViewController alloc] init];
[self.navigationController pushViewController:audiChassisInputViewController an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VBA throwing 'else without if' error I was trying out the following code and its repeatedly throwing the 'else without if' and such similar errors. I just cant figure out where the error lies, because each if is properly terminated.
Here is the code:
Sub hra_macro()
Dim city As Boolean
Dim salary As Integer
Dim var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add protocol buffers support to a maven project ? How to integrate protocol buffers with a maven project ? Couldn't find any information for maven users on the protocol buffers page. I need to add PB support to my web app project with protoc compiler support as well for maven, if it is there.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7625752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Process Object from Apache Commons Exec I'm using the Apache Commons Exec jars for creating processes. However I'd like to get control of the process id of processes being invoked.
Is there a way of getting the 'Process' object from the Apache Commons Exec api? I did'nt fine any public methods that returns the 'Proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Joomla 1.7 custom toolbar button usage I've added a custom button into my component's backend toolbar with this code:
JToolBarHelper::custom('libri.details','details.png','details.png','TOOLBAR_DETAILS',true);
This button needs that the admin checks one of the entries listed in the table.
You can see a screenshot h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting divider location on a JSplitPane doesn't work I'm trying to set the divider location of a JSplitPane but it seems not to work.
Here's an SSCCE:
import java.awt.Color;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
public class JSplitProbl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I generate new source code in text form in a Scala compiler plugin? I have just finished the first version of a Java 6 compiler plugin, that automatically generates wrappers (proxy, adapter, delegate, call it what you like) based on an annotation.
Since I am doing mixed Java/Scala projects, I would like to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Navigation issues with jQuery My problem is as follows:
I have a simple navigation
<ul class="navigation">
<li class="heading selected">Slider images</li>
<li><a href="index.php?action=staticpages" title="">Static pages</a></li>
<li><a href="index.php?action=accomodati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What type of data can I pull from an iPhone? I have analytics on my phone to get some use info. Right now I get info such as UDID, iOS Version, and hardware version. But what else can I pull?
A: Use a specialist analytics package such as Flurry and you will be provided with a wealth of usage and user information.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sandcastle xslt How do I change the output of a Sandcastle built website using xslt? Are there any tutorials on how to do this?
I can go in and change the css but this seems a little the wrong way around...
A: Sandcastle is open source, so you have the chance to tune it to suit your needs,
http://sandcastle.codepl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS Table width - 100% + minus margin I've stumbled across an issue that I'm not entirely sure how to resolve.
I have a page with a number of divs, one of which contains a table but has a margin of 20px. I need this table to 'butt' against the right-hand side of another div, which I have accomplished by using a mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Reading vim plugin - strange notation and navigation Im reading great tpope rails.vim and what does it mean:
" }}}1
" Abbreviations {{{1
exactly here: https://github.com/tpope/vim-rails/blob/master/autoload/rails.vim#L3921
Is it for better navigation?
This file is quite huge, how to navigate on it properly - using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object I am getting the following error when trying to get a JSON request and process it:
org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class com.my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "473"
} |
Q: Undefined variable notice in PHP code I'm getting
"Undefined variable: html in on line $html .= generateOption($optstyle.'option', $level, $data, $padding);"
What's wrong with my function?
function generateOptions($parent, $level, $padding, $menu, $db)
{
$result=$db->query("SELECT id, name FROM menu WHERE pare... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625784",
"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.