text stringlengths 8 267k | meta dict |
|---|---|
Q: Is there a way to animate setClipsToBounds on UIView? I would like to clip overflowing content using setClipsToBound:YES but I want the extraneous content to fade out. Is this possible? I tried UIView beginAnimations and it doesn't seem to take effect.
A: There are a limited number of properties that are animatable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set SelectedItems property of GridView in WPF using MVVM I've got a gridview in my wpf application, the xaml of which looks like this:
<ListView SelectionMode="Extended" ItemsSource="{Binding AllPartTypes}"
local:DataGridService.SelectedItems="{Binding Path=SelectedPartTypes, Mode=TwoWay, UpdateSourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why won't embedded image display? I am developing a Silverlight class library that contains several templated controls. One of these controls displays an image that is "embedded" in the class library. However, when I display the control in an application, the image does not appear.
Here is how I have the image def... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing IE9: Is there a lab I can log into remotely to debug an IE9 issue Is there a virtual testing center 'in the cloud' that I can remote into to run different configurations of IE9? I have a heavily modified jquery plugin that some users have reported to be broken in IE9. However every configuration we have tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Magento Fatal error: Maximum execution error solution, on WAMP While installing Magento, on WAMP I was getting timeout errors a lot like
Fatal error: Maximum execution time of 60 seconds exceeded in c:\wamp\www\magento\lib\Zend\Db\Statement\Pdo.php on line 228
I have no idea where to look to increase the executio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can MEF resolve dependencies of assemblies that don't live at the root of the application? I have written my application to be a class library that is launched by a win32 MFC application. Each of my views is a separate assembly that is located with the base class library that is located in a sub-directory of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UI Controls for Java I'm looking for UI Controls for Java Applications. Just like how there are so many libraries for .Net, like Telerik, DevExpress, Infragistics, etc.
Are there similar libraries for Java Applications?
Thanks!
A: go for
*
*Qt Jambi
*jgoodies
*SwingX
*SWT
*NetBeans Platform
*Eclipse Rich C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use getElementById in PHP I'm trying to select all of the images of a dynamically produced page (drupal6) that have a specific ID, so I can apply a class.
I've read the docs on php.net for getElementById and setIdAttribute but the docs don't make much sense to me, and my attempts at declaring the ID then call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i animate a div class using auto instead of a fixed number? for the life of me I cannot figure this out, I am trying to animate a div to its natural height, however jquery only lets me drop in values. I would like this to auto size depending on the amount of content...the line in the code I am having troubl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting the value to list I am facing a issue in setting the value to the list of SoyFileSupplier,the list should have a value of type file,the soyfilesetParse class is used for parsing by passing a soyFileSupplier list,setting the value to a file.(sample.soy)
The sample code is as below:
public class test {
m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing movieclips in FlashDevelop (or other IDEs with no graphics) I am doing this:
[Embed(source = "../lib/hfront.swf")]
private var charfront1Class : Class;
private var charfront1:MovieClip = new charfront1Class;
in order to create a movieclip object in FlashDevelop. Because there is no option (like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel VBA - Trying to pull data from directory of excel files, continued
Possible Duplicate:
Excel - VBA Question. Need to access data from all excel files in a directory without opening the files
So I've been trying to put together the code people have been sending me and this is what I've got so far...
Dim xcel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there a way to find out which variables in a knockout model are currently bound to the DOM? Is there a way to get a list of variables in a knockout model that are currently bound to the DOM?
Alternatively, is there a way to query a variable and find out if changing it would lead to a change in the DOM?
A: Using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery Box Prob I am trying to solve a rectangle problem using jQuery. Basically, I have 3 square boxes which fix inside a larger box.
I know the larger box has a max-width of 500px. I do not know what the sizes of 1, 2 or 3 will be - but I know that their aspect ratio's can change and that they must fit proportiona... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: jQuery function (toggling src attr of the img) I kind of not familiar with all that JS stuff and everything but today I need to use some jQ magic and I read a couple of articles and here's what I've done:
$('.thumb_img').click(function() {
$(this).attr('src', $(this).attr('src').replace('img/', 'img/full/'));
})... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where is hcidump on an android phone? I am trying to troubleshoot a bluetooth connection and I cannot find hcidump on the Droid X2, Atrix or Galaxy.
According to this: https://sites.google.com/a/android.com/opensource/projects/bluetooth-faq I should have the BlueZ tools somewhere... question is where?!
I found and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rounded Textured Segmented control style deprecated in OSX 10.7? What should I use? I'm getting this warning message when I try using "Segmented control" with style "Rounded Textured".
It is the default style in Interface Builder, so I wonder why is it complaining?
If I set to any other style, the warning goes away.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Java DateFormat parse() doesn't respect the timezone Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("America/New_York"));
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z");
df.setTimeZone(TimeZone.getTimeZone("America/New_York"));
try {
System.out.println(df.format(cal.getTime()));
Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: vim gf with resource:// I'm working on some Firefox extensions and I'm trying to set up my vim to open modules using the gf keys.
An inclusion looks like this:
Components.utils.import("resource://grwmodules/EventProvider.jsm", scope);
which should be modules/EventProvider.jsm
I created a file to set up the environme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bash tab completion changed behavior For a long time, I have been used to being able to type something like:
$opt/foo/m
and so on to navigate my project within different environments. It is really useful: just set up $opt (say, /home/$USER/projects/opt - and go from your dev user, to qa, to live, and $opt is $opt.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Workaround for Safari iframe webkit scaling bug? There seems to be a webkit scaling bug impacting Safari for Windows (v5.1) and both Safari/Chrome for Mac. When you create an iframe and use the CSS tag -webkit-transform with a 'scale' value less than 1 (say, 0.5), elements of the page are missing when it renders th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Excel macro to comparison of rows I am trying to do below example, not able to do it.
Excel Data in Sheet1:
id Sysid option status
XYZ XT Open status_1
US XT Close Status_1
US XT Open Stauts_2
NJ XT Open Status_2
IND VX Close S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reports PHPUnit ZendFramework I'm running phpunit tests with zendframework using netbeans but the reports are not being generated. The folder was created however no reports.
My directoty struture:
-application
--models
--modules
-library
-log
--report
-bootstrap.php
-phpunit.xml
phpunit.xml
<phpunit bootstrap="./bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DotNetOpenAuth.... what is? I'm not sure what it is and what is DotNetOpenAuth. Can you explain it in few words?
I am investigating about the management of users in a web application (asp.net mvc)
A: From www.dotnetopenauth.net:
DotNetOpenAuth is a well established open source library that bring OpenID, OAuth, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting attr of an option in jQuery I have a form like this:
<select name="category" id="cat">
<option value="cat1" id="hello">Category1</option>
<option value="cat2" id="hello2">Category2</option>
</select>
if i use $('#cat').val() with change function in #cat id , it displays values(cat1 or cat2).
i want to lear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django sub queries I have a basic database that I want to pull out sub data (related) in the same view:
models.py:
class InvoiceHeader(models.Model):
customer = models.CharField(max_length = 255)
number = models.IntegerField(unique = True)
class InvoiceLine(models.Model):
description = models.CharField(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP IF-statement to change color of table rows ? I have the following code written below. With this code I want to fetch data from MySQL database and print(echo) the result in table rows, each row with different colour. With this code data is fetched from database successfully but my condition for change color of ro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: AOL9.0 and continuously sent AJAX requests We have a campaign up and running that collects clicks. Over 50,000 clicks have been recorded from 2 different IP addresses, both with the user-agent's set to AOL9.0. I was wondering if there is a known AOL9.0 + AJAX issue or if someone is just masking their user-agent.
UA ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get rid of newline from shell commands in Ruby I am trying to run simple shell commands in my script, but am unable to get rid of new lines even using chomp or chop.
Is there something I am missing ?
u=`echo '#{l}' | cut -d: -f4`.chop()
p2=`echo '#{l}' | cut -d: -f3`.chop()
p1=`echo '#{l}' | cut ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Compare Two Tables with SQL I have two tables; one with records being recorded by operators, the other with data stored by the machines the operators are running to log down time of the machine. The data coming from the operators is one record minimum (sometimes more) per hour that the machines are operating. The da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Error when compiling some simple c++ code I try to compile this cpp code on osx lion but I get an error.
#include <iostream>
using namespace std;
int main (int argc, char *argv[])
{
for(int i = 0; i < 10; i++)
{
cout << "hi";
cout << endl;
}
return 0;
}
To compile:
cc ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: How to create a link to a Facebook object within a comment using the Facebook API I would like to be able to recreate the same comment linking ability that facebook has on their front end through the graph API (NOT javascript SDK).
For example, through the web interface I can type in @George... and then lookup one o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass a variable on pushpin button press? I am currently using this code to disaply multiple pushpins based on an XML file. I have an onclick event for the pushpins also. But what I would like to do is the pass the Name var from each pushpin to another page.
I have set it up the way I thought it would work, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does embedded fonts in css affect performance per usage? I know there is a performance overhead for loading the font file, but the question is, once it has been downloaded, can I use it freely any number of times on my HTML page? or does it add an overhead every time it is being used?
A: This has got to be the comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: 400 Bad Request for URLs containing "&" on IIS7 with UrlRoutingModule I'm setting up ASP.net MVC 2.0 on an old WebForms site that runs on IIS 7. The old site has a 404 handler set up like:
<httpErrors errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: The best overloaded method match for 'int.Parse(string)' has some invalid arguments Console.WriteLine("Enter the page that you would like to set the bookmark on: ");
SetBookmarkPage(int.Parse(Console.ReadLine));
It's the int.Parse(string) part that gives me the error message of the topic of this thread. Don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Benefits of Continuous Integration workflow I'm currently planning a new project and considering the products I need to buy. Currently I'm quite definite we'll be using Git as a VCS, but I'm quite new to the whole Continuous Integration concept and confused about the benefits we can get from it. But I have a sense t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java - Can't print image (to paper/printer) I am trying to print an Image using the following code, but the document simply stays in the print job queue, and refuses to print. In the (windows) print job queue I get:
DocumentName: Printing an image Status: [Nothing] Pages: 1, Size: 2.1Mb.
This does not happen with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: db4o : ActivationDepth seems to have no effect (?) Can someone please explain to me why setting
the Activation Depth seems to have no effect
in the code-sample below ?
This sample creates 'Block'-objects which all have
a number and a child-block.
Since the ActivationDepth is set to '2', I would expect
that only Bloc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why does ldap have all these funny two letter codes couldn't they make it simple, all you need is just uid and passwd, but they have all this stuff like cn and dn and base dn, it's too complicated
: dc=,dc=
objectclass: dcObject
objectclass: organization
o:
dc:
dn: cn=Manager,dc=,dc=
objectclass: organizatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: using a javascript variable I'm having trouble with this script recognizing my variable as a variable. The important part of the script is as follows:
var content = 'imagereims';
var ms = content.substring(5);
$.get("../msimages/image.php", {ms: 'ms', pid: '<?php echo "$pid" ?>'}
);
I want the scri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying realtime output from a text file on a webpage I have a program running on one of my servers and the output is being redirected to a text file. I want to be able to watch the text file like a linux "tail -f output.txt" would, but I want to watch it through a webpage.
Is this possible? How do it do it?
Than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Proper MVC way to show "no items" message in view My controllers return a list of items to my views. I need to handle the case when there are no items to show the message, "There are no items."
I can either:
*
*Check list.Count from my controller and return a view containing just that message, or
*Check list.Cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Connecting Visual Studio 2010 to Oracle What is the easiest way to connect Visual Studio 2010 to an Oracle database not hosted on my local machine. Can anyone please link me to a tutorial that will help me do this as I have only ever connected using VB6 and ODBC. Or please provide me the steps involved in connecting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Multiple file upload to server This is my second question on the forum. I've exhausted all avenues of researching this on my own. I have an HTML form the will be processed with a script. In this form the user has the option to upload up to 10 images.... each image has its own entry field like this...
<form actio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Server Errors with .htaccess mod_rewrite On my localhost, there is no problem, but when I upload my .htaccess file to my 1and1 hosting account I hit a brick wall (an internal 500 server error)
Update: I found the offending code, just don't know why its broken or how to fix it (I commented out the broken line)
#Rewr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Socket.io handler using Gevent / Tornado & Flask can anyone show me and example of how to handle a generic socket.io connection (depends on the client browser, could be websockets, or xhr-longpolling, etc..) using gevent and flask, or maybe flask with tornado as an async server
thank you
A: TornadIO works well enou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I implement a Java interface with variadic methods in Scala? I am implementing a Java interface containing variadic methods like so:
interface Footastic {
void foo(Foo... args);
}
Is it possible to implement this interface in Scala? Variadic functions are handled differently in Scala, so the following w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Jasper Report shows message "The Report is empty"
Possible Duplicate:
“The Report is empty” - is bug?
I created iReport which execute stor proc in MS SQL server with 3 input parameters: startdate, enddate and dept_nm. In Jasper server repository I've created 3 controls with the same names. Using iReport the repor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Objective-C Base class for view and text field So I'm developing a program where there are multiple little program inside. The main window show all the mini program, for the moment there is only one working but they will all be somewhat similar, so i click on the 'TimeEntry' button wich brings me to another view con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set SplashScreen in Eclipse? My App would load a splashScreen before launching the main window. How do you set the splashScreen running in Eclipse? There was a place to put the "splash:splashScreen.png" in NetBeans so that the App would start with the SplashScreen. Anything like that in Eclipse>
A: This link... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I use inline raw LaTeX in reStructuredText I am trying to embed a LaTeX variable into some reStructuredText. I know about the ".. raw::" directive, but I want this to be embedded in a paragraph of text. Specifically, I am looking to replicate the \numquestions\ and \numpoints\ variables from the template exam do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: mvc3 and entity deployment - Will Entity create tables? I'm super new to all this, so this may be a silly question.
I'm deploying a mvc3 app. Locally I have two databases, one came built in and contains the users/membership/roles, etc the other is for my dbcontext.
Local connection:
<connectionStrings>
<add name="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Font or Images? I've been wondering about this for some time now. In the game Angry Birds whenever a pig dies, a number appears depicting the amount of points gained by killing the pig. Are those digits part of a TTF font that the developers created? Or, are they simply images imported into the program? A good indic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Performance of running a multithreaded program on a single core by setting affinity? In short:
Under what scenarios can running a multithreaded app on a single core destroy performance?
What about setting the affinity of a multithreaded app to only use one core?
In long:
I'm trying to run the physics of a 2D engin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dev Express Aspx Gridview Multi-row filter control I am utilizing the Devexpress aspxGridview control throughout my asp.net web forms application. Many of the databases that I would like to be able to visual and filter using these controls have a large number of fields in them. Here is an example below (although t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio 2010 runtime check failure # 3 It looks like that Microsoft is backfiring again in VS2010. Here's my code
#include "string.h"
typedef struct s_test
{
unsigned char a[20];
} t_test, *p_test;
void initialize(t_test t)
{
memset(t.a, 0, 20);
}
void main()
{
t_test t;
initialize(t);
}
and i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to run any Android project - could not find apk error message I've recently installed the Android SDK on Windows 7. I'm editing using Eclipse. I have had no problems whatsoever on Windows XP previously, but for some reason nothing happens on Windows 7. I've given as much detail as I can below:
So, when I try ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a accurate chronometer, matching real time? I'm working in an educational software, mostly developed using Flash AS3, and we have a chronometer which shows different values through different users.
Example: Two users starting the chronometer at same time, but along some minutes of usage, they have dif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compiling PJSIP for use in iOS 5 I know iOS 5 is still under NDA, but I don't think this will violate their terms.
When I try to compile PJSIP for xcode for use within iOS 5, it dosen't find gcc. "Cannot find gcc for iOS 5 SDK" is the error I get. Is there any way to remedy this? Thanks!
A: Changeset 3818 in the PJ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make my program, written in Java, usable to other people? So I've written a funny little program and I want to show it to some of my friends. My friends, not being programmers, have no idea what to do if I send them the folder containing the necessary classes and files. I want to be able to email them somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unit Testing RavenDB In my unit tests I am setting up each test to have a totally empty IDocumentSession. I do it like this:
[SetUp]
public void SetUp()
{
_store = new EmbeddableDocumentStore
{
RunInMemory = true
};
_store.Initialize();
Session = _store.OpenSession();
}
But I think this might be th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How to close split window / adjacent editor - Xcode 4 I've managed, by playing around with the menus in Xcode 4, to open a window in an adjacent editor (Navigate, open in adjacent editor). Unfortunately, I'm having trouble figuring out how to close that window. How do you do that?
A: There's a close button in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I use Razor expressions within a Coffeescript file? I would like to do something like this in CoffeeScript so that I can move all my script off into coffe files:
$("#btnFinish").click ->
$.post "@Url.Action("Submit", "Process")", (response) ->
$("#PlaceHolderButton")
.button()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails controller design pattern for dashboard I would like to have a Dashboard page that gather information from multiple models to a summary view (without its own model). How should I go about it the Rails way? Should I create a dashboard_controller with just index action?
Thank you.
A: just think a little less R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to defeat C# GetCallingAssembly().Location security I'm trying to load and execute an dynamically external assembly against its developer's wishes. It does a hash check on GetCallingAssembly().Location and closes.
The assembly is frequently updated so editing of the IL code to bypass this check would be possible... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: How to create a special binary tree I wish to index some data where the key is a ulong.
This ulong (64 bits) represents a combo of products,
where each bit of the ulong is a Product in the combo.
So if we get a ulong Key of value 3. That's really 1 + 2.
That means that products 1 and 2 are present in the combo.
ulon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you use the tac command in Terminal? I'm trying to search a large file in reverse order from the command line (using terminal). I found the tac command: http://clifgriffin.com/2008/11/25/tac-and-reverse-grep/
tac is the inverse of cat. However, when I try to use the tac command in terminal, it says that command... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When does Android check Min-sdk? My application is targeted for API 8 (Froyo) minimum, however I'm getting a message in the Android Market that says "This report was sent in by a pre-Froyo client, which did not include a stack trace."
When does Android check that the Min-sdk is greater than or equal to the API versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I tell what class in the polymorphic hierarchy contains the method I'm about to call? If I have:
class A():
def f(self):
print("running function, f from class A")
class B(A):
def __init__(self):
A.__init__(self)
def f(self):
print("running function, f from class B")
and I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NullPointerException with JFrame At the moment all I want this program to do is run without any compile errors. Basically, what I need it to do is open the frame and then when the frame is selected, if I press the up arrow key it will set arrows[0] to true and when I release it it will set it to false (same with rig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Trouble displaying variable in foreach loop using multidimentional array I'm able to display id and tags in the foreach loop no problem. But I'm having trouble showing title and height. I'm not sure how to call them into the foreach loop.
I can call them in the while loop so I know that they are working.
$persons = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't get this content spinning API to work with PHP Can you help me get this content spinning API working? It was wrote to work with C# but is there a way I can get it to work using PHP? I've been trying to post to the URL stated on that page using cURL, but all I'm getting back is a blank page. Here's the code I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript inheritance: when constructor has arguments Using pure JavaScript to do inheritance, this is what I usually do:
function A() {}
A.prototype.run = function () {};
function B() {}
B.prototype = new A;
B.prototype.constructor = B;
Since there is no arguments to pass into the constructor, new A has nothing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Ruby string search: which is faster split or regex? This is a two part question. Given you have an array of strings that can be split at a character (e.g. email addresses at '@' or file names at '.') which is the the most performant way of finding the characters before the split character?
my_string.split(char)[0]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why is __init__.py not being called? I'm using Python 2.7 and have the following files:
./__init__.py
./aoeu.py
__init__.py has the following contents:
aoeu aoeuaoeu aoeuaoeuaoeu
so I would expect running aoeu.py to error when Python tries to load __init__.py, but it doesn't. The behavior is the same whether PYTH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Partial mongodb upsert using the c# driver? Mongo version 1.8.2.
Assume I have a class like
public class Acc
{
public int _id { get; set; }
public int? Foo { get; set; }
public int? Bar{ get; set; }
}
Acc a = new Acc
{
_id = 1,
Foo = 3
};
I'd like to call
myCollection.Save(a),
such that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: stop running php function if exceed a given time I need to parse many html files using php.
foreach($url_array as $url){
$file = file_get_contents($url);
parse_html($file);
}
For some reasons (file is too big), function parse_html() take very long time to run or has memory leak in it.
I want to monitor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Asp.Net MVC WebGrid helper custom attributes for table rows Is there a way to assign custom data attributes for table rows generated by the WebGrid helper in Asp.Net MVC?
What I would like to end up with is something like this:
<tr data-foo="foo"></tr>
A: No, AFAIK that's not possible. The best you could do on a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problem with position: fixed, div is not really where it should be THE PROBLEM IS SOLVED: I specified right: 0px instead of top: 0px...
I have a problem with CSS' position: fixed; both in Firefox (6.0.2), Chromium (12.0.742.112) and Konqueror (4.6.2). Consider the following example:
<!DOCTYPE html PUBLIC "-//W3C//DT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How can I merge multiple lists of files together with CMake? I have a project built with CMake that needs to copy some resources to the destination folder. Currently I use this code:
file(GLOB files "path/to/files/*")
foreach(file ${files})
ADD_CUSTOM_COMMAND(
TARGET MyProject
POST_BUILD
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Fan-Gated Facebook Tab with Rails 3 I followed a how to by CoverHound see
How to Create a Fan-gated Facebook Tab with Rails and JavaScript.
Everything went smooth up until step 3 under Serve the content for your FB App with a Rails application When previewing using my local server, I got an error. Typical rails sec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to cast a java.lang.Class to java.lang.class See the bottom for the solution.
I'm trying to write some generic handling code, but in 1 of the sub-classes, it requires a Class that is more specific.
So the base class as a field of type Class, and in the subclass I'm trying to cast that Class object to type Class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should hierarchy be included within css names? What is the 'best practice' in terms of including hierarchy within css names? EG:, suppose we have the following html:
<div class="foo">
<div class="$className2">
<div class="$className3">123
</div>
</div>
</div>
Should $className2 include 'foo-' as a prefix, and $clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Client Object Model access to Custom User Properties I've setup up a custom user property via central admin and set the value on a couple of my users. That said when I query the User Information List using Query Builder I'm not seeing values for the field. I've even tried specifying the fields to return via ViewFiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Attributes on a derived type not being deserialized in a WCF client even though KnownType is used I have the following types:
public enum MyEnum
{
Value1,
Value2
}
[DataContract]
public class Configuration
{
[DataMember]
public MyEnum MyValue { get; set; }
[DataMember]
public Credentials Cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows 7 - custom window menu item: GetMsgProc hook not invoked I'll get right to the point: a custom menu item that I added to the system menu of every window through Windows global hooks doesn't cause GetMsgProc to be invoked when the user clicks it.
Here is how I add the menu items:
void HookCore::AppendTasksMen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: First Letter Capitalization in CakePHP Model Name I have been having a problem lately with my CakePHP models. The capitalization of the first letter of the model name keep changing. For example
$brands = $this->brand->findAllByCompanyId($company);
$list = array();
foreach ($brands as &$brand) {
$list[] = array(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Could someone show what a sample emacs .erc-auth.el file would look like? The ERC Manual shows code for loading authentication information:
(load "~/.emacs.d/.erc-auth")
but does not show what that auth info would look like. I'd appreciate a sample file.
A: It doesn't have any particular format. It's just another... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a reason to specify DEFAULT (NULL) on a nullable column? I have a table created like this originally:
CREATE TABLE dbo.XX (
YY int DEFAULT(NULL)
)
If you do this, and then script the table later on, you will get the following code, plus a randomly named default constraint:
CREATE TABLE [dbo].XX([YY] [int] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Need help plotting data from a text file with Matlab
Possible Duplicate:
How to separate lines of a text file using MATLAB.like first 1-3(modes) in one group next 1-3 in second group and so on
My .txt file contains the values below. I want to group them like first 1,2 2 2 2...,3 in 1st group,second 1,2 2 2 2...,3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Use MonoDroid / MonoTouch to reuse DataAccess in Mobile Application We have a .net desktop application that has a mobile component (Windows Mobile). The mobile component edits a specific subset of the system data. We would like to create an iPhone and Android version of this mobile app.
Is it possible to use MonoTou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I write a query has a conditional table selection We have 2 tables with identical structure and based on a variable I want to choose which table to select on with out having to write 2 queries in my procedure.
Is this possible?
I tried
declare @table int
set @table = 1
Select orderID, Quantity
from case when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Comparing two generic lists by ID in .NET 2.0 I am posting because I cannot find good ASP.NET 2.0 examples for this.
I have two lists I want to compare:
List 1:
List<Article> articleResult = new List<Article>();
Article has ID
List 2:
List<TaggedContent> tagResult = new List<TaggedContent>();
TaggedContent has C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Define a hierarchy of model classes in CakePHP By default CakePHP has a AppModel class and every model of an application inherits from it. A common design pattern to share logic between models is to create a behavior and configure a model to $actAs that behavior.
But what if I wanted to introduce a hierarchy of mode... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Very confusing Silverlight, Amazon S3, and clientaccesspolicy.xml problem This is an odd one.
I'm using Amazon S3 for storage of files in my Silverlight 4 application. Because of the file restrictions associated with the REST API and S3 (files have to be < 1mb for REST), I'm trying to get the SOAP calls to work.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine DOM position of element in a series of elements when clicked In this scenario, I have a series of list items each of which has a corresponding content area. When clicking a list item, a corresponding content area is manipulated (i.e., if the first list item is clicked, then the first content section... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get Filename from External Process File Handle for Win64bit - C# can somebody please help me.
I want to get the filename that corresponds to a file handle of an external process.
Currently i managed to do that only on Win32bit and not Win64bit.
Is code signing required to do that in Windows 64bit ?
Thanks !
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to call Scala method with Class[_] parameter from Java? So I'm trying to write a Proxy client to a JSON-RPC service, in Scala. It creates a proxy Service object using a Factory that I can directly calls method and Proxy object's custom invocation handler will send the request thru the wire. The Factory is like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: java, Morphia how to compare strings when using the Morphia Find Methods Im new to this so here goes.
Trying to get a user called "Bob" from the MongoDb.
I have the:
UserData ud = MonConMan.instance().getDb().find(UserData.class, "name","bob").get();
The "bob" cannot be found if it has capital "Bob".
I underst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7533573",
"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.