text stringlengths 8 267k | meta dict |
|---|---|
Q: takePicture callback data is null Is the Camera.takePicture callback for raw data null when running in emulator environment?
I got the CameraSurface method out of the WWW, so it should be correct.
A: Before calling takePicture you have to provide a buffer large enough to hold the raw image data. (detailed here). Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Issue with HTC Desire android app So I have an object called ExtendedCanvas that contains this following field:
private static final Status status = new Status();
This object contains a method named advance() that is called from a thread started in a surfaceCreated() method (don't know if this info is of any meaning... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Insert a whole element into another element, not just its inner HTML I'm trying to figure out how to use jQuery to construct HTML as sanely as possible. As far as I can tell, this should produce <div><span>Alice</span></div>, but instead produces <div>[object Object]</div>:
post = $("<div>");
username = $("<span>").... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenGL: VBO functions are not defined I'm trying to use OpenGL VBO's, but the functions associated with their use, glGenBuffersARB() for instance, are all undefined. Immediate mode functions are fine of course, it's only these.
I'm using VS2010, with the SFML library. One of the include headers in that library inc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What problems could warning C4407 cause? I got some warnings by using pure virtual interfaces on some MFC CWnd derived objects through multiple inheritance. I believe it's caused by defining the methods which need to be implemented for the message map.
warning C4407: cast between different pointer to member represen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: RTOS: windows ce: can I perform all my calculations in kernel mode for a PID control loop? In Windows CE, can I do all my calucation for a PID(Proportional-Integral-Derivative) control loop in "kernel mode" and avoid using "user mode"? I will transfering data over TCP=IP to another machine for the end result to keep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CLLocationManager "turn on location services..." alertview customization ios I know that I can't change the title or the buttons for this alertview, but i've seen numerous apps that changed the message of the alert view
Something like this
Also, I have the Bump API in my app so everytime the popup shows, it says "B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entity Framework Code First MySql Pluralizing Tables I am using the Microsoft Entity Framework with code first to manage my data (with MySQL). I have defined a POCO object, however, when I try to add data it says table Users doesn't exist. I looked in the DB and it created table User not Users. How can I remedy this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JSON filtering attributes What is the best way to filter JSON nested keys and delete them? For example:
{ "id" : "1",
"key1" : "val1",
"key2" : "val2",
"name" : "someone",
"age" : 39,
"data" : [
{ "id" : "1234",
"key1" : "val1",
"key2" : "val2",
"name" : "someone",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting Privacy Settings using the Facebook API I am working with the Facebook API for C#. I am unable to find any reference to changing privacy settings using the API. I've looked at a lot of different places, with no success.
Could anyone guide me in the right direction?
Thanks!
A: You can't. Only through the off... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Setting the Item property of a Collection in VBA I'm surprised at how hard this has been to do but I imagine it's a quick fix so I will ask here (searched google and documentation but neither helped). I have some code that adds items to a collection using keys. When I come across a key that already exists in the col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: string array from c# to javascript example not working i'm using asp.net web form fx3.5 and i'm trying to get my server-side string array into my javascript. i found a simple example that claims to work but it doesn't for me. temp variable is not recognized in ().Serialize(temp);
Here's the reference article
<%@ Pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: android-adding tabs in view flipper I am developing an android application in which I have creted a TabActivity. For each tab I am using a separate activity and a separate layout file. Actually this activity is a details screen which shows customer information. The user can click on an item in a listview activity in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine if a file is script or not I am wondering that how can I Use the file command and determine if a file is a script or not.for example in usr bin I want to know which file is script or not. actually i don't want write any script just i need a command for determine that.
A: This should work (assuming that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Mercurial clone cleanup to match upstream I have a hg clone of a repository into which I have done numerous changes locally over a few months and pushed them to my clone at google code. Unfortunately as a noob I committed a whole bunch of changes on the default branch.
Now I would like to make sure my current defaul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get javax.comm API? I'd recently downloaded a project on SMS sending, but when I tries to compile the code it gives error on line import javax.comm.*;.
Can anybody tell me where to find javax.comm and where to place so that there will be no compilation error.
A: Oracle Java Communications API Reference - h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: TaskCompletionSource for Silverlight? just searching for a way to use the TaskCompletionSource class in Silverlight.
So first off, will it be available in Silverlight ver 5?
Second, are Reactive Extensions a good way to go?
Third, I came across PowerThreading from Jeffery Richter. Is this still a good way to go... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: "Error reading POM" when selecting a archetype in Maven setup I downloaded maven 3.0.3, set-up my environment variables as instructed and verified with mvn --version that everything looks ok. So far so good
So, time to RTFM.. about 1 minute into the manual, weirdness occurs.
mvn archetype:generate \
-DarchetypeGro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get Django forms to show the html required attribute? I have this form field:
email = forms.EmailField(
required=True,
max_length=100,
)
It has the required attribute, but in the html it is not adding the html attribute required. In fact it's not even using email as the field type, it's using text... t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Javascript apply methods from one object to another I have been at this for hours and just can't get it quite right. I have an object with methods that works fine. I need to save it as a string using JSON.stringify and then bring it back as an object and still use the same methods.
function Workflow(){
this.setTit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Batch To Delete File Less Than A Minute Old I'm trying to delete .zip, .jpg and .txt files that are under a minute old. I haven't added the file types yet. More about that later. But this does't seem to delete anything at this point. Any help is welcomed. This is in Windows.
@echo off
cd "c:\*\*"
setlocal
ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting the background color of a UIVIew EDIT: People keep visiting this post which doesn't have much good information so I'll put this here to help you guys:
Try setting the backgroundColor property of your UIView. For example:
myView.backgroundColor = [UIColor blueColor];
Make sure your view has been instantiate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: stored procedure progress I have a huge stored procedure and I want to create a progress bar for it on asp.net VB front-end. So, as suggested before on stackoverflow, I have to use additional status table and timer on front-end. Then, I have to call another stored procedure that will return current status of stored ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trim blank lines from textarea submission I have a form that submits text from textarea. The text can be formatted, i.e. have line breaks and paragraphs, however I want to remove blank lines at the end of the text. Shall I use rtrim or preg_replace?
Can I use something like this to clear blank lines, carriage return... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Steps to run NUnit tests on OSX How do I run NUnit tests developed within VS2010 on a Mac? This seems like a very simple and naive question but I have been struggling to find all the steps. I have done my due diligence by scouring the web to find the exact steps. I have Mono on my Mac, but not monodevelop. How can i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Simple write to file does not work for me I cannot get this simple string to write to a file.
Please look at my code. This is a simple nib with an NSTextField and a button. The log shows I am getting the string value fine, but it does not write.
//Quick.h
#import <Foundation/Foundation.h>
@interface Quick : NSObj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot Load RMagic in Rails, but can in IRB I'm having trouble getting RMagick to work properly. When I run the require in IRB:
irb(main):001:0> require 'RMagick'
=> true
But when I try to include it in my Rails app I get:
no such file to load -- RMagick
I installed RMagick through the Gem.
gem list
*** LOCAL GEM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android-Market bugs? i've got a problem with an app that i published 2 days ago.
The app still doesn't appear in the market within the new entries
(appear only with direct link)
About 1 month ago, I've uploaded a previous version of that app..with
the same name and a different package name.
It was a beta so i di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I json_encode the results of this query? foreach($hello_world as $key=>$product_id) {
if(in_array($key,$exclude))continue;
$query = $this->db->query("SELECT * FROM product where modelNumber = '$product_id'");
if ($query->num_rows() > 0) {
foreach($query->result() as $row) {
echo $row->name;
}
}
}
C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does `` provide, and where is it documented? The new C++11 standard mentions a header <cuchar>, presumably in analogy to C99's <uchar.h>.
Now, we know that C++11 brings new character types and literals that are specifically designed for UTF16 and UTF32, but I didn't think the language would actually contain fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: NSURLRequest: EXC_BAD_ACCESS I'm building an application with loads content from an PHP file. I have 4 views with loads content from 4 different PHP files. For each view controller i'm using the following code:
//
// turmaAViewController.m
// SamplePad
//
// Created by Mateus Nunes on 25/09/11.
// Copyright 2011... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there anything thing like pastescript without the paste part? I am looking for a simple lib/tool like paster that I can easily create custom commands without having anything to do with paste itself. I am looking to create a helper tool like paster or manage.py to do various tasks like build (maybe using buildout)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is wrong with my code (using dojo xhrGet Ajax) I'm attemping to use this code to call a php file, access the database, retrieve values, and return them using a JSON object, then edit them into a text box.
Code for Javascript end:
As the user changes the option in the dropdown list, the app should call a PHP scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: If HTML form was submtited check is if ($_POST['submit']) ... same as if (isset($_POST['submit']) ... or it means something else? Which one i should use to check if form was submitted?
Is there some way to pull form name?
A: Use if ($_SERVER['REQUEST_METHOD'] == 'POST'). All other methods are flawed. What if you re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Conditional Keybinding
I was wandering if someone could explain to me how I could do a conditional key binding (using an MVVM pattern), at the moment I have
<Window.InputBindings>
<KeyBinding Command="{Binding Path=CMD_Login}" Gesture="Enter" />
</Window.InputBindings>
but I would like this key-binding to on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to end AsyncTask onBackPress() and also does it still run if it isnt finished? I use AsyncTask in several activities.
i know how to Override onBackPress().
But when an AsyncTask is running i want to give the user the ability to go back even though the asynctask is still running.
How can I do this?
Also does an a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do NSCoder and/or NSKeyedUnarchiver handle multiple decodings of the same object? I was wondering how NSCoder would handle an object that was shared and encoded by multiple objects the next time it was decoded. Will it make two copies of the object, or will one object be decoded and shared between all other obje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQLAlchemy - How to map ManyToMany using autoloaded association tables I am autoloading an MSSQL db. There are a few ManyToMany assoc tables. I'm not sure how to map each side. Here's a typical example of how they look in the db:
Table: tbUsersToGroups
PK: ID_UserToGroup
FK: User_ID
FK: Group_ID
So I can success... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Ajax not returning variables from external PHP I have this code that takes info from a form and sends it to form.php where it is processed. form.php echoes the variables (Fullname: $fullname E-mail: $email Link: $link Instructions: $instr) which are supposed to be inputted to #success. My code behaves two dif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does the Java compiler only report one kind of error at a time? I've a snippet
class T{
int y;
public static void main(String... s){
int x;
System.out.println(x);
System.out.println(y);
}
}
Here there are two error, but on compilation why only one error is shown?
The error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: CSS problem, showing unexpected background repeat in Internet explorer I have a class which is used to show correct message. This class works great in all browser, except I found error in Internet Explorer 8.
.success{
border:#060 1px solid;
margin-left:25%;
margin-right:25%;
padding:7px;
backgro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Picking up custom objects from dropdownlist I am having an issue with picking up custom data types from a drop down lists. To make this as easy to understand as possible, I'll use a simple example of what I want to be able to do
So say I have a custom data type (Say of type Dog). Dog contains a name, breed and age. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: calling Oracle stored procedures in R - how to get the result set? Looking for an example for calling Oracle stored proc using R, and returning a result set.
I'm using RJDBC library, dbGetQuery to call Sybase procs and point the results to a variable, and this works the same for Oracle select stmts. However, I don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: min/max number of records on a B+Tree? I was looking at the best & worst case scenarios for a B+Tree (http://en.wikipedia.org/wiki/B-tree#Best_case_and_worst_case_heights) but I don't know how to use this formula with the information I have.
Let's say I have a tree B with 1,000 records, what is the maximum (and maxi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PEP 354-like implementation of enums At one point enums were considered by the Python developers to add to the language, but they dropped the feature. Is there some implementation of the PEP 354? — the specification seems pretty robust.
A: http://pypi.python.org/pypi/enum/ is the implementation of this PEP.
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Proper way to send username and password from client to server This question is not language specific. I'm curious how to properly send username and password from a website login form to a server.
My guess is to hash the password, put username/password in the POST body and send it over HTTPS. What's a better way?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: logical operations between chunks of memory? I want to or two big chunks of memory... but it doesn't work
Consider I have three char * bm, bm_old, and bm_res.
#define to_uint64(buffer,n) {(uint64_t)buffer[n] << 56 | (uint64_t)buffer[n+1] << 48 | (uint64_t)buffer[n+2] << 40 | (uint64_t)buffer[n+3] << 32 | (ui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Firefox Extension cannot override element events I'm having trouble trying to override a form element's onsubmit event. I have no problem adding a listener with addEventListener, but for my particular case, I need to replace the onsubmit but for some reason when I do, it gives me this error:
Error: Component is not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Issues with jQuery on IE9... Using IE9 F12 developer tools, I see these errors in the console:
SCRIPT438: Object doesn't support property or method 'getElementsByTagName'
jquery.min.js, line 16 character 59007
SCRIPT438: Object doesn't support property or method 'getElementsByTagName'
jquery.min.js, line 16 chara... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check If an object is empty? How can I check if a PHP object is empty (i.e. has no properties)? The built-in empty() does not work on objects according the doc:
5.0.0 Objects with no properties are no longer considered empty.
A: ReflectionClass::getProperties
http://www.php.net/manual/en/reflectionclass.get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why custom intents in android [UPDATE]
rephrasing my question. Could anyone please advise, when and how should i make the decision of using a custom intent vs using android's default intents?
[ORIGINAL POST]
A very very basic question. Could somebody explain in simple terms why do we create custom intents in android... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PerformanceCounterCategory to string value I am trying to retrieve the value of my readyboost cache I wrote the following code but it says the value does not exist
System.Diagnostics.PerformanceCounterCategory pc;
pc = new System.Diagnostics.PerformanceCounterCategory("ReadyBoost Cache");
pc.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Binding string concatenation for ListBoxItem I have a listbox and I want to show two properties from my object.
For one property it is pretty easy:
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name} "></TextBlock>
</DataTemplate>
</ListBox.ItemT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to make python script self-executable
Possible Duplicate:
Calling a python script from command line without typing “python” first
I've tried
bash$ chmod +x script.py
doesn't work. I also remember to put
#!usr/bin/env python
at the beginning of the script.
bash$ ./script.py
Does nothing, it just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Using JLabel with libgdx's Pixmap I was wondering if you anybody knows an easy way to paint a JLabel in a libgdx's Pixmap, instead of using a BufferedImage.
I have seen that libgdx uses JLabel in some tools, but I haven't seen any painting procedure, so I took the lazy way of asking before I keep looking. :)
A: You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android : Getting CURRENT coordinates (not lastKnownLocation) Right now, I only know of one method to do this:
- Get last known location
- Have the location manager request location updates
However, I really only need to get the CURRENT coordinates ONCE right when the application is called, but it's not doing what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: convert css hover to jquery onclick for div layer We have a header, with username on it. Essentially, for now, the user hovers over there username and precariously moves the mouse onto the div to retain focus, and access different account functionality.
But it is crap to be honest, and I wanted to convert it to oncl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get the value from only selected checkbox I am trying to get the value from a checkbox using javascript.
I want only one checkbox value to be passed to the javascript function, and if multiple are selected, an alert box informing that only one box can be checked for the function.
I've tried this:
var publish_trigger... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UTC DateTime problems I currently store all dateTimes in the DB as UTC dates. Each users time zone offset is also stored in the DB. When I retrieve a Date it is converted back to their local date using this offset.
The problem occurs when I retrieve a date using an ajax call. The date (which is already converted usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Ruby, gaps in time for array of times I have query (for a MongoDB database) which returns objects which have been mapreduced, the objects are reported every 15 minutes, but the issue is that if say we have a critical error in one of servers that period of time will be unaccounted for.
Take this array as an example:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: RGBImageFilter Produces All Black Empty Images I'm trying to use the RGBImageFilter to produce a simple transparency effect on an image, however during testing I found that all of my filtered images come out as blank with black backgound. I simplified my filter to a simple "No Operation" filter that just returns th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In MySQL, MyISAM, Is it possible to alter table with partition into multiple hard drive? In MySQL, MyISAM, Is it possible to alter table with partition into multiple hard drive ?
My hard drive is nearly used up its disk space.
is there anyone facing this problem and how do you solve it?
A: Yes, it's possible to pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android, Doing the AnimationDrawable from the docs... not working :( I am trying to get this example working:
http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html
but as it starts, it crashes (force closes) and I am not really sure where the problem is as I am new to this.
My code:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to force container elements to contain horizontal content? Here's an example of what I'm trying to work with: http://jsfiddle.net/U2YkF/3/
I need #container to expand to fit #right when #right extends off the right hand side of the screen. Clearfix doesn't seem to be the answer as I've tried that: it only affect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails 3 - link/button to run ajax request without redirecting What's the best way for a link to run an ajax command (I'm using jquery in Rails 3.1)? So far I am trying to use a link to run code via the controller action "update_me."
views/products/new.html.erb has the following line:
<%= link_to "Update", :action =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Point handling for closed loop searching I have set of line segments. Each contains only 2 nodes. I want to find the available closed cycles which produces by joining line segments. Actually, I am looking for the smallest loop if there exist more than one occurrence. If can, please give me a good solution for this.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dragon Curve in Python I created a program to draw a dragon curve using turtle graphics.. but my result doesn't really look like the picture does in the link:
One problem I noticed is that I want to save the produced string into the variable newWord.. but I can't use newWord as a parameter in my function drawit, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Design Question for ActiveAdmin I'm a newbie to the ROR world and I'm trying to use ActiveAdmin to design the Admin Panel for an Artists Portfolio Website.
The idea is that each artist has a login/password and can manage assets.
The models are set with has_many in the AdminUser table, and belongs_to in the linked mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deriving a class from TestCase throws two errors I have some basic setup/teardown code that I want to reuse in a whole bunch of unit tests. So I got the bright idea of creating some derived classes to avoid repeating code in every test class.
In so doing, I received two strange errors. One, I cannot solve. Here i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How to deal with race conditions in multi-threading? Here's an example:
if (control.InvokeRequired)
{
control.BeginInvoke(action, control);
}
else
{
action(control);
}
What if between the condition and the BeginInvoke call the control is disposed, for example?
Another example having to do with events:
var h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Python 2.7.1 Blogger API problem I recently started writing a simple client using the Blogger API to do some basic posting I implemented the client in Python and used the example code verbatim from the Blogger Developer's Guide to login, get the blog id, and make a new post. I ran the script and everything went fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby/Slim: parse Markdown from a YAML file Been struggling for a while with some YAML parsing inside a Slim template.
my YAML file contain
shortdesc: >
markdown:
if you want to up the feelgood factor Cuban style, then this Monday night at The Buffalo Bar is for you...
But when I output the shortdesc node in m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android: First run popup dialog I am trying to make a popup dialog that only shows after the app's first run that will alert users of the new changes in the app. So I have a dialog popup like this:
new AlertDialog.Builder(this).setTitle("First Run").setMessage("This only pops up once").setNeutralButton("OK", null).s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: ASP.NET - how to change requested page names transparently? Very new to this subject and under the gun to come up with a solution. The problem is how I could load one of several versions of the same ASPX page, for any given page. E.g. unknown to the unsuspecting user who requests catalog.aspx, I would actually serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using grep/gsub To Find First Colon Only I have a long file which is written as ONLY one column.
This column contains gene names followed by a colon (:) then by the name of a microRNA fragment.
Unfortunately, the microRNA name MAY ALSO contain a colon (:).
I want to replace ONLY the first colon with a tab (\t) an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create a working framework with dylib files in Xcode 4 I have created a new cocoa framework in Xcode, removed all the libraries and files it includes at the beginning except the supporting files.
I have 2 files:
add.h
#ifndef add_add_h
#define add_add_h
void add(void);
#endif
and
add.c
#include <stdio.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Can I use email addresses as usernames in django-auth? I'd like to use email addresses as a pseudo-username of sorts while using Django's auth module. Can I do this? User.username is limited to 30 characters which really isn't acceptable for longer email addresses. I know that the User object also has an email_addre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling a method with an index on ArrayList in c# Ok here is my dilemma, I want to create an array of custom objects but then be able to do something like list[index].method call.
as an example:
*
*program starts
*program creates a master array which holds GenericClass< T >(param)
*each generic class then creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert JSON object to Objective-C Cocoa object? Am developing a cocoa application, where I have to invoke java web scripts and fetch the response of the web script object and convert it into Objective C readable objects. I would then need to manipulate the fetched data for import, print, etc.
How to I intera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: pointer problems? buffer is a protected void* part of my class.
void* ptr;
ptr= buffer;
if(ptr == pvTxt)
return ptr;
while (*((unsigned char*)ptr) || *(((unsigned char*)ptr)+1))
((unsigned char*)ptr)++;
return *((unsigned char*)ptr)+1;
Everything up to the:
((unsigned char*)ptr)++;
return *((unsigned char*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deleting all array values from a specific offset and on I have an array that has 120~ or so offsets and I was wondering how you would delete all the values of said array after a certain offset containing a specified string. For example: Offset [68] has the string 'Overflow'. I want to remove everything including 68 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Trigger on Insert, Delete, Updated I have the following trigger
ALTER TRIGGER [dbo].[RefreshProject]
ON [dbo].[Project]
AFTER INSERT,DELETE,UPDATE
AS
BEGIN
SET NOCOUNT ON
DECLARE @percentage decimal(18,2)
DECLARE @ProjectID int
DECLARE @TASKID int
IF EXISTS(SELECT * FROM Inserted)
BEGIN
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python inserting backslashes during regular expression I'm trying to do a regex to substitute in a backslash, but Python seems to be inserting a double-backslash, and I can't make it stop!
>>> re.sub('a', '\\ b', 'a')
'\\ b'
Double backslash is supposed to be backslash (escape + backslash = backslash), but it ends ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Installing NumPy I have Windows Vista and am running Python 2.7. I am having trouble installing some Python libraries including, NumPy, SciPy, and pygame. I am currently trying to copy the NumPy file straight to my computer (C:\numpy) and then unziping the file there. In a command prompt I then run the code;
cd c:\n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Silverlight wcf ria services : Validation Annotation questions How do i do the equivalent of [Required] in xaml code behind?
I have a dataform that autogenerates the fields from a domain service class. Is it possible to add or remove the [Required] validation in the _AutoGeneratingField method?
Thanks
A: Try to cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot get selected type from GetTypes I want to initialize classes in the following assembly which are inheriting from the EntityBase class using reflection.
I am guessing the lambda expression is correct but I don't know how to get those 2 classes (there are 2 classes in assembly which inherit EntityBase) from typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: json object referencing I have the following list of search terms in JSON:
http://completion.amazon.com/search/complete?method=completion&q=halo&search-alias=aps&mkt=1
[ "halo",
[ "halo reach",
"halo anniversary",
"halo 4",
"halo 3",
"halo mega bloks",
"halo 2",
"halo sleepsack",
"halo ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Binding visibility of a control to 'Count' of an IEnumerable I have a list of objects contained in an IEnumerable<>.
I would like to set the visibility of a control based on the count of this list. I have tried:
Visibility="{Binding MyList.Count>0?Collapsed:Visible, Mode=OneWay}"
But this doesn't work. I tried bin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Testing in Rails3.1 is very slow. Is there some sort of solution to load the tests faster? I am assuming that the tests are loading slower because of the asset pipeline. I am wondering if there is some sort of gem, or magical spell that I can use to make the tests load faster. rake test:units takes forever.
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I dynamically define a Ruby method that takes a block? I know that I can dynamically define methods on a class using define_method, and that I specify the parameters this method takes using the arity of the block.
I want to dynamically define a method that accepts both optional parameters and a block. In Ruby 1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Converting correctly between tz unaware time, UTC and working with timezones in python I have a string in the form '20111014T090000' with associated timezone ID (TZID=America/Los_Angeles) and I want
to convert this to UTC time in seconds with the appropriate offset.
The problem seems to that my output time is off by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SUM a subquery? Looked through questions with similar titles, but none quite covered my question. I have a query that looks something like this.
SELECT
bus_products.id
, bus_products.prod_name
, (
SELECT SUM(bus_warehouse_entries.quantity) * bus_products.weight
FROM bus_warehou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to go about updating the GAE SDK? I'm thinking about updating my version of the GAE SDK (1.5.1 -> 1.5.4). However, I've never updated a SDK before and I can't find any tools provided by GAE to facilitate this task nor am I aware that GAE does this automatically.
I realize I could just download the new version of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Oauth 2.0 October 1st deadline, what exactly happens with old FBML apps? I'd like a clarification from someone at Facebook about the Oct 1st HTTPS deadline and it's impact on old FBML apps..
As per:
http://developers.facebook.com/docs/oauth2-https-migration/
Facebook says:
"an SSL Certificate is required for all Can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django get all related Choices where Event=Event.id I'm trying to create my first application using Django. I'm using the following code to create a list of events.
{% for Event in location_list %}
{{ Event.lat }}, {{ Event.long }},
html: "{{ Event.id }}",
}]
{% endfor %}
I need to edit the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get response from loading movie to youtube i am using the ZEND Gdata and youtube api to upload vidoes to youtube
http://code.google.com/apis/youtube/2.0/developers_guide_php.html#Direct_Upload
When I upload a Video how do I capture the Video ID that was generated and also the youtube link ?
try
{
$newEntry = $yt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Autocomplete Google Map V3 Places impossible to customize? I narrowed autocomplete to a region and to a bounds that cover only Australia, but I am still receving autocomplete with Chile and China and other country out of the selected area.
Does anyone have a good solution to work this problem?
I also can't change th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Basic question complicated solution - Tomcat to JBoss Why can't the JSTL jars having tld files present in my web-inf/lib directory be read nicely by tomcat but not when i move to jBoss 5?
Is it a classloader issue?
I tried researching but there exists no clear answer. I read a huge classloader related article but no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MEF/Unity Dependency Resolution failing on multiple threads My web application uses Unity for DI. Another section of the webapp uses MEF. The code works fine in a single threaded session. But as soon as I click on the same link from two different web sessions (CHrome and FIrefox). I'm not sure if this is a circular ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does an embedded form not respond to arrow keys? I am building a simple plugin framework in Delphi (XE) where the plugins are forms than can be optionally embedded into a TabSheet on a main application. There are examples on the web that explain how to do the embedding, for example: http://delphi.about.com/od/ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562893",
"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.