text stringlengths 8 267k | meta dict |
|---|---|
Q: Is the JavaScript operator === provably transitive? JavaScript's quirky weakly-typed == operator can easily be shown to be non-transitive as follows:
var a = "16";
var b = 16;
var c = "0x10";
alert(a == b && b == c && a != c); // alerts true
I wonder if there are any similar tricks one can play with roundoff error,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Getting better performance using OpenCV? I need real time processing, but the internal functions of OpenCV are not providing this. I am doing hand gesture recognition, and it works almost perfectly, except for the fact that the resulting output is VERY laggy and slow. I know that this isn't because of my algorithm b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Notepad++, Remember previous line folds on startup/file-open? How do I get Notepad++ to remember previous line folds when I start the program or re-open a file?
Example:
//I collapsed/folded my code
[+] My code is collapsed/folded now
-----------------------------------------
//Closed and re-opened file or Notepa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to set file pointers equal to each other in C? For example, if I have
FILE *fp, *tfp;
fp = fopen (file, mode);
tfp = fp;
is this possible?
A: Yes, it is possible and totally legal.
Both fp and tfp are pointers to a variable of type FILE
The statement tfp = fp; copies the address saved in fp into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TCC and winsock.h I have already read Tiny C Compiler (TCC) and winsock?, but I still can't compile sockets with TCC, because when I try
tiny_impdef winsock.dll -o winsock.def
tiny_impdef responds:
Not a PE file: C:\WINDOWS\system32\winsock.dll
So how can I do to compile properly a program that use sockets? Any h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: remove newline from shell script command I have the following shell script 'geturl.sh':
wget -O /dev/null http://google.com/$1
wget -O /dev/null http://google.com/$1
When I run it with './geturl.sh news', it tries to wget http://google.com/news%0D on the first line, and http://google.com/news on the second.
Why doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery load fragment for several purposes once I am loading options for few select lists using load and fragment.
This is what I have:
$(document).ready(function(){
$("#select1").load("ts.xml #select1",
function (responseText, textStatus, XMLHttpRequest) {
if (textStatus ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bcrypt - How many iterations/cost? I've read some articles saying you should set the cost to be at least 16 (216), yet others say 8 or so is fine.
Is there any official standard for how high the cost should be set to?
A: The cost should depend on your hardware.
You should test your cost settings and aim for the 100... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the ascii value of EOF in c.? Any one knows what is the ASCII value of i.
I try printf("%d",EOF);
but its print -1
and also try printf("%c",EOF);
but its print blank screen.
so anyone know which key for EOF.
A: EOF (as defined in the C language) is not a character/not an ASCII value. That's why getc returns... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Edit the form css of a django form so the submit button looks like this:
<input type="submit" id='register_submit' class= value="{% trans 'Submit' %}" /></div>
and normall I would use a class to specify what the button looks like, but this has its own class that I cannot touch. What can I do here to give it a new c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: An array of elements in jQuery Markup code:
<div id="elements">
<div>
<a href="#">text</a>
<a href="#">text</a>
<a href="#">text</a>
</div>
<div>
<a href="#">text</a>
<a href="#">text</a>
<a href="#">text</a>
</div>
<div>
<a href="#">text</a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Declaring a Reference inside Function Parameter List I'm trying to do something funky with macros and to do it, I need to do something even funkier. To give an example of what I'm trying to do, consider the code below:
#include <iostream>
int set_to_three(int& n) {
n = 3;
return 0;
}
int main() {
int ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: running perl program from C++ program I have a C++ program to compute inventory and when it falls below a certain level I want to call my perl program that will write the order details into the DB.
I read the documentation on calling Perl from C++ and I was trying this sample code
#include <EXTERN.h>
#include <perl.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Understanding Moonlight; Is it a framework? I'm trying to understand if moonlight is a framework which is similar yet independent to the mono framework in exactly the same way as silverlight is similar yet independent for dot net framework.
I'm trying to write a library that works for both moonlight and mono and I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The type initializer for 'Facebook.FacebookApplication' threw an exception I am using Facebook APIs w/ oAuth using their Javascript SDK to sign in, and setting oAuth = true. I can from the SDK sign in successfully, and get my xfbml to render properly.
I am using the Facebook C# sdk to retrieve the user ID and post ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to permanently clear Output in Netbeans 7 I'm using Netbeans7.
When I run my webapp I see a lot of info in Output tab. I doing Ctrl+L so tab getting blank.
But when I run webapp one more time, all previous text appears again.
Is there a way to clear Output permanently?
A: Yes ... Probably it read from the log o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Replacing value in datatable Scenario: App contains DataGridViews, I am populating the DataGridViews from a Database.
All the data in the Database is encrypted so after I fill my DataTable I need to cycle
through every entry in the DataTable through the decryption methods and place back
in the same spot in the D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MS-Access query does not correctly interpret DBNull.Value using OLEDB.NET I am connecting to a MS-Access 2007 database using VB 2010 and OLEDB. Conducting the following test seems to suggest that MS-Access does not interpret DBNull.Value correctly when sent as a parameter from OLEDB:
(The Hospital table contains 1 r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are instance variables in Java always private? I'm newbie to Java and I'm learning about encapsulation and saw an example where instance variables are declared as private in a class.
http://www.tutorialspoint.com/java/java_encapsulation.htm
I have 2 queries:
*
*Why are instance variables private? Why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: C#: How to detect tampering of authenticode signed file I'm trying to write a C# program that verifies the digital signature of exe's. The exe's are signed with an authenticode certificate, and I want to detect tampering.
I've been able to create a SignedCms instance as described here: Get timestamp from Authenticod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get results from my Rails 3 controller with javascript and passed in parameters? I'm trying to get some results from my controller based one some javascript variables but I haven't the foggiest idea on how to do this.
So far I have:
$.ajax({
url: '/shops?state=' + state + '&city=' + city , type: 'g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using SSH in python I need to connect with other server via SSH using Python, execute few comands and assign result of each command to differrent variables.
What is the simplest way to do it?
I've tried SSHController, but I think, I've screwed up something with prompt, and the script is waiting for it endlessly.
I'l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python: adding calculated list elements I have a list of lists
list_1 = [['good', 2, 2], ['bad', 2, 2], ['be', 1, 1], ['brown', 1, 3]]
I would like to add new element to the inner list by summing the two numbers. So my list should look like
list_1 = [['good', 2, 2, 4], ['bad', 2, 2, 4], ['be', 1, 1, 2], ['brown', 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone and iPad, take screenshot with video playing My app need to take some screenshot when a video is being played on the screen. The video is played by AVPlayer and AVPlayerLayer. The problem when I try to use old methods, such as:
UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow];
CGRect rect ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How access an uiview subview partially outside of his parent uiview? I have the following UIVIew architecture (x,y,width,height) :
- MainWindow (0,0,768,1024)
- MainView (0,0,768,80)
- containerview (500,40,120,80)
- subview (500,40,120,80)
-some buttons
My problem is that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using Linq to XML for XPath Style Document Searching Let's say I've got a web service response which looks like this:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<PMWS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get a unique filename in perl I want to create in a directory many small files with unique names from many processes. Theoretically filenames may be the same, so how do I account for that? What module I should use for this purpose? Files should be persist.
A: The package to use would be File::Temp.
A: Appen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Recommended way to store strings for a multi-language PHP application Normally I associate strings to keywords that describe them, and then store them in a database table with a structure of id int, id varchar(16), language char(2), string varchar. Then I make a PHP wrapper function to fetch each string depending on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Change rootViewController of UIWindow animated Is there a way to change the rootViewController of an UIWindow with a transition?
A: Your rootViewController is just a subview of your UIWindow. You can add other subviews and and do things like transitionFromView:toView:....
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7622787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Refresh data Android application I made an android application that brings information using a web service, then when the application starts I put the data in a sqlite and I manage everything from my database. After the application starts the data fills a tablelayout.
Now I want to REFRESH that content every 20 sec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Binding Two Database Tables to the Same Datagrid I would like to know how I would be able to use two different tables from more Sql Compact database in the same wpf datagrid. I have two tables currently, Accounts and AccountType. There is a foreign key in Accounts to link it to the AccountType in which it is the I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to run multiple instances of DelayedJob in Rails? I don't mean multiple processes, I mean separate instances. I think. I may be going about this the wrong way.
Right now dj handles 2 things in my application: Reports and image processing/upload. The problem is, People can create a WHOLE bunch of repor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generics runtime check of 'instanceof' I have an object called Node<Value>. Objects NodeInternal<Value> and NodeLeaf<Value> inherit from Node<Value>.
I am trying to test what is the type of the object using instanceof as follows:
if (node instanceof NodeInternal). I did not add <Value> because upon runtime, the type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Tree menu using Mongoid I'm having some problems creating a tree menu using Rails 3.1 and Mongoid. I have a site model that embeds_many pages. Pages can have a parent page using a field called parent.
I want to list all existing pages in an unordered list and sub pages should appear in a list under the parent, obvio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to draw filled polygon using c++? I'm new to C++. I am using Visual studio Professional 2010. I learned to draw lines, but I need to draw filled polygon this time. The way that I drew lines is below:
private: System::Void Form1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I convert a DateTime object to a string with just the date using C#? Seemingly simple. I need to convert a DateTime object to a string without the time stamp.
This gives me the date and time. And I can't figure out how to just get the date.
startDate = Convert.ToString(beginningDate);
This outputs: 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make background fade out/in Is there any way I can use CSS3 to fade in and out a solid white background of a <div>?
the content should remain visible so just the background should fade.
Any ideas using css3 transitions/transforms?
thank you for your help.
A: Sure, you can use the transition property directly on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: deleted migration file keeps coming back Rails 3 I have 2 versions of the same migration (bad habit, I know). I deleted old version many times, but after restarting my project (or do something with it, like rake db:test:prepare), the file shows up in my migrate folder. When I run rake db:migrate, it will complain ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tracking HTML5 Web App installs on iOS devices We recently launched an HTML5 Web App (using JQuery Mobile), which has a slide down box encouraging users to bookmark the Web App on their home screens. Users can do this from Safari by clicking Bookmark and then "Add to Home Screen". Any thoughts on how we might be a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I improve my Trie implementation in terms of initialization? I'm trying to read in from a huge list of words and store them in a way that allows me to make quick retrievals later on. I first thought of using a trie and I'll admit my implementation is naive, it's basically nested hash tables with each key be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: dev.domain.com using subversion head code? Hello subversion experts,
I'm attempting to split up my website between production and development through SVN. All the code for the website is stored in a folder called Application. My goal is to setup an SVN server with all the Application (Php) code in trunk.
With this, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Suppress Non-Matching Lines in Grep Running service --status-all | grep "firestarter" in Ubuntu shows the entire output of service --status-all with the text "firestarter" highlighted in red. How do you get grep to only show the line that contains the matched text, and hide everything else?
A: Maybe service --statu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: php forgot password page I got this code from a website and I have been altering it to fit my needs. The problem that I am facing is that the password reset page is not firing a new password off by php mail but instead it is refreshing the page and the user is stuck on a php include file and not the site.
I know som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IoC Containers, WCF & ServiceHostFactories I have been reading about IoC lately, and I think it would definitely come in handy in the WCF web-service I am developing. However, it seems that Ninject, StructureMap and Spring.Net (I only did check these three) require the custom Factory attribute to be added to the *.s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Picking the nearest 3 dates out of a list I am working on a TV-guide app, and am trying to get the nearest 3 dates from an NSArray with NSDictionary's. So far so good, but I have been trying to figure out how I can do this the best way using as little memory as possible and with as little code (hence decreasing the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to replace a image url in all occurrences of it in html i have a blogger blog. there is one image which i put in each of my blog's post( of my signature). earlier it was hosted on an image hosting site but now i want it to put it on my own site since the old hosting site may delete it any time. how can i replace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java properties With properties in java how could I check if the value of the property is equal to something example if the property quitonload is equal to true then the program will exit on start
A: Do you mean something like:
if (System.getProperty("quitonload", "false").equals("true")) {
System.exit(1);
}
N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Continuations usage in play framework example needed Can you give me some links with good examples how to use continuations in play framework?(beside source of play framework, their 'samples-and-tests' and on-site doc, already were there)
Any documentation and theory in "for dummies" format are also appreciated.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GWT: Check if URL is dead I'm trying to check if a url (in String form) returns 404 error. However, I can't seem to use java.net.URL, and I read somewhere that java.net is not supported in GWT? If so, how do I check if URL is dead or not in GWT?
Much appreciated.
A: You are right. In client side GWT you cannot use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: java from for loop to recursion in finding combination how can i change this for loop to recursive in the event that if groupSize=3, n=6 will print
123
124
125
126
134
135
136
145
146
156
234
235
236
245
246
345
346
356
456
public static void printCombinations(int groupSize, int n){
if (groupSize <=n && groupS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Whenever I use ajax to get data from my textarea and insert it into mysql, line breaks are not inserted I am using ajax to insert a form using GET. When that form is submitted, it goes into a mysql database. I know that the error is occurring when this data is being submitted into mysql and not when I am retrievin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Generating a random 32 bit hexadecimal value in C What would be the best way to generate a random 32-bit hexadecimal value in C? In my current implementation I am generating each bit separately but the output is not completely random ... many values are repeated several times. Is it better to generate the entire ran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Eclipse Memory Analyzer: How to import analyze result from remote MAT by ParseHeapDump.sh? I have a large heap dump file in the remote server. And I run MAT's ParseHeapDump.sh file remotely. How can I import those analyzed files (dump.*.index) to my local MAT? I don't want to download the huge heap dump file.
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP FPDF - "call to a member function Stuff() on a non-object" So basically what I have been doing is convert one xml file to a well-formed pdf with wamp.
The codes below are simple illustration of my idea.I learnt from the process of parsing xml to html and I suppose that the thing is all about telling xml parser ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: User-defined Controls and Their Properties I am working on a user-defined button, this has two custom properties like this:
public enum FirstType
{
egg,
leg
}
// first property:
public FirstType FirstProperty { get; set; }
and I have a base class and 5 derived classes of this base class, and the second prop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 3D world in Java using lwjgl? So I have very little experience using lwjgl and was wonrdering where I could find tutorials for making 3d worlds using it...
I need to have stuff like a floor, roof, walls, and the ability to move in this area.
Please help.
A: An excellent modern tutorial on using OpenGL3.
EDIT: New ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Getting user profile with google oauth2 I'm trying to get user profile information upon logging in with google-oauth2. User successfully logs in and i can get the access_token and can refresh the token when needed.
Though i could not manage to get any information about the user despite reading the docs and trying fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Recover a .CS class file after crash I was working on a class in visual studio 2010 when suddenly my computer crashes. after I restart the computer. I start Visual studio and I find that class to be completely empty.
it contained more than 1000 lines of codes before the class.
is there anyway i can recover that fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: PHP SQL only returning 1 response instead of multiple Here's the PHP and I'll explain as I go
$query = "SELECT id, attendees FROM events WHERE creator = '63' AND attendees LIKE '%74%'";
$result = mysqli_query($dbc,$query);
$uid_events = mysqli_fetch_array($result,MYSQLI_ASSOC);
echo $_GET['callback'] . '("' . str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DROP FUNCTION without knowing the number/type of parameters? I keep all my functions in a text file with 'CREATE OR REPLACE FUNCTION somefunction'.
So if I add or change some function I just feed the file to psql.
Now if I add or remove parameters to an existing function, it creates an overload with the same name an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Difference between OnlyOnRanToCompletion and NotOnFaulted? These two values are from the TaskContinuationOptions enumeration. I'm a bit unsure of which one to use.
Another pair I'm confused between is NotOnRanToCompletion and OnlyOnFaulted.
The wording is a bit confusing to me and each value from each pair seem to f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Fastest method to filter and get a chunk of a list of strings I have a huge list of tag strings that should be filtered by a given tag_filter.
The returned joined string should contain 20 max tags \n separated.
The code, right now, looks like this:
tags = Tag.get_tags() #This returns the list of tags strings
return ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hide Facebook App Page From Search
Possible Duplicate:
Hide facebook app from search
Okay, I know that this question was asked here:
http://facebook.stackoverflow.com/questions/6904530/hide-facebook-app-from-search
And the answer was that it's not 'currently' possible.
HOWEVER, Facebook changes things every damn ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: getLoaderManager in ListActivity I wish to implement a Loader for in a ListActivity but the activity do not recognize getLoaderManager.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
dbHelper = new DBHelper(this,DBNAME,FindPackageName(), TABLE_NA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is it good practice to index a list of objects with a hashmap? I need to find objects by an attribute.
One option is to iterate over an array of objects and check for each object that the attribute matches.
The other option is to put the objects in a hashmap, with the attribute as key. Then one can simply retrieve t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: OpenGL - Fast Textured Quads? I am trying to display as many textured quads as possible at random positions in the 3D space. In my experience so far, I cannot display even a couple of thousands of them without dropping the fps significantly under 30 (my camera movement script becomes laggy).
Right now I am following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a more concise jQuery syntax to disable a submit button on form submit? I have the following code to disable a submit button when the form is submitted:
$('#myform').submit(function(){
$('input[type=submit]', this).attr('disabled', 'disabled');
});
Is there a more concise syntax for this?
A: jQuery di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't install module with python-pip properly I would like to install a module but pip is not installing it in the right directory which I assume should be /usr/local/lib/python2.7/site-packages/. After all, I just installed Python 2.7.2 today. Originally I had 2.6.5 and had installed modules successfully there. So ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WM_QUERYENDSESSION is not working in IE8 activeX control I have a ActiveX control written in Delphi 6 which handles WM_QUERYENDSESSION message to pop up a message box to let users to save changes before shutting down windows.
It works fine in IE6 / IE7 , but in IE8 the ActiveX control cannot receive WM_QUERYENDSESSI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 1 click open more than 1 link html I made a page which I put all links next to each other. Every link opens different website. I have to click one by one to them in order to open them and there are 20 links so it takes while everytime. Is there anybody knows how can I make it so when I click only 1 link it opens all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Silverlight, open xml from outside application package I have to open and read an xml file in my Silverlight application. I can't put this file in resources (my teacher's will). I tried to use this code:
XmlReader reader = XmlReader.Create("products.xml");
but got an error:
Cannot find file 'products.xml' in the ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remove user account from administrators group on remote machine using C# and AccountManagment namespace I have the code:
public bool RemoveUserFromAdministratorsGroup(UserPrincipal oUserPrincipal, string computer)
{
try
{
PrincipalContext oPrincipalContext = new PrincipalContext(Context... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: InputStream not receiving EOF I am attempting to send an image from my android device to my computer via a socket. The problem is the input stream on my computer reads in every single byte but the last set of them. I have tried trimming the byte array down and sending it, I've manually written out -1 to the outputs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: defining sub-domain based on a function in routes.py of Web2Py I have this page:
http://mysite.org/myapp/pages/blog?name=user9
and I need to have this:
user9.mysite.org
What should i write in my routes.py?
A: Ok, so i think misinterpreted this a little. You need user9.mysite.org to be served from the web2py app. On... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error JSF 2.1.at org.apache.myfaces.view.facelets.compiler.TagLibraryConfig$LibraryHandler.endElement I have a error when run my myfaces(JSF 2.1), richfaces 4, 2.3.0.BUILD-SNAPSHOT, in Jboss 7.0.2 "Arc":
11:50:33,556 SEVERE [org.apache.myfaces.view.facelets.compiler.TagLibraryConfig] (http--127.0.0.1-8080-1) Error L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use Android OS VirtualBox as device in Eclipse I found this tutorial on how to run Android OS here: http://www.javacodegeeks.com/2010/06/install-android-os-on-pc-with.html
Has anyone tried to use the set-up as a replacement for the emulator? If so, how did you do it?
A: I haven't used the guide you link to, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET MVC 3 - How to Reuse Solution? What's the best way to structure the base functionality of an ASP.NET MVC 3 solution so it can be reused in subsequent solutions? For example, I'm going to develop a basic skeleton MVC app with user registration using email verification, enhanced users/right/roles, blogging wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mechanize - Simpliest way to check if page have been updated? What is the simpiest solution with Mechanize to see if a page have been updated?
I was thinking about create a table named pages.
That would have:
pagename - varchar
page - text
pageupdated - boolean
How should I create the screen scraper and save the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Updating Oracle Table using Stored Procedure from C# Odd bug I am using a stored procedure to Insert a new user or update their existing information if the user already exists in the Database.
I am grabbing 3 of the Parameters (User name, first name, and last name) from Active Directory and using 4 textboxes to grab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to left align peoperly my logo I have a page and its header navihation is properly inherit therefore its coming to the center.
But the Logo which is not coming to proper left, its going to left side of the page.
HTML
<title>VRBO</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Make content automatically go into multiple pages On a site such as http://failblog.org/, there are a bunch of photos with content around them. Whenever failblog uploads a new photo, it pushes the bottom photo of the first page onto the second page, and the bottom of the second onto the third, etc. How can I do this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: flash / as2 loadmovie issue I'm using the loadMovie(url,target); command to load an external swf file into a movieclip container.
The problem is that the external swf is sort of dynamic, when a user clicks on any links inside the swf it does a little loading screen to load more content. So when I load that movie int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert data from other table and update on duplicate key I have this query where I want to insert into table exp_channel_data data from the table homes but it inserts 7 and 8 entries and then returns the error:
[Err] 1062 - Duplicate entry '8' for key 'PRIMARY'
This is my query (I reduced the fields to be readable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java Equivalent to C#'s Delegates/Events: Changing Event Invoked Code Dynamically I have a simple Screen class in C# that has a bunch of events (with corresponding delegates) like the FadeOutEvent.
I want to port my library to Java, and I find that the mechanism for events/delegates is really cludgey. Specifically, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to check if it has class in jQuery? How can I check if a the #load div has a class also?
if (cap > 20) {
$(".p" + (cap-9)).slideto({
slide_duration : 'slow'
});
}
A: you could try just adding a class to the button once it's been clicked:
$("#loadmore").click(function() {
cap += 10;
$(this).addClass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7622995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: error with devise in ruby on rails So, I have never used devise before and am trying to implement it in my program via http://railscasts.com/episodes/209-introducing-devise. I installed it and everything word for word as this guy did and then when I try and go to http://localhost:3000/users/sign_up, I get this erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Could you post examples on how to use PHPUnit with NetBeans? I'm new to PHPUnit and I want to use it with Netbeans. I'm already aware that there is documentation for PHPUnit on it's own but there isn't much documentation on how to use it with Netbeans. It would be great to see some working examples first. I learn be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Process JSON using jQuery I have the following JSON-encoded data being returned and need to process it with jQuery.
How can I access different depots and vehicle data inside this list using jQuery.getJSON()'s callback function?
$.getJSON('url', function(data) {
// ...?
});
The JSON-encoded data:
// top-level res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Avoid container div Say you have a website and have a fancy pink header which stretches all across your screen horizontal. Inside the header there some text which needs to be centered and have a 960px fixed width area.
---------------------------
| x | hello | x |
| |
| y | h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to resize a buffer so it only takes a small part of the screen? In Emacs how can I resize a buffer so it only takes a small part of the screen ?
Is there any way ?
I would like to have the src taking 70% of the screen and a file manager in the other 30%
A: Set width of current window on current frame to ~ 70%:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom post type and comments in wordpress Is it possible in wordpress to display comments and comment form on custom post type, and how to do that?
Thanks in advance.
A: It is very important that you put this attributes "comments" in this line :
'supports' => array( 'title', 'editor', 'comments', 'excerpt', 'custo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does Resharper 6.0 (current version) support Microsoft Visual Studio 11 Developer Preview or can it be made to? I've read articles that explain how to enable Visual Studio 2010 managed extensions to get them working with Microsoft Visual Studio 11 Developer Preview
Running VS2010 Gallery Extensions In VS11, Meet G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Fire action at specific date and time iPhone in my Core Data model, I have an entity which has got a date attribute. For example, I'll set this date to 10/07/2011 4:00pm and I want to fire an action when current date will pass the saved date by one minute.
A local notification will be fired but I also want to fire a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transformed content created using jQuery mobile and Transform plugin not mobile-styled My stylesheet:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/states">
<select id="states">
<xsl:for-each se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I display DB contents after selecting a dropdown list option using PHP, AJAX and MySQL? I am new to AJAX and want to create something with two dropdown boxes. When a user selects the first one, the second dropdown populates with the corresponding fields. After selecting an option from the second dropdown I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fuzzy c-means tcp dump clustering in matlab Hi I have some data thats represented like this:
0,tcp,http,SF,239,486,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,8,8,0.00,0.00,0.00,0.00,1.00,0.00,0.00,19,19,1.00,0.00,0.05,0.00,0.00,0.00,0.00,0.00,normal.
Its from the kdd cup 1999 which was based on the darpa set.
the text file I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Paypal IPN Inventory Control I have been developing an online retail shop.
It is written in php and uses paypal and IPN to handle payments.
I have written my own shopping cart. When the user wants to checkout they click on the checkout button which has the standard cart upload function wrapped around the button an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the use of pointer-casting a dereferenced pointer? This question is about code explanation, not code debugging. The code I'm using works.
I'm using a public code and I was curious to look at one of their "grow array" template, which looks like this:
template <typename TYPE>
TYPE *grow(TYPE *&array, int ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: geocoding rails I am trying to geocode multiple addresses in a model using either geokit or geocoder and I can't get either on of the gems to work as I want them to. Here is the code that I am applying to my model for both use cases and the errors I get for each option.
The Geocoder gist:
https://gist.github.com/11... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A Star Search Pen Plotter moving from two unconnected nodes I'm having trouble with a programming assignment, its a penplotter, there have been quite a few questions about it already here.
Here's a summary:
The paper sheet is understood to be laid out on a grid with both the x-axis and y-axis running from 0 up to in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7623050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.