text stringlengths 8 267k | meta dict |
|---|---|
Q: Flash sending 2 variables to php script, 1 of them being xml So this is probably a simple question, but for some reason, I'm having problems with it. I have no ideia why, but I suspect the fact that sending a xml with full "< something >" tags may cause the php to behave wrongly.
So all I need is to send (from a swf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery sliding drawer menu is blocking other content My Working Menu (with a minor problem)...
I have a sliding drawer menu system I've been using successfully for quite a while. It uses rollover images and this working jsFiddle (#1) below nicely demonstrates just the relevant operation with static div's in place o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does CredentialCache.DefaultCredential contain empty strings for domain, username, and password Does anyone have any ideas as to why CredentialCache.DefaultCredential would return an ICredential instance with empty strings for domain, username, and password? I'm running a WCF service on IIS 7.5. It works fine ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I pass an argument that was passed to main (in argv) to my function? How can i pass argv[] to my function?, I am getting the errors when I run my program. I am new to c++ but i think i am not passing it right look at the error and my code. Now dont worry about the Depth First algorithm.. i will get to that la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java issue with var-args and boxing I have a question related to the following code snippet:
class VarArgsTricky {
static void wide_vararg(long... x) {
System.out.println("long...");
}
static void wide_vararg(Integer... x) {
System.out.println("Integer...");
}
public static ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: IIS url rewrite - css and js incorrectly being rewritten Having an issue with my urlrewrites - anytime I point to a page that is to be rewritten it fails to display because it is also applying the rule to the css & js files that are referenced within my webpage.
To try and remedy this I put in a fully qualified path... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why is Heroku skipping precompile step in Rails 3.1 app? I'm messing around with a rails 3.1 app and deploying to Heroku Cedar.
When pushing an app, Heroku skips over the precompile step without throwing an error:
Your bundle is complete! It was installed into ./vendor/bundle
Cleaning up the bundler cache.
-----> Wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Importing code from file into Python and adding file dialog box I have a python script signalgen.py that plays audio using equations but I would like to be able to hard code the file where the equation is stored in eq1.txt or choose a file and import the equation.
The problems I'm having are:
1) How can I hard code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: storing/retrieving IPv4 & IPv6 addresses in MySQL Sorry I don't know much about this subject, but all I'm looking for is a quick-and-easy solution for uniquely representing any IP address (v4/v6) in MySQL so I can easily retrieve the last time (if any) that a particular computer has visited my site.
I don't need to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL: Join a table to itself I have a table of preferences, called "txp_prefs". I would like to return multiple preferences into a single row; the reason I prefer this to a simple concatenation is that I'm using a plugin in textpattern which can process the single row.
Here is the testing data I have:
-------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Internal Error in Eclipse I'm trying to launch a program in Eclipse, but I keep getting an error message saying:
An internal error occurred during: "Launching WindChillTester".
org/eclipse/jdt/debug/core/JDIDebugModel**
WindChillTester is the name of my program. What should I do to fix this?
A: Adding
-Dcom.ibm.ic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get Flash to give me hints on objects that are on the stage? If I have an element on the stage (let's say a TextField, or a component ComboBox, for example). And I would like, when I reference it in the action script, for the IDE to give me the prompt to show me all the properties associated with that eleme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Advantage of over What are the advantages of using <h:graphiImage> over normal <img> (in terms of performance e.g. parse/render time, possible http caching if any?, etc.) for JSF2?
A: You don't get server-side attributes on <img> elements.
A: There is no safe and easy way to set an absolute path for the src attr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "Message Must be multiple of 16" Encrypted Audio over the Network with Python I am sending encrypted audio through the network in Python. This app works momentarily then breaks saying it must be a multiple of 16.
Not sure what I am doing wrong. Or where to look in the code to solve this.
I would appreciate any help ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery dropdown menu won't show hidden divs There is something obvious I'm missing about this.. just trying to display hidden divs based on the value of dropdown menu... here's a jsfiddle:
jsFiddle example
and the code..
<p id="data"></p>
<select id="dropdown">
<option label="US CERT1">"#divone"</option>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Expression Blend VSM vs Event Driven I recently used Expression Blend and I found that it has something called Visual State Manager, what is the difference between it and the regular event driven model, and which is better?
A: Events are for instances of "things" happening e.g.:
*
*Was I clicked?
*Did my timer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Confused with syntax, calling a JS function with an input button I am having troubles understanding the xhtml syntax for calling a function with an input button. I have searched for this, but cannot find a clear explanation.
This snippet of code is from my book, and it works ok, but I'm not sure exactly how the foll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: implementation counting sort here is code for counting sorting
#include <iostream>
using namespace std;
int main(){
int a[]={2,3,1,2,3};
int n=sizeof(int)/sizeof(int);
int max=a[0];
for (int i=1;i<n;i++) {
if (a[i]>max) {
max=a[i];
}
}
int *output=new int[n];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Avoiding `save!` on Has Many Through Association I have a has_many through association with an attribute and some validations on the "join model". When I try to do something like @user.projects << @project and the association has already been created (thus the uniqueness validation fails), an exception is raised ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Two operators simultaneity overload in c++ I want to represent my object like an array. I mean that the programmer can write in his code
myobject[3]=2
In the back (in myobject code) there isn't an array at all, it's only representation.
So I need to overload [] and = simultaneously.
How can this be done?
thank yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PHPUNIT without installation I'm sorry if the question is stupid for some reason. I'm not a phpunit expert and what I'm asking could sound ridiculous.
Is it possible to use phpunit without installation? Just "include" the libraries without installing anything on the server?
I'm asking this because at my workplace no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Googlemaps return object from initialize function I have a list of infowindows lets say numbered 1 to 5.
and they have a form to get directions. When I draw the route the infowindow should colapse. Everything works, I just want the infowindow object available outside the function
infowindow.close() works fine if it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make parameters available in an application What is the standard way of storing a command line argument so that it can be accessed when required?
I can see 2 scenarios:
*
*The argument is consumed immediately (A logging level)
*The argument is not needed immediately (On failure send email to address X)
With sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create vertex attributes based on vertices' neighbors' attributes in igraph? For example, how would I calculate, for each vertex, the percentage of ties directed outward toward males?
g <- erdos.renyi.game(20, .3, type=c("gnp"), directed = TRUE)
V(g)$male <- rbinom(20,1,.5)
V(g)$male[10] <- NA
A: A possib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Would it make sense to make a web server/app server for Rails in NodeJS OK, NodeJS is all the buzz these days because it handles things in a non-blocking asynchronous way. Because of this, it is very well suited to being a server of some sort, handling requests from multiple clients concurrently. So my question is w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to emulate pressing home button in android emulator In android emulator as I understand you can emulate most of the functionality of regular phone, back is emulated by ESC , what is shortcut for pressing home button in android emulator.
A: Did you try the Home key on your keyboard?
http://developer.android.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: A regular expression in Visual Studio to do search and replace on this example line? I'd like to replace lines like the following:
Debug.Assert(value == 10.01);
with a line like the following:
MyAssert.Equals(value, 10.01);
What is the regular expression to perform this, in Visual Studio Studio 2010?
Clarificat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery delay execution of function I need a little guidance. I am trying to delay the execution of these two functions until after the page is fully loaded or timebomb them to happen after 5000 ms.
I am using the latest jquery 1.6
Thank you in advance for your help and code snippits :)
$("a.siteNavLink").each(functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Listening socket connecting without accept being called on Linux I am running code on Ubuntu Linux it is supposed to use a Set and select to check when a listening socket has activity (ie someone trying to connect) and let them connect, the trouble is select ALLWAYS returns 0, and when I try to connect it just conne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What happens when mongodb is out of memory? For example i have db with 20 GB of data and only 2 GB ram,swap is off. Will i be able to find and insert data? How bad perfomance would be?
A: It really depends on the size of your working set.
MongoDB can handle a very large database and still be very fast if your work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Trying to use $.each jquery iterator. What is the difference between these two? vertices is an array of google.maps.LatLng objects, so they should be returning latlng points. It works just fine for the first code snipet. I am having problems when using the second.
// Iterate over the vertices.
for (var index =0; ind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: change order divs with jQuery <div class="test one">aaa</div>
<div class="test two">bbb</div>
<div class="test three">ccc</div>
Is possible change order this divs with jQuery? I would like receive:
<div class="test two">bbb</div>
<div class="test three">ccc</div>
<div class="test one">aaa</div>
i can use only jQue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Equivalent to jQuery closest() in ASP.NET Web Forms Im trying to figure out a way to build a somewhat clever version of the jQuery closest method in C#. Im using a generic method to find the desired control and then index the control chain
public static T FindControlRecursive<T>(Control control, string controlID, ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add dynamically TinyMCE Textarea on Newly tabs I using tab's JQuery plugin UI each tab contains TextArea then are manage by TinyMCE librarie.
I want to do : When you click on tab "+" , that add new tab which contains textarea too.
To create new tab with textearea , it's good. The problem is : I can't edit textarea v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android proguard obfuscated code is causing NullPointerException when it really shouldn't be I have distributed an application on the Android Marketplace. I am getting error reports back in from a small handful of users (maybe 2%) where they are getting NullPointerExceptions where it doesn't make logical sense.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get CODE from formatResult in an Autocomplete plugin? I have this:
var objects_list = [{
"code": "44",
"name": "Privilegios de cuenta",
"alias": "account-privileges",
"typename": "Opci\u00f3n",
"typealias": "object",
"description": null
}, {
"code": "104",
"name": "Asignar apli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Learning Java public static main method I am learning java and I have come across the following problem: write the code for a single file that implements a public static void main(String[]) method when called with any array of strings, can anyone explain how I do this, it to used with an immutable abstract data type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-8"
} |
Q: Error with a SQL statement What I am trying to do is create a view that selects empno, ename, deptno renames the columns empno to Employee_ID, ename to Employee, Deptno to Department_ID
Any ideas to why I have these problems?
SQL> create view DEPT20 AS
2 select empno,ename,deptno (employee_id, employee, Depart... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Preformance issue AutomationID attached property I have question about performance issue with AutomationID attached property. Is it using as much of Cpu and RAM as Name attribute, which is generally not recommended to supply if not needed?
A: This is a classic DependencyProperty and the cost is not that great IMO.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: J2ME Canvas fill background in for loop Im developing a small app with J2ME Midlet and i know canvas is very strong in low level to create GUI. I try some code to create GUI but i got stuck when i try to fill and draw it!
I dont know how can i draw it in loop look like this picture below:
I wanna fill background lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Sending Email "Client Server" Trying to create a email client server through using JAVA and I have implemented the following but got stuck where to go next.. appreciate the help
I am trying to create a socket and set up the input and the output streams. We Take user's request, call up the appropriate method (d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to get the jquery last state Hi I am using the jquery image slider from http://www.gmarwaha.com/jquery/jcarousellite/. this works perfectly but after postback the slider starts from 0. how to remember the last state after postbacks? here is the live demo http://sampath.ind.in
$(document).ready(function () {
$("#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I make my TCP listening app safer? I’m looking for advice on writing a very safe C/C++ app that will listen to a tcp port. I'd like to peek at what others are trying to do to my machine, but I’d rather not install an elaborate honeypot app if I can do what I need with a very short program. With my goal being... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Minitest in Rails Recently, I've read quite a few articles about Minitest. I really like the idea of a super lightweight test framework. I decided to replace rspec with it in a recent project and have had no luck getting it all to work. My problems are
a) getting named routes in my acceptance/integration tests... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to internationalize data that came from Database? I have a ASP.NET MVC Website that relys on resource files for UI internationalization.
Some data in the database will be generated by useres (in their language), but some data is generated by me and users shouldn't edit it. For that system data, I would need to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: YouTube Grid Gallery: How can I get the player to appear in a popup? I'm using the following code:
<head>
<script type="text/javascript" src="http://swfobject.googlecode.com/svn/trunk/swfobject/swfobject.js"></script>
<script type="text/javascript">
function loadVideo(playerUrl, autoplay) {
swfobject.embedSWF(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: On a web server, when is it worth it to do asychronous I/O? I'm working on a web site that is expected attract a large number of users within a short time, and we want to minimize the number of servers required on the farm. Handling requests can involve local I/O, sql server requests to a single db server, and http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error: The navigation property of type 'MVCApp.Models.Order' is not a single implementation of 'System.Collections.Generic.ICollection`1[T]' Q: How can I access the following OrderStatusType within my Order object (both in my controller and razor view...using mvc3/ef4.1/.edmx)? The following code throws the error s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: implementing apt in MobileSafari Does anyone know how to use APT on a website, so respringing, installing/uninstalling .debs, etc work like Cydia, but just on a web browser?
A: There isn't really any App Store like package manager for the web. There is Webmin though, which has a built-in package manager frontend to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accessing youtube services from php I am completely new to php. I am trying to build a system to upload videos to youtube and preserve their URL. Another flash application later combines them. I am clearing the target so that i can be assured that the library can perform these tasks.
1) upload on a default channel
2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trouble with OAuth 2.0 in my Facebook application evertything was running fine in my facebook application until I upgraded it to OAuth 2.0, and im not sure if im doing everything right.
The thing is that I already made the OAuth dialog to work and when the user authorizes the app, it renders my app into the iFrame, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eclipse: The declared package does not match the expected package I have a problem importing an external project. I go File -> Import... -> Existing Projects into Workspace, choose the folder where the project is located and everything is imported - but the package names of the project don't seem to be what Eclipse ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Get item of ListActivity ListActivity always has corresponding ListView element, right? So, has it any method to get list item by index or I have to get ListView instance manually using findViewById and get item from it?
EDIT:
I want to change text of list item in code.
A: The way to go about this is a little diffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Apple Movie Player sample resize I'm using Movie Player to see video streaming in my ipod. But the video is always bigger than the screen. How I can resize the video view? I have tried to put frame size in a lot of places, but without sucess..
I appreciate all of tips and helps.
A: try this
MPMoviePlayerViewControl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Mobile: Getting ID of previous page I basically need a custom function to be used only when, for example, the #reviews page is clicked on from the home page.
Here is the current code I am using:
$(document).bind("mobileinit", function(){
$('#reviews').live('pagebeforeshow',function(event){
var cpage =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Hidden Markov Model predicting next observation I have a sequence of 500 observations of the movements of a bird. I want to predict what the 501st movement of the bird would be. I searched the web and I guess this can be done by using HMM, however I do not have any experience on that subject. Can anyone explain the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Content Rotator With Content Management I am developing a website that will have content rotator in one of the pages. The only dynamic part of the website will be the news part. I want to add a content management page for the news. The news items will be edited by the user and will be published. The rest of the webs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alternate way to retrieve data from core data database - ios I am having performance issues while retrieving data from the database.
Right now, this is how I do it.
+(NSMutableArray *) searchObjectsInContext: (NSString*) entityName : (NSPredicate *) predicate : (NSString*) sortKey : (BOOL) sortAscending
{
i3E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use two dialogs within a single preference selection I want to create a sound preference that works like the sound selection in the alarm and timer application. In short, the preference starts with a standard list preference, but once the music or ring tone selection is made, another dialog is displayed allo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Information from local DB and external source in one view Situation:
The simplified situation is this: consider a blog that is build as an MVC project. The YII blog-example is fine for this, but the question is not framework specific: It is nothing special; you have a table with posts and a page build from:
*
*a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Incorrect subscription when using two delegates with single event Hello guys I'm getting some troubles using delegates to subscript to same event trought two forms (parent and child), this is my code :
public delegate void SplitDelegate(object s, ControllerEventArgs e);
public delegate void SetBatchDelegate(object s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: seek in http connection when downloading with python I have actually two questions in one. Firstly, does http protocol allows seeking. If the wording is incorrect, what I mean is this: for example, there is file accessible through http request in some server. File's size is 2 gb. Can I retrieve only last 1 gb of thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sort NSDictionaries in NSMutableArray by NSDate I have a NSMutableArray with dictionaries, all of the dict's contain a NSDate is form of NSString with key 'Date'. I want to sort the NSDictionaries by the Dates. So for example i have the following state of the array:
Dict
Date
20.06.1996 23:30
Dict
Date
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: getFont() method I just wanted to ask a question about the getFont() method, which is in java.awt.Font. I don't understand why the getStyle() is undefined for type string, although it actually should work with strings. In API it says it takes an integer as argument.
import java.awt.Font;
//import java.util.*;
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to show compass on Screen? I am new to iOS development. My objective is to show a compass on Screen. I have a latitude and longitude of a certain location. I have gotten my current latitude and longitude by using CLLocation.
I have calculated the distance between two points using an API, but now I want to know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I diagnose and fix this 'uninitialized constant' error? I have a working Redmine 0.8.0 site that I'm trying to upgrade to 1.2.1 (most recent stable). I have met all listed requirements and followed their upgrade directions as far as I can, but I'm stuck at the final step before clean up - migration. Based on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: STI and virtual attribute inheritance (Rails 2.3) Say I have an STI relationship, where Commentable is the super class, and NewsComment is the subclass. In Commentable I have:
attr_accessor :opinionated
def after_initialize
self.opinionated = true
end
And in NewsComment:
attr_accessor :headliner
def after_init... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MongoDB - How to Handle Relationship I just start learning about nosql database, specially MongoDB (no specific reason for mongodb). I browse few tutorial sites, but still cant figure out, how it handle relationship between two documents/entity
Lets say for example:
1. One Employee works in one department
2. One Em... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: RestKit handling different HTTP status codes I've just started to try out RestKit for an iOS app i'm building. I normally use ASIHttpRequest, but I want to test out RestKit mostly for its object mapping between JSON and CoreData. There are some great things about RestKit, but I've run into an issue that really makes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS Hover to change other elements I have this navigation bar which I have done in CSS, I would like it so when I hover over one of the 3 navigation icons it will change the main image background position.
I've tried a few ways but not managed to get them to work properly.
CSS
/* Nav Button 1 */
.nav1 {
flo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting the cursor location in Visual Studio to clipboard Often when describing an issue in code, I need to reference it by line/column/function.
Is there a macro/add-in for Visual Studio that copies that information for me?
It would be perfect if it could copy to clipboard: File, Line, column, function name
But I'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I sort columns in a multidimensional array? I would like to sort a multidimensional array in php like you sort columns in a spreadsheet.
I need to be able to select a start and stop column, and optionally, if the "children" of a column get sorted. I'm not sure how I should explain this properly so I try with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pass values from 2 tables to a view codeigniter im having function that will display both buy and sell listings. Im trying to display both of these in one page.
im getting the values from 2 different tables and i wanr to pass both the values into the same template
Can someone please suggest how to do it?
controller... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to control the Appearance of UIPickerView Can anyone point me in the right direction here.
Im trying to use a UIPickerView that is displaying images.
The images are too big for the default pickerview setup so I was wondering how I could control how big the rows in the UIPickerView are and how wide the transluce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: table cell content my goal is to make a javascript that i will run using my browser (on someone elses site, not mine) that will take a number from thar site and wait some time depending on the number on the site before clicking a button.
the number is kind of hard to find: in this site there is a table in this table... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: finding nearest positive semi-definite correlation matrix Is there an R function or DLL that calculates a nearest positive semi-definite correlation matrix?
Finding the nearest positive semi-definite matrix is a well-documented common problem in portfolio construction.
NAGS includes a function but the library requir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android & jar file compatibility How does one find out if a jar is Android compatible, meaning it does not contain imports from class not contained in Android.jar?
I'm trying to build a app that uses the MySQL J connector thingy (and YES, I know about SQLite's existence, but i need the MySQL thingy to work - for rem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: save as PDF: recommend a server solution to receive raw data from client and send back PDF to client? My project requires me to add a "SaveAs PDF" feature. I was looking for a pure JavaScript solution which does this just in client end, however, was told that it's not implementable, at least for now.
jsPDF currentl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linux Bluetooth l2ping with signal strength (without connecting?) For any Linux BlueZ/BT experts here:
I'm looking for a way to "ping" known BT devices (known BDADDR) and if they are in range I'd like to know the approximate signal strength.
I know that I could first run l2ping, then establish a connection to the de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Portable lightbox for use in userscripts I have tried to implement various lightboxes into my userscripts, but I have never gotten them to work. The most common problem is some of them require's you to modify a css/js file, setting where various image files located. If this is not the case, the image must be located... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: RVM Gemset - Bundler & Capistrano in Production I'm deploying a rails app to a VPS with capistrano, bundler and rvm.
Here is part of my deploy.rb
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"
require "bundler/capistrano" # Load RVM's capistrano plugin.
set :rvm_ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Thread restart after computer standby I have an application running in the Windows system tray and it seem like after I put the computer in stand-by (not shutdown!) when I turn the system back on, a Thread I have running in the application does not continue running. How would I either A) keep the Thread running, or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I expect an error but I dont get what I would think I create a view
SQL> create view DEPT20 AS
2 select empno AS Employee_ID_ID,ename AS Employee, deptno as Department_ID from emp
3 where deptno = 20
4 with check option constraint emp_dept_20;
View created.
I expect to get this error
ORA-01402: view WIT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Better practice: saving count result into field or not? I'm devloping a music streaming site where I have two major tables: 'activity' and 'music'. Activity saves, among other things, every song reproduction into a new record.
Every time I select from music I need to fetch the number of reproductions of every song.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why can't I use GcHandle.Alloc to pin an array of enums I want to do the following:
public enum Blah
{
A,B
}
[Test,Explicit]
public void TestEnumGcHandle()
{
var ea = new Blah[10];
GCHandle.Alloc(ea, GCHandleType.Pinned);
}
but I get:
System.ArgumentException : Object contains non-primitive or non-blit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Run code when new page is created in MediaWiki I want every page on my wiki to end with a <comments /> tag. How do I automatically add this tag to the end of every page?
NOTE: comments tag comes from ArticleComments extension.
Do I have to write my own extension? How do I go about this?
A: You could take a look at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Facebook tab application - application controlled icons / tab translations? Is it possible to control a tab icon?
*
*over tab settings?
*over an API?
Why I'm asking: I'm trying to implement top company information into tabs. It's just one application. I can manually change the icon if I create a new applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: C++ - Undefined reference to an object Compiler: MinGW
IDE: Code::Blocks
Platform: Windows XP
External libraries: SDL, SDL_image
What I'm trying to do: Cap the framerate at 60 frames per second using a timer that resets after each loop.
Just a warning, I AM inexperienced with C++, but I've done research and I can't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: If i close and open my app several times i eventually get Out of Memory Error, does it mean i have memory leak? I have an app which let users to pick an image from sd card and then app process the image. I am downsizing images to 1/5 of avialable vm memory and i do call recycle() for every bitmap in onDestroy() call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I create identical cron jobs for staging and production with the whenever gem? I have one job in schedule.rb:
set :output, File.expand_path('../log/whenever.log', __FILE__)
set :job_template, "bash -l -c 'source ~/.bashrc ; :job'"
every 1.day, :at => '12:01 am' do
runner "MyModel.do_something"
end
In my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Structure with formulas My problem is that the correct value that is suppose to be stored in the data[i].Px isn't stored and the same with the data[i].Py.
My formula in the do-while is faulty or must be.
The formula should calculate the 'position' of a projectile.
Vx and Vy is the initial velocities/values and Px ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pyramid and Chameleon ZPT Repetition I am trying to loop through a list and get an output like this:
Python:
items=['item1', 'item2', 'item3']
return dict(items=items)
HTML:
<ul>
<li><a href="/item1>item1</a></li>
<li><a href="/item1>item2</a></li>
<li><a href="/item1>item3</a></li>
</ul>
I can get the list part r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set a parameter in select statement I am trying to set a parameter in the select statement and then pass it to a user defined function in the same statement. Is this possible? If yes, where is my mistake? If no, then I guess I will have to write a cursor and some temporary tables which I want to avoid.
declare @par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mysql design for a user with several items of data I want to store notes, bookmarks, videos and images that belong to a user:
The simplified user table is as follows:
user: id, email, password_hash
A note contains a title and content, whereas a bookmark contains a title and a url
note: id, title, content, (user_id)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: '__e3_' is null or not an object - google maps Message: '_e3' is null or not an object
Line: 19
Char: 1068
Code: 0
URI: http://maps.gstatic.com/intl/en_us/mapfiles/api-3/6/6/main.js
I really have no clue on javascript and this is someone elses code, but does anyone know why it causes the above error in internet expl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't connect to MongoDB on remote host via php I have such network configuration (see link - http://s58.radikal.ru/i160/1110/4c/1c2c5d74edd0.jpg)
Where:
Notebook - contain Apache+php+mongodb+php drivers for mongodb+web project on Zend (Windows)
router - virtual station (nat on 192.168.5.23 interface + ipfw)
natd.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JavaScript on third party website I am working on building a Chrome extension that injects bits and pieces of JavaScript onto websites, a bit like AdBlock does.
What is the best way to develop/test my JavaScript code on third-party websites? I want to have my custom JavaScript loaded as if it was JavaScript from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Manipulating Strings and Arrays in Ruby I've got:
@fruit = ["Apples, Oranges, Bananas", "Apples", "Bananas, Pears", "Bananas, Apples, Pears", "Pears"]
I want to do two different things with this, first turn it into a pure array with only one instance of each:
["Apples", "Oranges", "Bananas", "Pears"]
Secondly I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When using Parallel BeginInvoke is working while Invoke is not - c# 4.0 When i use invoke inside AddListBoxItem function as seen below software become unreponsive and frozen but if i use BeginInvoke it works. Why is that happening ?
visual studio 2010 , C# 4.0
private void button2_Click(object sender, EventArgs e)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ Vs PHP - Object oriented questions: I've been working in PHP lately and while I find the language pretty simple coming from C++/C#/python, etc, I have been running into some strange differences (maybe) when it comes to its OO representations. If anyone could answer a few short questions I would be very apprecia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7628803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.