text stringlengths 8 267k | meta dict |
|---|---|
Q: I need to create a timer that has hour, mins, and seconds I currently have code that can display mins and seconds.
But the problem I'm facing is that when the mins gets to 60, it counts up to 61 and beyond.
How can I add the hours?
-(void)update:(ccTime)dt{
totalTime += dt;
currentTime = (int)totalT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iOS: How to trim an image to the useful parts (remove transparent border) I'm trying to automatically show the useful part of a largely transparent png in an iPhone app. The image may be say 500x500 but it is mostly transparent. Somewhere within that image is a non-transparent part that I want to display to the user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to get content of that contains other embedded XML tag in Java? I have an XML document that has HTML tags included:
<chapter>
<h1>title of content</h1>
<p> my paragraph ... </p>
</chapter>
I need to get the content of <chapter> tag and my output will be:
<h1>title of content</h1>
<p> m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Microphone input gets -120.0 dB after call interruption (this is my first question so i hope i give enough information)
i am developing an application that samples the microphone input continuously with a timer.
during normal operation everything is ok, if i close the app with the home button and then return to it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redis queue with claim expire I have a queue interface I want to implement in redis. The trick is that each worker can claim an item for N seconds after that it's presumed the worker has crashed and the item needs to be claimable again. It's the worker's responsibility to remove the item when finished. How would you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to provide auto change for a QTimeEdit? I have a QTimeEdit widget on my dialog and I want to provide some kind of autochange - if the cursor is on minutes section and the time is 04:59, the next click on the arrow up would lead the time to change to 5:00.
How to do that?
I saw some mention of AutoAdvance propert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't I declare a string in my program: "string is undeclared identifier" I can't declare a string in my program:
string MessageBoxText = CharNameTextBox->Text;
it just doesn't work. It says string is undeclared identifier. What am I missing in the namespace or include or something like that?
A: To use the sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to delegate a task to main thread and wait for it's execution to complete? I have a Borland C++ project where I see a synchronize() method which a worker thread can use to delegate a task to main thread and wait for task to complete. In C#, there is a similar Control.Invoke() method. Is there anything similar wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS based framework like SCSS (Adaptive design) I am designing a web app from scratch, which would be a fluid-based layout and the same HTML would render on different screens using the adaptive CSS.
I am going to use adaptive CSS (or responsive design) for this.
I was looking to use a framework like SCSS (http://sas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to include text to speech functionality in my code? If I have an HTML and JS page, and I want to add text to speech or even speech to text to it what is the best way? I already have code for speech to text in C# but am not sure how to link them together!
I saw a text-to-speech google chrome extension. How can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: easyXDM without Flash We are evaluating easyXDM for reading 3rd party cookies with http://easyxdm.net/wp/2010/03/17/sending-and-receiving-messages/ (i.e. following socket based messages).
We have observed that easyXDM uses flash for communication. I would appreciate your letting me know that would easyXDM will conti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: aspectj-maven-compiler plugin : how to weave JRE System.*? I'm trying to detect where a mysterious System.gc() comes from,
so I'm hoping to create a pointcut on all calls to System.gc()
the doc describes how to weave existing jars and existing dirs, but
how do I weave the JDK itself ?
Thanks a lot
A: You can weave ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to apply two transformations with different origins to one div? I've got a div that I would like to rotate about its y-axis (with perspective) then do another 3d rotation on it around a different origin and display the result. Is this possible? I've only been able to get transformation-origin working ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ABGroupAddMember returns false. Why? When I call ABRecordRef aRecord = ABPersonCreate(), ABGroupAddMember() returns YES.
But when I use ABNewPersonViewController
- (void)newPersonViewController:(ABNewPersonViewController *)newPersonViewController didCompleteWithNewPerson:(ABRecordRef)person
And use the (ABRecordRe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: unsupported operand type(s) for /: 'str' and 'int' I am new to Python and am learning some basics. I would like to know why I am getting this error. The code is:
Hours = raw_input ("How many Hours you worked for today : ")
minutes = (Hours * 60)
Percentage = (minutes * 100) / 60
print "Today you worked : ", "percent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Mysql multiple insert statement not adding all records I'm inserting a max of 3000 records and for this I just wrote a single query like
insert into p_code (id_user_staff,user_id,postalcode,dropDownGroup)
values
(187,51,'AB10',1),
(187,51,'AB11',1),
(187,51,'AB12',1),
(187,51,'AB13',1),
(187,51,'AB14',1),
(1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Groovy - Strings with "$" replacing it by \$ How can i replace a file that contain $ to \$
e.g
dollar file contains
string 1Mcl0c41$
after replacing it should look like
string 1Mcl0c41\$
using sed i can perform
$ cat dollar
string 1Mcl0c41$
$ sed "s/1Mcl0c41/1Mcl0c41\\\\/g" dollar > fixed-filename
$ cat fixed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use private frameworks in Xcode for iOS? How do I use private frameworks in Xcode 4.1 for iOS 4.0 or later? Tutorials or articles would be useful.
A: The short answer is: You don't.
If you plan on going through the App Store approval process at all, then you might do some careful object graph navigation and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Implicit data type conversion in JavaScript when comparing integer with string using == The code:
var num = 20;
if(num == "20")
{
alert("It works");
}
else
{
alert("Not working");
}
The question:
*
*In C programming we have a rule name data type promotion, where when there's a mix of data type (example:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Using JSTL "dynamic" parameter name JSTL Code:
<c:forEach var = "currentUser" items = "${users}">
<c:out value = "${currentUser.userName}" /></p>
<c:if test = "${!empty param.${currentUser.id}}">
<p>Details</p>
</c:if>
</c:forEach>
I have a list of user objects and i display all of their names. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Highcharts onclick event break my web service request. Why? I am new in web development, any help will be greatly appreciated!
Please give any idea if your have in my case below.
So this is situation. I have a web application. Web application has ascx page and web service. I put several charts of highcharts (client ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# - How to use unassigned variable in try catch block crmFactory.RegisterDemoAccount throws Exception. In order to use the variable res I need to initialize it.
Since AccountRegistrationResponse is not initializable, how can I declare res without getting compilation errors about using unassigned variables?
I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Function to use with multiple elements I have modified a function to meet my need. This is what I have written to restrict multiple repetition of dots:
$('#title').val(){
replace(/\.{2,}/g, '.');
});
Is it correct? How can I make this in function so I can call with every element of the form?
A: 1. Here is your... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Conversion of Datetime from server to another server I have SQL Server 2000 in both server. We have imported existing data to new server. And also we use vb application. Now we changing our data to new server. When we run application to retrieve date wise details it shows error
'The Conversion of Datetime to varch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: parentNode.getElementById() is not working I encountered a problem while practicing html. When I used parentNode in JavaScript, I thought it is not hard to treat.
But to get some element under parentNode using getElementById or another function is not working as my thinking.
var this_question = selectObj.parentNode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: publishing Db after creating using EF Code first I have created a project in MVC 3 using code first and nugget ,
And I would like to clear a few thing before publishing to my shared hosting:
In my project I have a class name: IchudShulContext (IchudShul is my project name)
In my sql server express it has created a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xcode confusion - property and synthesize, retain? I see the property and synthesize being used without "declaring the variable" first.. and I'm a bit confused about what properties to use. I want to alloc and init my viewController in AppDelegate and then be sure it's there for the remainder of the run. Clearly I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SSRS chart to show totals by hour I have the following data:
+--------------------------+---------------+
| Date Time | Number of Hit |
+--------------------------+---------------+
| 2011-10-03 13:01:00 + 10 | 2 |
| 2011-10-03 13:05:00 + 10 | 3 |
| 2011-10-03 14:01:00 + 10 | ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I call socket::connect() from a handler invoked by resolver::async_resolve()? I'm using a wrapper class to represent a network connection. My implementation contains a method, called async_connect(), which resolves a host/service and connects to a related endpoint (if possible). Something like this:
void tcp:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I deploy apps to Blackberry devices without signing? Is it necessary to sign apps before deploying them to devices? Isn't there a workaround where we can deploy apps without signing?
A: It is possible to run an unsigned application on actual device, only if you did not use "signed API" classes.
In RIM API javad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: dojo Show/Hide One ContentPane While Another ContentPane Is Liquid I've been struggling for weeks trying to crack this nut so I'm not sure if it's impossible, or if it's my lack of coding chops... or both. I'm not a programmer and I'm a newbie to Dojo Toolkit.
I have a site using the BorderContainer layout. I'm tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE and multiple float elements i'm trying to position a number of buttons with float and it works just fine in all browsers. but the Internet Explorer adds some wird element after the 2 floating button (or before the third floating button).
Can anybody help me?
Here's a picture!
Here's my code:
<style type="text/css... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery - Background color not changing
Possible Duplicate:
jQuery animate backgroundColor
Changing the background color of a <div> section
I have the following code trying to change the background color of a text after pressing a button. The case is that it is not doing what it is intended to do. Why is that? Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Could not find rack-cache-1.0.3 in any of the sources I have created a very basic Rails 3.1 app, deployed to a box that runs Ruby 1.8.7 (P334) (I can't easily go to 1.9.2. there unfortunately).
After deploying and running 'bundle install' I tried to run a console:
bundle exec rails console
And I get:
Could not fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to protect media content (video, audio) on Android from being saved/redistributed? What opportunities are there for regular app developers (with that I mean, you're not a million dollar content producing company or distribution channel provider, but a regular, small app development company) to secure video/audio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: JavaScript Center Align How can I align the entire script to center? I've never actually coded before in javascript and I just want to modify a quick bookmarklet. I've tried stuff like align=center for different components of the script but no luck. Is there something like <center> (in html) for js?
Thanks
EDIT: bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Draw Multiple objects in java? Hey guy's im making a java game where yellow blocks appear randomly across the game screen and you have to collect them. These objects are created from one class and i was wondering if there is a way to draw all of them?
This is the code that spawns them:
package OurGame;
import java.a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Returning a reference to *this, from an anonymous object on stack Suppose the class Coord3D has a method
Point2D& Coord3D::get2DPart(){
return *(Point2D*)this;
}
(Coord3D is just int x; int y; int z;, and Point2D is the 2D version of it with exactly int x; and int y;)
Would the following be safe:
Point2D x = C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: get all calls to a function in javascript Is there a way to find all the functions that call another function? (And then by extension, all the functions that call those functions, etc.)
My guess is it won't be possible for all cases, but certainly it could be done for most use cases, no? Like if somebody defines t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: debugging a function in R that was not exported by a package I would like to step through, using debug() or trace(), a function that was not exported. For example, how can I do it for vcov.polr of the package MASS, which is called from the function polr. polr is exported, but vcov.polr is not.
That is, when I run po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Compile Setup project with devenv.com - "ERROR: Unable to update the dependencies of the project" I have a Setup deployment project in VS 2010.
The project compiles perfectly with the GUI interface of VS 2010, but any time I trying to compile it via vs cmd (devenv.com) it comes up with this error:
ERROR: Unable to u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: MissingFormatArgumentException error I have been successful in compiling my inventory program:
// Inventory.java part 1
// this program is to calculate the value of the inventory of the Electronics Department's cameras
import java.util.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
public clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Network timeouts in Android I am experiencing way too many timeouts in the communication between my app and my server..
My problem is that the server doesn't even get the message. So I guess the problem is somewhere inside my Android code and not the server code.
Here is my code:
HttpParams params = new BasicHtt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: gcc compilation and Make file error I have a directory called "aos" in which i have the results of the make, namely .o file and .a file.
My test case file in a directory called "test1" which is under the "aos" directory.
I am in the test1 directory which has a file called main.c (this is the file I want to execute).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to do a Proper Escape of this Function? I have a DIV tag generated from jQuery that goes like this:
$('#results')
.append('<DIV id='
+ A.pid
+ ' onmouseover=function(){google.maps.event.trigger(marker, 'mouseover');};><H3>'
+ A.name
+ '</H3></DIV>');
Firebug is giving me an error "missing ) argument after ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compression and decompression of data using zlib in Nodejs Can someone please explain to me how the zlib library works in Nodejs?
I'm fairly new to Nodejs, and I'm not yet sure how to use buffers and streams.
My simple scenario is a string variable, and I want to either zip or unzip (deflate or inflate, gzip or gunz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Backface culling with Molehill Using Flash 11 RC1 with the new Molehill API, I would like to enable backface culling. The beta documentation is pretty vague, but the example implies Molehill wants front-facing triangles to wind counter-clockwise, which is pretty normal.
But when my polygons wind counter-clockwise, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using variables in object property names I have a variable called direction that stores either: left, right.
I need to change the affected margin based on that variable.
Right now I'm using conditions, is it possible to replace "left" with the output of the variable direction?
$("#map").animate({"margin-left": "+=50... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery as AMD module and optimizing with r.js Allright, he is the thing. I am using curl.js for my AMD loader, but i don't like much of "cram" because it needs to be run on unix and i am developing on Windows. So the r.js adapter for nodeJS from RequireJS library comes in mind, because node has already binary for Wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: using Jquery to get XML and put into html table I know this has been asked before, but I can't figure out what's wrong, I'm trying to load in a XML file with a list of shows using jQuery so that the shows can be updated in one file, and upload onto multiple pages. To me it seems like I'm doing everything right, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is there any benefits for using ORDBMS instead RDBMS behind JPA Today I reviewed postgreSQL wiki and I found it is a ORDBMS (object-relational database management system), so I want to know is there any benefits for using postgreSql (RDBMS) behind the JPA (hibernate, eclipselink, ....) instead of a RDBMS (Mysql, ...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP Copy Directory Function I'm working on a Minecraft Server Dashboard, and one of it's functions is to backup and restore your world (a directory). I already have a function (see below), but, as you can probably see, it's pretty bad code. Anyone know of a better, cleaner function?
function backupOrRestoreWorld($so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CakePHP: How can redirect to a new web page with html anchor ... ? The comment form =>
echo $this->Form->create('Comment',array('url'=>array('controller' => 'comments', 'action' =>'add', $listposts['Post']['id']) ) );
echo $this->Form->input('post_id',array('type'=>'hidden','style'=>'width:30%','value'=>$listposts[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why variadic functions require at least two arguments? I'm trying to plug a hole in my knowledge. Why variadic functions require at least two arguments? Mostly from C's main function having argc as argument count and then argv as array of arrays of chars? Also Objective-C's Cocoa has NSString methods that require fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I know a radiosity linear system can be implemented using the iterative method? That is, I want to check if the linear system derived from a radiosity problem is convergent.
I also want to know is there any book/paper giving a proof on the convergence of the radiosity problem?
Thanks.
A: I assume you're sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to create a fade-in/fade-out effect using CSS 3 only? Is there a way to create a fade-in/fade-out effect on mouse over/out respectively that only uses CSS 3?
If there is, would you say that it is a good way to implement such an effect with CSS only or not?
To me, it seems like a presentation only issu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: why BOOLEAN of winapi uses 1 for true and 2 for false? I didn't know. just saw it in my debug window a BOOLEAN from STORAGE_DEVICE_DESCRIPTOR was resolving to 2 instead of of 1. I got panicked thinking 2 means false. then I realized its 1 for true. But why this kind of odd design ? Or I am doing something wrong in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do they want an 'unsigned char*' and not just a normal string or 'char*' EDIT: After taking adivce I have rearranged the parameters & types. But the application crashes when I call the digest() function now? Any ideas whats going wrong?
const std::string message = "to be encrypted";
unsigned char* hashMessage;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HTML Page Title in Excel VBA Given an url, how can I get the title of the html page in VBA in Excel?
For example suppose I have three urls like :
*
*http://url1.com/somepage.html
*http://url2.com/page.html
*http://url3.com/page.html
Now I need to get the title of these html pages in another column. How do I do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any API which can detect GPS location is changed in the iPhone native application? I want to show gps coordinates in the Label, is there any default API which can observe/detect that GPS location is changed,so we that I should be able to take and show new GPS location in the label.
A: You should take a loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cant compare two files. while loopsdont work EDIT:
i have to files, FileOne and FileTwo, which in every line there is a word or more. and i want to compare these two file, and see if every line of fileOne is exact the same or piece of a line of FileTwo. I made the code below with your ideas, but i my result is to sm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) I'm using XAMPP on Windows 7. and when I try to open a login.php of current project
I get this error
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you use a variable as an index when slicing strings in Python? I've been trying to slice two characters out of a string using a loop, but instead of grabbing two characters, it only grabs one.
I've tried:
input[i:i+1]
and
input[i:(i+1)]
but neither seems to work.
How do I use a variable for slicing?
The ful... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Algorithm - find the minimal subtraction between sum of two arrays I am hunting job now and doing many algorithm exercises. Here is my problem:
Given two arrays: a and b with same length, the subject is to make |sum(a)-sum(b)| minimal, by swapping elements between a and b.
Here is my though:
assume we swap a[i] a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Encrypting the user credentials using SHA1 algorithm I am creating a blackberry application which sends the request to the server. So authentication of the user is required. So for doing this i want to encrypt UserID and password using SHA1 in blackberry. The encrypted data which is made using SHA1 algorithm on User... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the list of options of a linux kernel module? For example, there is a max_loop option for the loop module.
Generally, how can I know what options are supported by a kernel module? Or, where can I find the list, should I dive into the source codes?
A: Documentation/kernel-parameters.txt in the kernel docu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to deal with uncompilable source code in web app projects that need to be deployed for testing? I have a web app project under development using Maven 2 that I want to deploy on server to be able to view the webpages for testing purposes while developing. Howver there is also a lot of uncompilable code in the pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android upload photo to facebook illegal threadexception in my app i give the user otion to share using action_send intent.
during the upload to facebook my app crashes but the photo uploading succeeds.
this is my code and the logcat. what do you suggest?
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Translate and scale animation I have a wpf application and image inside a canvas. The image is placed in 0,0.
I need to animate the image moving from 0,0 to 500,200 and in the same time growing (I like to make an effect like coming from far to near).
If I do this:
TranslateTransform ttx = new TranslateTransf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GWT, Maven and AspectJ: RequestFactory validation for AOPed code? To use GWT 2.4.0 RequestFactory, you have to run request factory validation tool. Otherwise, it just won't work. [Google says][1], that it's enough just to add 2 plugins to pom.xml:
<!-- requestfactory-apt runs an annotation processor (APT) to
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get the name of the Focused element in C# Is there a function in C# that can return the Name of the Focused element and display it in a text-box or something?
A: or you can do something like this...
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set objectAtIndex to be the integer in an NSString? I've got this:
if ([[currentPlayer rankicon] isEqualToString:@"0"]) {
self.casteImage.image = [casteImages objectAtIndex:0];
}
Which works. However, I have some 16 images to assign, and since the NSString and the index id are the same, I'd like to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Query about Properties Vectors in C++ I am kind of a beginner and just came across the concept of vectors in C++. I have a few questions about it
1. Is there a concept of 2-D vectors in C++? if yes, then how do i declare corresponding to a 2-D Matrix a[n][m]? Here, n and m are variables.
2. How are vectors passed a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to handle events with multiple classes? So I have a class that is basically a manager for 20+ copies of another class. What is the best way of handling the same event fired from each one of them? And is this the best way of unregistering the events? Or should I be using a single EventHandler somehow?
I put ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Margin menu in IE Faced with the problem. Made a menu on Jquery. All browsers good show site, except of course Internet Explorer. Tell me, what can be done to remove the padding in IE, the site address http://edusf.ru/project/
A: First you are missing a doctype
<!DOCTYPE html>
Your page shows up in Quirks mode in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gallio test suite installation I am using MbUnit test framework and Gallio.
I need to create an installer that install it and run some test on silent mode.
I noticed that Gallio got a quiet installation mode 'GallioInstall.msi /quiet'.
My problem is how to know when the installation is done? because when i run on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java - splitting a string onto a new string? E.g.
String s = "You should always brush your teeth before every meal in the day.";
but I want do split part of it into a new sentence like so:
String s = "You should always brush your teeth/nbefore every meal in the day.";
so the result is this:
String s = "You should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How could I stop spam if my form is using ajax submit method (with no reload)? I have a form which uses ajax for data submitting. Here is the html:
<form>
<input type="text" id="content" name="content">
<input type="submit" class="button" name="button">
</form>
and the JavaScript (jQuery):
$(function() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JavaScript for (pasting!) only numbers in a textfield I'm using this script to have a textfield with only numbers, and it works just fine, only my users cant past a number, and as I need 7+ digits, I guess a lot of people will be using copy paste.
I saw some solutions which use jquery, but seams a bit too heavy for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to build an Object array out of JSON array using Javascript overlay types? My JSON response is an array of Object (Folder for example).
I would like to generate an array of Folder objects using Javascript overlay types.
I tried the following method:
public static final native Folder[] buildFoldersArray(String js... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: delete contacts from windows phone 7.1 c# Can I delete contact from windows phone 7.1 using windows phone 7.1 sdk and c# ?
example : I have "mero" contact and I want to delete it to make new one with some new information
A: Due to internal restrictions, you cannot alter or delete user information on the phone (in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hover event to occur independently on separate images Alright, so I have some code hurr:
$(document).ready(function(){
$("div.post.photo img").hover(function () {
$("div.show").slideToggle("fast");
});
});
Now, it works like a champ. Except for the fact that it occurs on all images simultaneously. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swap elements when you drag one onto another using jQuery UI I have an arrangement of elements on a page:
<div>
<div class="dragdrop" style="top:0px; left: 0px; ">1</div>
<div class="dragdrop" style="top:40px; left: 0px; ">2</div>
<div class="dragdrop" style="top:60px; left: 0px; ">3</div>
<div class="dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Error trying to assigning __block ALAsset from inside assetForURL:resultBlock: I am trying to create a method that will return me a ALAsset for a given asset url. (I need upload the asset later and want to do it outside the result block with the result.)
+ (ALAsset*) assetForPhoto:(Photo*)photo
{
ALAssets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: use of parent's function (inheritance c++) I have four .cpp files, Animal, Cattle, Sheep, DrugAdmin.
Animal is parent class of Cattle, and it has calcDose(), which calculates the amount of dose. DrugAdmin is main function.
The thing is, I want to use calcDose() function differently (Cattle, Sheep) and no calcDose() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to maintain JavaScript function variable states (values) between calls? I am looking for getters and setters functionality but cannot rely on __defineGetter__ and __defineSetter__ yet. So how does one maintain a function variable's value between function calls?
I tried the obvious, but myvar is always undefined... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Render template to variable in expressjs Is there a way to render template to a variable instead to output?
res.render('list.ejs', {
posts: posts
});
something like this
var list = render('list.ejs', {
posts: posts
});
A: The easiest way to do that is to pass a callback to res.render, in your example:
res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to view a Collada mesh in a Qt application? How do I create a small 3D viewport and show there a Collada mesh? Also, mesh has textures, and user would want to rotate and zoom in/out with a mouse.
A: I believe that OpenSceneGraph supports the Collada file format, and provides a choice of Qt widgets.
You may need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: minimize app to system tray I have a Windows forms app powered by C# and Visual Studio 2010.
How can I minimize my app to system tray (not taskbar), then bring it back when doubled click in the system tray? any idea? also, how can I make some menu in the icon in system tray and when I right click it, it shows a menu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "123"
} |
Q: How to include a php script in all HTTP requests coming to the server I have a file called init.php which I want to get automatically included in each and every HTTP request coming to my server. My server is on LAMP configuration with PHP 5.3 and fast CGI. Any method to achieve this is welcome.
What I have already t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: UITableView with live data also has user interaction same time I'm working on proof of concept project. That is using a UITableView to display some live data. "live data" is beeing merging with sensor information on real time in the the app.
After UITableView rendered with some NSMutableArray data, that NSMutableAr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to call a server-side ASP.NET event from the client-side I have an asp.net button in the gridview footer, and I wanna to call the server-side ASP.NET button event in the client side (JavaScript).
How to do this please code details if possible.
My .aspx:
<FooterTemplate>
<asp:ImageButton ID="ibtn_add" ImageUr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update json in database mysql I want comparison between two table (table_foreign, table_submits) in database that if not existing some data from table table_foreign in table table_submits on database, deletded it data in table table_foreign or updated.
$query_tfhi = $this->db->query("SELECT * FROM table_foreign O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JTable removeRow(), removing wrong row I have a JTable and I need to remove a row, namely, the selected row.
So first, I get the the table model :
DefaultTableModel model = (DefaultTableModel) table.getModel();
Then the selected row (if the second row is selected, this returns 1, which is understandable because... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I access contacts list in Nokia mobiles using Qt Application? I want to make a program using Qt that can access the contacts list of Nokia mobiles.
I mean by accessing changing the contacts telephone numbers "not viewing them only".
A: Look here: http://doc.qt.nokia.com/qtmobility-1.1.0-beta/qcontactmanager... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaFX alternatives as Java and Linux mind coders? What are the Linux user alternatives for JavaFX powered by Oracle? (without switching to Mac/Windows platform).
A: *
*Flash, Flex
*Microsoft Silverlight (Moonlight port)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7625453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Has facebook changed its image rendering logic recently? Since the past few months, I've been noticing that they tend to some kind of pixelated image first which then gets replaced by a much better image.
Is this some kind of trick to reduce perceived latency by facebook?
Or is it Chrome doing it?
A: i think it's p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determining the location of Top Of Stack I am trying to create an array based implementation of Stacks. I am a bit confused with where should the Top Of Stack (a variable in my implementation) be when,
*
*The list is empty
*The list is full
*The list is neither empty and not full
Please help me out.
Thanks.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: using sql rowcount in limit query My Table looks like this:
id | Value
-----------
1 | High
2 | Medium
3 | Low
4 | Low
My php query looks like this:
$sqlquery = "select id from db_name order by id desc limit 3";
$fetchres = mysql_query($sqlquery);
if(mysql_num_rows($fetchres)>0){
while($r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Can you reference a non-static method in a static context? Use of delegates follows the same rules as calling methods - you can only refer to a method via a delegate if you are allowed to call that method explicitly, which means you cannot reference a non-static method from a static method, even if you don't actuall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7625474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.