text stringlengths 8 267k | meta dict |
|---|---|
Q: Bind Dynamically Created Bitmap object to Image in WPF I have a bitmap object that is not a static resource. Normally, with image binding in WPF you can bind to a string path. However, I have a dynamically created bitmap object that I would like to bind to. Is it possible to do something like:
<WrapPanel x:Name="ima... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Changes in CvRect values not being reflected in image The minimum bounding rectangle of a contour is returned by OpenCv as a CvRect structure. I'm trying to have an m pixel thick margin/border around the sub-image that corresponds to this CvRect on the original image, i.e. instead of the exact bounding rectangle of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python Client/Server to stream logfile updates in realtime? We have applications on Solaris 10 servers that generate text logfiles. We need to stream these logfiles in realtime to a central server for monitoring of new events.
Ideally we'd have a NFS-mount, and all our system would write their logs to there, and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ABPeoplePickerNavigationController saving larger image takes a LONG time I use ABPeoplePickerNavigationController to import iPhone Contacts into my app. I recently decided, instead of just saving the thumbnail image, to save the entire image as well. With iPad and possibly needing larger images with different croppi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Display post date on previous/next link I am about modifying the previous post (and next post) link in Wordpress. but I don't know how to show the date of the referred post.
I don't want an external plugin for this answer, but the code in functions.php will be great.
(Note: I have read this. if this is the answer ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eclipse CDT not recognizing some GL functions, but compiles fine I'm having a problem using Eclipse CDT, where it does not recognize some OpenGL functions.
I have the header included from
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenGL.framework/Headers
Some functions/enums are recognized by the ind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery 1.5.0 to 1.5.1 breaks previous script I needed to update my jQuery library for some bugs that IE9 has with <= v1.5.0. Upgrading the library to 1.5.1+ (even at current 1.6.4) breaks some script that I have on the page, though... (so of course, fix one issue, cause another)...
The script allows the user to add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Validation always returns true I have this html;
<form action="" method="post" name="ApplyForm" id="ApplyForm" enctype="multipart/form-data">
<input type=text class="required"/>
<input type="submit" onclick="return validateForm()" class="submit" value="Submit Application" title="Submit application" />
an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: field width while using delayed expansion I am using a for loop and constructing names of env variables ( like abc%%i , where i is the loop variable ) that are to be read , and use delayed expansion to print out their values (assuming these env variables have already been set ) ..
echo is dos provides the facility ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to logging data change with Entity Framework, otherwise how to do it with SQL Server 2008 Standard? I use SQL Server 2008 Standard, Asp.net MVC 2 and Entity Framework 4.0
I would like to know the best and simplest way to log data change. I read a little bit about change data capture and seem to be very interesti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to persist data in a broadcast receiver I have a simple broadcast receiver which receives some data which I would like to store for the application to use on next launch. It is just a few strings so simplicity is the goal. Normally I'd just write to to a file or sharedPreferences but not being an activity that s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Actionscript broken? My Flash is a little strange, I doesn't recognize the UILoader I'm importing, actually when I type import fl.c it doesn't suggest the container library, was this deleted in AS3 or is flash just broken?
package {
import flash.display.MovieClip;
import fl.containers.UILoader;
public class Tar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check for existence of a row in mysql without using INSERT IGNORE? I currently use this query to update listings in my database from my php app:
$query = "INSERT INTO listings (title, description) VALUES ('$title','$description')";
This listings table has a 'postid' column as it's primary key that auto incre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can Spring Security validate the relationship between user? I am new to Spring Security. Can Spring Security validate the relationship between users?
for example:
I have two users type. one is teacher, another one is student.
I wanna validate whether this student have relationship with the special teacher.
Then the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how do you put wordpress post images into list items I want to take the images in my wordpress single page post and put them in a list order. The purpose is to then create a custom slider off of that list.
or if someone knows a good image slider for wordpress that has dynamic heights let me know.
A: Actually, ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cross PDO driver compatible GROUP_CONCAT? Is there an efficient alternative to GROUP_CONCAT that works in the major PDO drivers?
A: Given this MySQL:
select group_concat(c separator ',') from t
you could do this in PostgreSQL:
select array_to_string(array_agg(c), ',') from t
or this in SQLite:
select group_concat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Eclipse content assist auto-activation for CSS? I found there is content assist auto-activation option for Java, JavaScript and XML. But not for CSS. So I have to type Ctrl+Space like crazy. Any way to make the auto-completion box show up automatically?
A: You'll have to open a feature request in Bugzilla for this.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I parse magnetic strip card data input in Java Swing textbox? I'm trying to write an application which will search and retrieve a user's profile using data using an id key found using a scanned barcode or embedded in a magnetic strip card's data. The latter one is cause me grief. The magstripe data needs to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't spawn "cmd.exe" I use a program called LF-Aligner that uses dictionaries to make parallel texts out of texts in different languages. I believe it's written in Perl. It's based on another program called Hunalign.
When I used it a few months earlier, it worked perfectly. It got accidentally deleted, I recently r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Performance of rendering a bitmap using an image transform matrix on an ImageView Basically, I want to render an image (bitmap) on an ImageView, but change its image transform matrix quite rapidly.
I'm new to android development and I'm not sure if what I'm doing is the right thing or not.
I'm currently doing this b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Core Data loading in background problem I have setup few methods to load core data in the background using NSOperationQueue, like the below:
operation = [[NSInvocationOperation alloc] initWithTarget:self
selector:@selector(selectToLoadDataOne) object:nil];
opera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issues with Rails gem mysql2 on OS X 10.7 with Ruby 1.9.2 and Rails 3.1 OS Version: Mac OS X 10.7.1 Lion
Ruby Version: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
Ruby Location: /usr/local/rvm/bin/ruby
Rails Version: Rails 3.1.0
Rails Location: /usr/local/rvm/gems/ruby-1.9.2-p290/bin/rails
Now, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Lite/Pro version vs In-app-billing upgrade option I have free version with limited functionalities&ads and paid ver. with full features with no ads.
I'm wondering, Should I make different ver. of app paid/free and upload it to market or
Lite version and IN-APP-PURCHASE to upgrade to pro version?
What should be the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Working with 2 html5 Localstorage apps problem So I've been working with 2 different Localstorage application for a task I've been given. The one is a todo list and the other one is notes which both work on the same html file.
Now, the todo list have 3 localstrorage keys. One for the value of the todo. Second for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript array - how to handle multiple array items with same key/name? I have a javascript array like this (end result):
Array(
[text_vars] => Array(
[0] => 'xxxxxx',
[1] => 'xxxxxx'
)
)
Right now the loop I'm using to translate my JSON data into the array:
var aws = json.data;
var text_vars = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jade Inline Conditional I'm trying to make everything apart from the first element in an array have a CSS class using the Jade templating engine.
I was hoping I could do it like this, but no luck. Any suggestions?
- each sense, i in entry.senses
div(class="span13 #{ if (i != 0) 'offset3' }")
... a tonne of sub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: What are the basic language constructs in java? I've been asked to "Identify all language constructs in Java. Your list
should start with classes:
The body of class declarations"
I was under the impression that a 'language construct' was any allowable command in a language, but this is clearly not what is meant by t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I use TA-Lib in Google App Engine? TA-Lib has a Java binary version.
http://ta-lib.org/hdr_dw.html
Can I use this in a Google App Engine project?
A: The most likely reason that it wouldn't work would be the use of classes that are restricted in the production runtime. Or the use of a library that uses one of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Static Final Variable in Java
Possible Duplicate:
private final static attribute vs private final attribute
What's the difference between declaring a variable as
static final int x = 5;
or
final int x = 5;
If I only want to the variable to be local, and constant (cannot be changed later)?
Thanks
A: In first st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Java generics constraint require default constructor like C# In C#, I can put a type constraint on a generic parameter that requires the generic type to have a default parameterless constructor. Can I do the same in Java?
In C#:
public static T SomeMethodThatDoesSomeStuff<T>() where T : class, new()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Windows Phone - Change Grid Background Color On Button Click I'm trying to change the background color of the grid named LayoutRoot to black when you click the button bgButton in the application bar. I can't find anything on how to do this through Google or anything.
Thanks.
A: In the event handler for the button'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP check file extension I have an upload script that I need to check the file extension, then run separate functions based on that file extension. Does anybody know what code I should use?
if (FILE EXTENSION == ???)
{
FUNCTION1
}
else if
{
FUNCTION2
}
A: For php 5.3+ you can use the SplFileInfo() class
$spl = n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Gitolite and Gitweb config acces via web I have a problem with gitolite and gitweb ...
it almost done .. but gitweb display all repos.. doesn't filter permissions for users ..
so it always show me all repos for all users..
I read that I must configure with this:
https://github.com/sitaramc/gitolite/blob/pu/contrib/g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: Scrollbar Accelerator? I'm writing an Android application that contains lots of long lists and I need to accelerate scrolling somehow. The Android Contacts application for example uses a list of letters to allow quick scrolling to a certain spot in the list ... it's not exactly what I'm looking for though.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does this piece of code do? I came across this key logger online and was wondering what the following piece of code actually does. There are 2 lodsd commands in succession and that confuses me. And also what is the purpose of the or command there?
full code can be found at:
http://www.rohitab.com/discuss/topic/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Copy and paste commands with WPF buttons I have created a toolbar that has buttons.
Of the buttons 3 of them are cut copy and paste. I set the command of each of those buttons to cut copy and paste on the properties but when I go run the program none of the buttons are even clickable. Are they disabled I'm guessing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Algorithm for finding the ratio of two floating-point numbers? I need to find the ratio of one floating-point number to another, and the ratio needs to be two integers. For example:
*
*input: 1.5, 3.25
*output: "6:13"
Does anyone know of one? Searching the internet, I found no such algorithm, nor an algorithm fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Only fetch a subset of remote git branches or only display a subset of them in gitk If other developers push their local branches to a shared remote repository before committing to trunk (to share, backup, or centrally store them for access from multiple machines), is there a way for me to easily only fetch my own b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: jQuery .next selector ignores the generated div and targets the next div - how can I target the sibling div I am trying to target a div that is generated by a jQuery plugin. I have been trying to do this using .next but with no luck.
Update: Please note this generated div is triggered by a click
*Update:Here is a fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Differentiate Guid and string Parameters in MVC 3 Using the out-of-the-box method locators in ASP.NET MVC (3 or 4DP), is there a way to have the MVC framework differentiate between a string and Guid without needing to parse the parameter in the controller action?
Usage examples would be for the URL
http://[domain]/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how to triger testng by testng.xml, after determing by other test which testng.xml need to be run I need to run a programe before knowing which suit of test(define in testng.xml) need to be trigger.
How to solve this problem? how to trigger testNG in run time?
A: Have you looked at TestNG's programmatic API?
A: Be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Looping through a list and using elements within that list In the code below, instead of starting with p=0.01 and then incrementing it, I'd like to be able to do something like p=(1:99)/100 and then just loop through p. For example, instead of p=0.01, let's let p=(1:99)/100. Now, I try to replace 1:99 in my for loop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Camera doesn't work on phonegap when files in server? I wrote a client for my server based on jquery mobile. I just cannot figure out how to transfer photos to my server because when I use GET method to post base64 strings, the server says the URI is too long.
So I tried to move the webpages and scripts to server an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: shutdown iOS programmatically Is it possible to shutdown an iOS device (iPhone, iPad, iPod) with objective c? I have searched the internet through and through, and nothing at all has come up. I was just thinking about it, how much control over the device you really have. Does anyone know if this is possible? If so, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .htaccess duplicate static content loading I've made a sub-domain for static content (static.site.com) and I have the following .htaccess:
RewriteCond %{HTTP_HOST} www.site.com [NC]
RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|png|css|js|txt|ico|pdf)$ [NC]
RewriteRule ^(.*) http://www.static.site.com/$1 [L,R=301]
Eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to merge a branch into trunk? I'm facing a peculiar problem with SVN merge. I want to merge from a dev branch to trunk.
We have multiple dev branches cut off the trunk at the same time.
I'm merging one of those branches to trunk with this command:
svn merge trunk branch_1
I see changes that are not part of this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: checkbox checking verification HTML:
<div>
<input>
<label>
</div>
JS:
$('div input').live('click',function(){
alert($(this).is(':checked'));
});
$('div').live('click,'function(e){
if(!$(e.target).is('input'))
$(this).find('input').click();
});
Whenever I click on the input it accurately dis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: using php to end a loop until match is found This is my first attempt at a php script after a few weeks of learning. So basically I am parsing an XML blog feed. First if gets the blog post date and if it matches today's date based on Los Angeles time zome it will go further and get the current blog post urls for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Warning: preg_match() [function.preg-match]: Unknown modifier Anyone have an idea of why this is popping up? Trying to use this to redirect users based on user agent. This warning comes up when user agent is search bot. Also Windows XP MSIE 8 user agent is being incorrectly redirected.
"Warning: preg_match()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When is a while(True) loop appropriate?
Possible Duplicate:
is while(true) bad programming practice?
What's the point of using “while (true) {…}”?
I've always considered it bad practice to use while(true). Many people think it's okay.
Why would you want to purposefully create an infinite loop? The only two reason... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: How can I detect if the Back button will exit the app (i.e. this is the last activity left on the stack)? I'd like to warn the user if the back press is going to finish the last activity on the stack, thereby exiting the app. I'd like to pop up a little toast and detect a 2nd back press within the next few ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Android query using extras in the where statement I having trouble with my database i was wondering how would i be able to connect two variables in a sql query. Example i have a bus schedule that has two tables and im trying to use two put extras to query the results i want but im not sure if im able to use two ext... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java: how can an invoking function not handle an exception from sub-function? I learnt an invoking function must either declare or handle all the exceptions the invoked function declares to throw. But following code can compile.
public a() throws SipException, NullPointerException {
try { }
catch (SipExcepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to encode string by public-key in python Is there any way to encode string by public-key?
I found two packages, pycrypto and m2crypto.
But I can not find how to use them.
A: To encode a string using public key:
#!/usr/bin/env python
from M2Crypto import RSA, X509
x509 = X509.load_cert("recipi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I stop auto increment on ignored inserts that make no changes in MySQL? I am inserting say 500 rows using INSERT IGNORE, if the row already exists (based on a unique field) then it simply does nothing, if not it inserts the row.
My problem is that say only 10 do NOT exist the auto increment still increases fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Programming Library for Matrices over GF I am looking for a Library in Java or C for doing matrix operations (mainly RANK) over certain Finite Field (GF).
I used Jama, but it has no Finite Field Functionality.
any help appreciated.
A: C
The best thing I would recommend to you is to use NTL library.
You will be pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: c++ generic pointer? void pointer? I am writing a program that can take in either 3 ints, or 3 floats in the constructor(I suppose I will need 2 constructors for this). I want to declare an array and store the values in the array "numbers".
If I don't know which constructor will be called I am not sure how to dec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MSDTC transaction timeout issue I'm facing a MSDTC transaction timeout issue now.
For historical reason, we still have lots of legacy code running DB operations by C++ ODBC, and the connection is escalated into MSDTC by default.
The issue is when I try to perform a lengthy operation which takes longer than 1 minute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Aligning JW Player and jQuery UI Datepicker side-by-side I'm trying to get JW Player and a jQuery UI Datepicker to sit side-by-side on a page (example at here). From what I've read, I'm supposed to apply float: left; to both elements in order to do this but that doesn't seem to work. Here are screenshots to illustra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stack returning Objects instead of Integers I'm trying to implement a program that involves an array of stacks. Each stack takes in Integer objects, but the problem is when I try to get an Integer object from the stack:
import java.util.*;
public class Blocks
{
public static void main(String[] args)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php explode help I have this data set from a textarea
P234324, 2011-03-23 12:34:37 \nP234434, 2011-03-23 13:34:36 \nP438794, 2011-03-23 14:34:36 \nP238924, 2011-03-23 15:34:36 \n
I would like to explode it to this, but the multiple foreach is throwing me.
$data['P234324'] = "2011-03-23 12:34:37"
$data['P234434'] = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I filter to only null/empty dates in jqGrid? I'm building an ASP.NET MVC 3 application and using the jqGrid to display tabular data. In one of my grid displays I show recipe data and there are a couple of date columns where I don't always have a date for the data.
Using the date picker I can filter to thing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: is group chat for facebook implemented in the API? I know that the feature for user to user chat is implemented in the API, but I was wondering if they implemented the ability to access the group chat (the chat you can have with your facebook group) has been implemented.
I don't see anything about it in the doc, so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: why Session attributes are officially not thread safe in Servlet? I am reading some servlet text regarding scope of attributes in Java servlet. In the text, the author wrote:
"Session attributes are officially not thread safe."
This confused me because I thought that one user only has a specific session, no one can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to flatten a WPF TreeView I need a control that behaves like a treeview (binds to a tree structure, expands child nodes based on IsExpanded property of bound object), yet displays data like the grid (no indenting, or toggle images).
The expand collapse will be happening automatically based on bound object.
Tree... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to calculate work hours per project per employee I have a PHP form that inputs empID, projectNumber, and clock-in/clock-out time-stamp into a MySQL table like this:
Having no reputation, I can't post image, so take a look here:
screenshot http://mailed.in/timecard/ss1.jpg
I need help in generating a report that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: @ symbol valid in Unix username? A client has given me SSH access to their web server with the username firstname.lastname@email.com (my email address).
I've tried:
ssh firstname.lastname@email.com@555.555.555.555
ssh firstname.lastname+email.com@555.555.555.555
and several other combinations, but no luck.
I don't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting canvas to pdf I've been looking into this for a while, but the closest thing I've come up with is .toDataUrl(), which seems to only be used for bitmap image formats. What I really need is to be able to save the canvas contents to a pdf, and be able to specify page breaks where appropriate. Is there a func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are common methods of sending initial configuration variables to an Ajax client on the page load? A complex web-app can have a large amount of user and/or context specific meta and configuration information. eg, user's preferred result-set size, timezone, beginning of the week (Sun/Mon), etc.
What are the possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to change the visibility when the click is outside of the control I have a User control in WPF that is built on MVVM format. The usercontrol is a collection of viewmodels arranged in a panel. The number of pannels (or related views/ view models) will be decided at run time.
Each panel is a user control and refer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to download a file with HTTP POST? Is it possible to download a file with HTTP POST?
I know the "Get" way(windows.location), but in my case, there are a lot of param that should be passed to server
A: In some sense, every HTTP GET or POST is "downloading a file", but it's better to think of it as the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How to do Pivoting in PostgreSQL I am new to PostgreSQL.
Suppose I have a table as under
colorname Hexa rgb rgbvalue
Violet #8B00FF r 139
Violet #8B00FF g 0
Violet #8B00FF b 255
Indigo #4B0082 r 75
Indigo #4B0082 g 0
Indigo #4B0082 b 130
Blue #0000FF r 0
Blue #0000FF g 0
Blue #00... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to implement the outline effect on text with WindowsAPICodePack? I'm still struggling on this issue after our other requirements are finished. I found we can use GeometrySink alike classes to implement the outline effect; but I'm not familiar with c++; see this article:
http://msdn.microsoft.com/en-us/library/dd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I execute a javascript function that is on a web page using VB.NET? What I am trying to do is go to a website using a webbrowser, and then simulate a click. I can do this easy enough when the click is on a regular button, not handling javascript. But it seems that the website has a javascript function handli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does my jQuery AJAX function always return false? function check_username(){
$.ajax({
type: "POST",
dataType: 'json',
url: "/ajax/check/username.html",
data: "via=ajax&username="+$('input[name=register_username]').val(),
success: function(msg){
if(msg.respo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: calling another mxml function in other mxml file in flex i have defined some functions in a component mxml file let us say
addbutton()
now i want to call this function in main mxml file.
How can i do that.
best regards
A: var anyname:addGroup = new addGroup();
anyname.addGroupe();
This will work.
A: Simple.
you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is the gr count 0 in my program output? I'm new to R and DM/ML, and I wrote a small program to try out the optim function.
I used optim with SANN method. I defined my own gr function and made some config with the control parameter.
The problem is that when I print the output, the count of gr, which stands for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Install Type 1 Font in VS 2010 Setup Project I'm trying use a Visual Studio 2010 setup project to package a set of Type 1 fonts into a MSI file for easy installation.
I've configured my setup project to place all the PFM and PFB files in the Fonts folder, set all the PFM files to vsdrfFont and fixed the naming issue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does this make an infinite loop #include <iostream>
#include <math.h>
using namespace std;
int main() {
double radius = 0.00;
double height = 0.00;
double width = 0.00;
double side = 0.00;
double Area = 0.00;
const double PI = atan(1.0)*4;
string input = "none";
while (input != ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Global variable in ASP.NET I wish to stop a thread from entering code while another thread is still executing that bit of code:
I'm currently going the following:
global.asax.cs
private static bool _isProcessingNewIllustrationRequest;
public static bool IsProcessingNewIllustrationRequest
{
get {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone: Xcode 4.1 doesn't show up Distribution build configuration I developed an iPhone application and want to use Distribution scheme to build and upload to App store. I recently updated Xcode 4.1. When i search for Distribution setting build configuration, it doesn't show up. It shows only Release and Debug.
Cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Drop Down menu using jquery I am using Phonegap and i am new to both phonegap as well as jquery. I needed to know if i can have a drop down button using jquery. Appreciate your help.
$(document).ready(function(){
$('.down-list').width($('.dropdown-menu').width()-2);
$('.dr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: swipe to delete causing weird error in my UITable I have implemented this swipe to delete but as a clear button that resets the uitableviewcells textlabel to empty... when this method is executed it works perfectly.. however when the user touches the same cell after the swipe to clear nothing happens... then if you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring persistence layer for dynamic queries I have legacy app having its own persistent layer. I cannot call it a framework but it does its job although very complicated and not componentised so gets very difficult to extend or add features.
I am looking to use some latest technology to be introduced in the system ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Complexity Difference Between Where Clause Inside Query and Where Clause Inside Conditional Split In SSIS I've been wondering, what's the complexity difference between these two cases:
Case 1: An OLE DB Source query, written like this:
select *
from A
where A.value > 1
Case 2: An OLE DB Source query, and the whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Emacs error with MobileOrg push I am trying to set Emacs org-mode to do the initial push of my files into the Dropbox folder, by running org-mobile-push, nonetheless I keep getting an error which reads Invalid function: org-eval-in-environment
I have searched the web for an answer, but have not been able to locate o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Simple assembly algorithm to find the largest number - Why is it returning the wrong number? I am working on a simple routine that will loop through a list of numbers and return the max. It is always returning 11 and I cannot see what's wrong with my logic. To test the routine I have a list of numbers (data_items) t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to put all elements of a String array into Queue(Of String)? I want to put all elements of a String array into a Queue(Of String). I have following code which using For...Each to put string into Queue(Of String):
Dim Files() As String = OpenFileDialog1.FileNames
'OpenFileDialog1 is an instance of OpenFil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript program help Update this program is supposed to keep track of the number of times each side is rolled not each roll itself.
I am working on a javascript exercise that needs to take two dice, roll them 1000 times and keep track of each roll. I thought the best way to do it was to use an array but I am not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data contract serialization for IList I have the following code in which I'm trying to serialize a list to a file
public static void Serialize<T>(this IList<T> list, string fileName)
{
try
{
var ds = new DataContractSerializer(typeof(T));
using (Stream s = File.Create(fileName))
ds.Wri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to calculate active total using javascript for html form I have an html form that I want to have generate a running total at the bottom of the form. I also want to do some other simple calculations but I am unable to find anything about doing simple calculations using javascript.i dont want someone to do this fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: different colors for each row Is it possible to give a different color to each row that has distinct data, using xslt ?
For example, in case there is a table of the form
country code
india 1
spain 2
germany 3
india 1
sri lanka 4
spain 2
There are 2 rows i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to create an array that excludes items from another array in Ruby I have two arrays with different attributes for the objects contained in each.
participants
guests
The only field in common is provider_user_id
I want to do something like this
all_people = participants.map {|p| p.provider_user_id <> guests.prov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Send a message to a would-be-generated object I am in a situation in which I need to send an object and a method name a UIViewController that might or might not be instantiated in the future. To make the matter a bit more interesting, the UIViewController will be pushed to UINavigationController after two or three a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding specific records based on user's preferences Given a user, select only the projects that he is interested in.
So a user table has x, y, z columns that have a value of 1 (if interested) and 0 (if not interested)
Once we get the user we need to get all the projects that have the atleast one of x, y, z value si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Magento Extension Override Resource File How do you override a resource file like the following when creating a Magento extension:
core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php
I know that you can copy this file to the local path and override it that way, but I'm trying to figure out how to ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting CSS of an unappended element with jQuery I am generating specific DOM elements dynamically for a specific layout. In certain cases I am able to get the width of a previously created element using jQuery (to determine other layout factors).
var width = parseInt((jQuery(element).css("width")));
However this on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I generate 'h' x n in javascript?
Possible Duplicate:
Repeat String - Javascript
'h' x n;
Here n is a variable, and the generated string should be n times duplicate of h:
hh..h( n occurance of h in all)
A: String.prototype.repeat = function(n){
var n = n || 0, s = '', i;
for (i = 0; i < n; i++){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java RPG: Useful tools I was thinking about taking on an rpg project in Java from scratch but I have never tried doing much in the way of Java games. It's not going to be very graphically intense; it is going to be 2-D and I want to use a style similar to the older, tile-based RPGs. I was wondering if there were any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating a real-time clock I need to display the date an time in the corner of my site, but to show some motion on the page. The formatting is simple.
Tuesday, September 27, 2011 at 1:34:27 am
However, I'd like the entire thing to change in real time. So after a day has passed if the visitor is still not he site, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.