text stringlengths 8 267k | meta dict |
|---|---|
Q: How to make a common subclass to remove duplicate code I have two classes one is derived from CheckBoxList and the second one from DropDownList. The code inside them is exactly the same. The only difference is that I need first one at places where I need to show checkboxlist and second one to show dropdownlist. Belo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Swing shows empty tooltips, how to disable this? I'm creating a java Swing app and I'm new to that.
The problem is that when I move cursor to menu item, for example, it shows me an empty tooltip.
Is there any way to disable this?
P.S. Using NetBeans, if it's important. Maybe it generated some odd code?
A: Go to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Data saving as blank in CakePHP I have a foreach loop that saves a bunch of records into a table using cakePHP
foreach($interests as $id){
$this->data['UserInterest']['user_id'] = $user_id;
$this->data['UserInterest']['interest_id'] = $id;
$this->data['UserInterest']['... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ Class: Passing a parameter I'm just learning classes so I'm trying something basic. I have a class called Month as shown below. For my first test, I want to supply a number from 1 through 12 and output the name of the month ie. 1 = Jan.
class Month
{
public:
Month (char firstLetter, char secondLetter, char ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AppFabric vs asp.net cache with sqldependency performance I'm working on a plan to increase performance and scalability of a web app by caching a user database for a WCF web service. Goals are to increase performance by accessing this data inProc vs a round trip the database server, as well as increase scalability ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make a Django template tag which expands into another (macro) We've got a third-party Django template tag like this:
{% frobnicate "foo", "bar", "baz" %}
do stuff with {{ frobnicator }}
{% endfrobnicate %}
Unfortunately, the do stuff with {{ frobnicator }} part is repeated every time we use the {% frobnica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Complex Database Relations (Junction Tables) My Question is about the idea of combining two junction tables into one, for similarly related tables. Please read to see what I mean. Also note that this is indeed a problem I am faced with and therefore relevant to this forum. It is just a topic of broad consequence for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to configure project in Hudson/Jenkins to report to Jira I have installed and configured this plugin:
http://wiki.hudson-ci.org/display/HUDSON/JIRA+Plugin
In Jira I have turned ON option "accept api calls"
in Jira logs i can see that Hudson established connection
but nothing else happens, ive got test builds an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: DirectX 2D drawing with Vb.net I'm using using System.Graphics for my latest project (A simple 2D application). Problem is, it gets a horrible FPS and I'm only drawing 8x8 tiles (usually 10-12 is enough to bring it down to 12FPS).
A friend of mine suggested that I use DirectX. He also suggested XNA but I opposed b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: git merging local branch with remote branch I have a remote git repository where I have a tag (tag-1) that is several commits back from master. I'm trying to take the very last commit (6337dcb1) and add that to an updated tag-1, creating a new tag called tag-2. I'm pretty new to git so I'm getting confused about t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Updating a file with library (overwriting just a specific section) I want to ask if there is any way to update say a text file with a content of "ooooo" to
"ooXXo" using the fstream library. I know there is a way with cstdio but I don't want to use that one because of unsupported exception handling... Also, I don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using NodeJS for real time live updating view using database I have been playing around with Nodejs and now wanted to know if i could create live update to a view/page as shown in this tutorial here
The example above would apply to all users on site, what i want is to target my updates to certain users.
Do i cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: git: getting rid of previous commit so that you can amend the one before what happened:
change1,
git commit,
git push,
change2,
git commit
what should have happened:
change1,
git commit,
git push,
change2,
git commit --amend
It's not important that I retain change2, but it is important that I am able to amend the or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery Move Table Row but NOT past header I have table rows that move up and down, but my problem is that the data table rows replace the table header (first row).
I want a fixed first row so that when you click the Up arrow you do not move the row up to replace the header.
I have tried some conditional logic to che... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Itextsharp: Adjust 2 elements on exactly one page So, I'm having this problem using C# (.NET 4.0 + WinForms) and iTextSharp 5.1.2.
I have some scanned images stored on a DB and need to build on the fly PDF with those images. Some files have just one page and other ones hundreds. That is working just fine using:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iphone: how to add text above and below the image in the scrollvew? I would like to add a page number above the image such as "1 of 50" and description of the image below the image in the scrollview.
I have looked at this LINK but still couldn't figure out how to make it happen.
here is my sample code of the image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how can a clicked asp.net button open jQuery dialog and then resume default when Yes is clicked? I've got a jQuery dialog and an asp.net button (Delete). When the delete button is clicked I want the dialog to open a confirm window saying 'Are you sure you want to delete this record?'. When the user clicks yes I'd li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: append an element to another one and append all of them to another element I want to create a div and append one ul (with a class) and one h5 (with text) to it. then, append that div to another element.
I think this code should do it:
$("div").addClass( "nice" )
.append( $("ul").addClass("myclass") )
.append... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calculating time for Android alarm In Android we set an alarm by setting the time until it goes off in milliseconds. Is there an easy way to find how many milliseconds there are until a certain time (hh:mm) or do I just have to calculate it mathematically?
Thanks!
A: Save your current time in milliseconds as
Calan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detected BIOS data in system (Delphi) How detected name of modern chipsets in system (Delphi)
A: WMI (Windows Management Instrumentation) have routines to detect computer hardware.
The best Delphi package for WMI is wmi-delphi-code-creator.
Look for documentation for the calls Win32_BaseBoard and Win32_MotherboardD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: RelativeLayout problem. ImageView scroll up when keyboard shown I'm trying to show a ImageView under a AdView like image 2. The problem is where the EditText is active, the keyboard is shown and if the AdView is loaded, all works perfect, but when the AdView isn't loaded, the ImageView scroll up out of the screen li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make ASP.NET WCF convert dictionary to JSON, omitting "Key" & "Value" tags Here's my dilemma. I'm using a RESTful ASP.NET service, trying to get a function to return a JSON string in this format:
{"Test1Key":"Test1Value","Test2Key":"Test2Value","Test3Key":"Test3Value"}
But I'm getting it in this format instead:
[{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Array structure for Shopping Basket I am trying to implement multidimensional array that hold data of Pizza id's with options and extras id's.
Let look at the following scenario...
Customer wants
*
*Two 'Chicken Pizza' (ProductID:12) - '10 inches' (OptionsID:4) with extras of Ham and Tuna (ExtrasID: 5,10)
*One ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: find a particular function in a executable using dumpbin tools family Is it possible to know with dumpbin tools if a executable under windows use the command arp ?
A: No, not really. If it has arp.exe as a string literal, and passes that string literal to WinExec, CreateProcess, etc., that'll be pretty easy to find... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replace a character in a char[] from a function How would I get my replace_char function to work properly?
The way that I am trying it in the function below returns segmentation faults using gcc in Ubuntu.
I have tried other ways, but each time I try to change the value, I get a fault.
int main (void)
{
char* ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using SMO on web server with ASP.NET Is it required to have anything SQL Server related installed on a web server in order to make use of SMO? I've built a web app that programmatically creates a SQL Agent job, adds a step (which ultimately fires of dtexec to run an SSIS package), and executes.
This works fine on my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery clone() and 302 image sources -- how to avoid reloading in Firefox? I have a group of images within a <div>. All these images are served through a 302 instead of a 200 for security purposes (servlet serving image based on authentication).
I would like to clone that <div> and append it to another container.
Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ant: How to echo the name of targetfile within apply I'm not really familiar with Ant and i wonder how to print the name of the current processed file to the commandline.
This is what i have so far... It's a part of a macro which minifys files with the yui-compressor.
<apply executable="java" parallel="false" verbos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does this field need an index? I currently have a summary table to keep track of my users' post counts, and I run SELECTs on that table to sort them by counts, like WHERE count > 10, for example. Now I know having an index on columns used in WHERE clauses speeds things up, but since these fields will also be updated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating new blog with tags Im trying to setup a blog with tagging, and i've run into a problem when trying to save.
I got 3 models
blog model
has_many :blog_tags
has_many :tags, :through => :blog_tags
blog_tag model
belongs_to :blog
belongs_to :tag
tag model
[nothing]
When i post my blog form, i got an input fie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery div content partial hide, show all I have this solution I am trying to use but it uses ID's. I want multiple divs on the same page using the same classes. I changed the ID references to classes but I can not get them to fire independently of each other. They all fire at the same time. How would I get them t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Route events from one dom node to another WITHOUT JQUERY My question is totally like: How do I pass javascript events from one element to another? except for the fact that I need a raw JS solution.
I've got a webos app whose UI features a layering of elements that scroll in conjunction with eachother on a page. Basi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cycle.js IE7/8 clicking pager causes it to blink, not fade I'm using Cycle.js for a project. I have created a static navigation area and using the pager: in Cycle allow the user to click which slide to see. Everything looks fine in all major browsers, FF, Safari, Chrome, IE9 etc. However in IE 7 and 8 it doesn't fad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Updating Multiple ComboBoxes In my project I have about 100 comboboxes, every combobox holds the same items. I want to "update" every combobox like this:
When an item is selected in combobox A, all other comboboxes shouldn't hold this item anymore. Likewise, when the selected item from combobox A changes again, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Memory alignment (Using C specifically) If you've got a struct within a struct, say:
struct {
double a;
struct {
char *b[20];
char c;
}d;
}e;
will struct e need to start on a multiple of the size of struct d, or a multiple of the size of the largest member of d (char *b[20])?
A: The str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Silverlight Treeview DisplayMemberPath not working I have a ObservableCollection of Patient objects. Each Patient object has a Name property, an Id (int) and a List of Therapies. Each Therapy has a TherapyName(string). I'm using the TreeView to display the data like this
<sdk:TreeView ItemsSource="{Binding PatientLi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dividing decimals yields invalid results in Python 2.5 to 2.7 After a very thorough read of the Python's decimal module documentation, I still find myself puzzled by what happens when I divide a decimal.
In Python 2.4.6 (makes sense):
>>> import decimal
>>> decimal.Decimal(1000) / 10
Decimal("100")
In Python 2.5.6,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to sort text column by number sorting in Access? I have a column with address numbers (1, 1a, 3, 12b, ...etc).
I need to sort them as numbers (result as above), not text (such as 1, 1a, 12b, 3, ...etc).
What would be the sorting clause for this issue?
Help appreciated.
A: Try this:
Val(iif( /columnName/ IS NUL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Embed a web browser in a Python program How can I embed a web browser in a Python program? It needs to run on Linux (GTK, Qt are fine), or cross-platform.
I have looked at embedding pywebgtk and Qt's WebKit widget. But these seem to have little more than a rendering engine. In particular, I'd like support for back/f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Use application or activity context in CookieSyncManager.createInstance Is it a good idea to use application context instead of activity context in CookieSyncManager.createInstance() call?
CookieSyncManager.createInstance(activity.getApplicationContext());
In Facebook's SDK, it uses activity context, which I think ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mimicking class-based OOP constructors in Javascript Quick Note: OOP in Javascript is a topic that is beaten to death on Stackoverflow and elsewhere, but I cannot find this specific question answered anywhere.
The "hanging code" in Javascript objects has always bothered me, as it seems to break the flow of the code.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make a class object instance to return a predefined value? I am using Ruby on Rails 3.1.0 and the rspec-rails 2 gem. I am testing my controller code (BTW: I am newbie to rspec) and I would like to make possible that a class object instance returns a predefined value. That is, in my controller I have:
def crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to merge all web.configs at once for a mvc3 app I've got a mvc3 app with several configurations (debug, ci, qa, client-dev, client-qa, release). I've got web.configs merging nicely within visual studio for whatever configuration is currently selected in the ide.
So I've got this in my project.
web.config
-w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rendering a partial in a collection with Rails counter I'm rendering a partial in a collection:
<%= render :partial => 'superlative', :collection => @profile.superlatives, :locals => {:superlative_count => @profile.superlatives.length} %>
Here is the partial:
<li class="superlative"><span title="<%= superlative.nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android + Use LoaderManager with an ArrayAdapter? I might be way off here, but I have an ArrayAdapter managing static data for a ListFragment. Very simple stuff. However, I'm interested in taking advantage of the new LoaderManager class. Can I still use my ArrayAdapter and write my own loader? The documents seem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Display Dynamic Content in ASP.NET MVC 3 I have the following structure:
*
*Site.Master
*Home - View
*HomeController - Controller
In the Site.Master I have a header that contains several ActionLinks, one of which is a Faq. In the Home view I have HTML that essentially displays static content, but, in the cente... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linux/C: Get ip address from device name?
Possible Duplicate:
Get IP address of an interface on linux
How can I get the ip address from the device name (Example: eth0)?
A: DISCLAIMER: Your application SHOULD NOT depend on this kind of information. The application must see and use IP addresses ONLY. Ethernet devi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: send commands to a webapp running on tomcat I'm new with java and tomcat, so, excuse me if it's silly.
I would like to send commands (from the console) to a servlet that is already running on tomcat. The webapp will run the command in the tomcat context and return the appropiate answer.
i.e:
$ consoleApp status
runn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bringing convenience of Java code assistant from Eclipse to Visual Studio 2010 for native C++ projects Eclipse has many features which saves a developer much time, for example:
1) Override/Implement Methods...
2) TODO lists...
3) Fast access to documentation... (There might be also something else)
Is there any plu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UIScrollView wheel effect I need a scrollview in my iPad application that has two specific features, one of them is easy to find on much sample projects that is infinite scrolling.
The second feature is, which is the problematic one, i need that scrollview seems as a circle (like a wheel) with a 3D depth effect, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP string key in array gives Undefined index I have the following array:
Array
(
[A3L791B03M-YLWS] => 1
[A3L791B03MBLKS5] => 1
[A3L791B05M-BLKS] => 2
[A3L791B05M-BLU] => 1
[A3L791B05M-BLUS] => 1
[A3L791B05M-GRY] => 2
[A3L791B05M-H-S] => 1
[A3L791B05M-REDS] => 1
[A3L791B05M-S] => ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When I call Count method in Entity Framework, does it process all the columns or just one or what? Im looking for otimization.
When I call Count method in Entity Framework, does it process all the columns or only one or what?
If you also have any official site talking about this, I would appreciate.
Thank you.
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Put a Thread to sleep but keep animations going - is this possible? This might be a strange question but there might be a different solution for what I'm trying to achieve, I'm open to anything that works as needed!
Facts:
I have a UITableView with a UISearchBar handled by a UISearchDisplayController.
Above said Tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django setting for default template tag output when variable is None? I am looking for a django setting or programmatic way to make all django template tags show the empty string when the value is None. For example, imagine that I have some django template:
{{cat}} chases {{mouse}}
if both cat and mouse are None, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Windows Mercurial global keychain I'm in the middle of trying to get mercurial working on a windows build server and am having issues. I went to the trouble of setting up the mercurial keychain (I had to install tortoisehg), and it works on a per-user basis.
The problem is that I'm using Bamboo to run the builds, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: selectRowAtIndexPath failing in viewWillAppear I've got a menu that's a UITableview in a UIPopovercontroller that when selected scrolls the parent view's UIScollView to a specific frame.
It's working great.
The problem is if you use the pageControl to scroll the frame I need to update the selected row in the table [... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: format a number to a character with css I'm working with a list of numbers in a table, specifically golf scores. And I want to replace occurrences of '0' with 'E'. I was doing this at the application level but the javascript I'm currently using to do some sorting gets very confused finding a letter in the middle o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Moving controls from one stackpanel to another I have a bunch of buttons on a stackpanel which I want to programmatically move back and forth on demand. I'm struggling to get the visibility/alignment correct. It appears that the buttons seem to have some setting which occurs when they are initially rendered in the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Aptana Studio 3 content assist is black text on black background(unreadable) I have tried to change this by going to preferences-> General-> Appearance-> Colors and Fonts and in the basic folder changes the Content assist foreground color to white and click apply but each time I go back it has changed back to black ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When does Ninject's OnActivation get fired? I am sure this is a stupid question, as I am assuming the answer is "When the object is instantiated by Ninject"... But I want to double check...
To give a little more context as to why I am asking the question, I have an asp mvc app which implements NinjectHttpApplication... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Strategy for loading SQLite DB's into Android App I have a SQLite DB with 20,000 records. I cannot load the DB in the Emulator and it Force Closes on some installed devices. I can load the full DB on my Test Device (HTC Inspire).
I have cut down the records to apprx 5,000 records and distribute the app and it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why drupal adds version number to js path? Why the drupal adds the version number (like ?v=XXX) into the .js libraries?
For example:
<script type="text/javascript" src="http://localhost/misc/jquery.js?v=1.4.4"></script>
And what means strange text at the end of path to .css files (after the '?' sign):
@import url("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you control event firing in C#? I wrote a program that does some processing on an image delivered via a web cam. There is an event that fires whenever a new frame is received from the camera. However, this happens more frequently than I'd like - so frequently that my image processing function doesn't complete... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: disable a jQuery .toggle() method I am looking for a way to disable a .toggle() attached to a div
if (condition) {
$("#div").toggle(
function() {
do this
},
function() {
do that
}
);
}
else {
// How do I achieve this?
$("#div").disableToggle(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I return an array in a response I'm trying to return an array in HTTP response. I'm thinking to return array as JSON objects. I'm doing echo json_encode($arr) but I get nothing in the response.
UPDATE: I'm running a version of PHP that does not have json_encode method. json_encode was introduced in PHP 5.2.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: FancyBox onload show is not working with normal click I'm creating a little JavaScript game. When the page loads, it is supposed to display a Fancybox over the page.
Here is my jQuery for the Fancybox:
$(document).ready(function() {
$('#test').fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Foreign Key Constraint fail I'm trying to insert a new row in the table but I'm getting below error:
Cannot add or update a child row: a foreign key constraint fails (`wmetools_restool_dev/keywords`, CONSTRAINT `keywords_ibfk_1` FOREIGN KEY (`link_id`) REFERENCES `links` (`link_id`) ON DELETE CASCADE ON UPDATE CASCA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Read a text file and create a 'Page' every 7 lines How may I accomplish the task above? What I have been trying to do is separate the pages into different arrays but failed terribly.
Code by request (does not even close to work)
int a = 1; int b = 5;
File folder = new File("c:/files");
File[] listOfFiles... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combine three grayscale images into RGB with MATLAB I have three grayscale images where each image represents a single channel from a RGB image of 16-bit resolution. I would like to convert them to obtain one single RGB image. I have tried cat and ind2rgb but it is not working. Should we index our grayscale image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: create expression designer in java I'm trying to create a expression designer in Java, any idea if there are something like that in the market? The expression that i need to build are like this:
*
*Var >= 5 Or Var = null
*Var2 > 20 And Var2 < 50
*Var3 = 15
How can i do this?
Thanks.
A: Is this what you need?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between xmalloc and malloc? What is the difference between xmalloc() and malloc() for memory allocation?
Is there any pro of using xmalloc()?
A: xmalloc is part of libiberty
https://gcc.gnu.org/onlinedocs/libiberty/index.html which is a GNU utils library.
malloc is ANSI C.
xmalloc is often i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Are there any known algorithms, open source programs, or white papers for cracking a password given a known portion of the password? Essentially a a friend of mine locked himself out of an encrypted container he created. He must have made a typo when entering his password, because he cannot access the container. We ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: vertically center text in tabs How do I center the text vertically in tabs within a TabHost? The text sits at the bottom right now. I seemed to have tried everything but nothing works.
I've tried using things like android:layout_gravity="center" and android:gravity="center" but they do nothing.
Thanks
A: Some peopl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use multiple RewriteRule rules in htaccess? I'm using 2 RewriteRule rules in my htaccess
RewriteEngine on
RewriteBase /
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#if it has member/photo/render_fast forward to photo_render.php
Rew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ignoring Compilation errors - Java I have around 1500 files to compile, in which 15-20 files have compilation errors. These files are not under my control, so I could not do any modification/update/delete. So, i have two questions here.
1) how do i ignore the compilation errors from these 15-20 files and continue to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Rolling log file in PHP I'd like to write/read a rolling log file with PHP, where only the latest ~300 lines are stored/read and anything older is discarded. I'm not sure of the most efficient way of going about it - it needs to work fast as it's recording page hits on high traffic web sites.
Another PHP script will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to change the UriTemplate at runtime I have the following WebInvoke Attribute:
[OperationContract]
[WebInvoke(
Method = "POST",
UriTemplate = "",
BodyStyle = WebMessageBodyStyle.Bare,
ResponseFormat = WebMessageFormat.Json,
Reques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where to put core resources in Symfony2? I started to build a website with Symfony2, and I had a little bit of a quandary about resources.
The Symfony2 Book says that every resource file have to be in a Bundle, but what about the most essential images, .js and .css files that I use in the base.html.twig file on ever... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to display certificate of HTTPS request in embedded WebView In my Mac OS X app I'm using an embedded WebView to do OAuth logins for different services. Most of them use a HTTPS request for the authorization form that's displayed in the WebView.
Now I need to display a small lock like in Safari, as soon as the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Sharing projects with VS and TFS I'm running into a lot of problems sharing projects between solutions with VS 2010 and TFS 2010.
First issue is that everyone sets up their machine different, and create workspaces differently. Some use a single workspace for all projects. Some use a different workspace for each pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Some of my NSStrings are alphanumeric. How do I tell which ones contain numbers and which ones don't? NSString *test = @"example";
NSString *test2 = @"ex12am243ple";
Is there any easy way to determine which string contains a number in it (0-9) and which one doesn't?
Thanks.
A: if([testString rangeOfCharacterFromS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get the request body? I am trying to implement a simple JSON-RPC server. The client part is handled by the jquery.jsonrpc. This seems to work fine, sending a JSON-RPC message as the payload of a post message.
My JSON-RPC 'server' currently just wants to echo the data so I can see the result in the FireBug ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UDP NAT hole punching example I try search in google and here but i still cant find simple C\C++ example udp hole punching algorithm. Please help if you know where i can find it. Thanks!
A: You can browse this open source code for it:
http://www.codeproject.com/KB/IP/stunner.aspx
You should googled 'STUN'
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7590298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why are bitmap index operations high CPU bound? Why are bitmap index operations have a tradeoff being high CPU bound?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7590300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can GitSharp return a Leaf (blob) object directly given the leaf's hash? I noticed that I can get the contents of a particular Leaf (blob)
object from a specific branch by iterating over a Tree's children like
so:
_repository = new Repository(git_url);
IEnumerable<AbstractObject> currentBranchItems = _r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing one character in a string I am using something like SPIMS or MARS with syscall functions.
I am reading in a string (and it works because I can print it out) as follows:
li $v0, 8
la $a0, string
li $a1, 256
syscall
However, I am having a problem accessing a single character of the string. So if I want to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Regular expression to detect line that starts with an asterisk The code below fails to detect a single instance of the occurance. =O Whats wrong? =\
How do I detect the following lines (which begin with a newline) that begin with an asterisk ? I'm at a loss. This isn't behaving as I expected.
$text ="Nothing here to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Trying to populate POST data in a lightbox I have a form on my master page and I am submitting the data using POST to another page .
<form id="Form2" action="index.aspx" method="post" name="Form2">
<asp:ContentPlaceHolder ID="form_right_top" runat="server">
</asp:ContentPlaceHolder>
<div id="page... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asynchronous HTTPrequest from PHP
Possible Duplicate:
Asynchronous HTTP requests in PHP
I want to be able to do a POST or GET request from scriptA.php to scriptB.php.
But I don't want scriptA.php to have to wait until scriptB.php is done doing its job. I want to be able to send the request, and don't expect for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SVN:Externals equivalent for Git
Possible Duplicate:
SVN external in GIT
Is there an equivalent way to include other repository locations in a Git Branch, like how SVN:Externals works?
A: Git submodules and to an extent Git subtree merge.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7590333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java array problem. Cant pass values Wen I have this code:
import java.util.Scanner;
import java.util.Arrays;
public class Ex02 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int [] matrixSize = new int [4];
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: rails 3.1 template specific layouts via template resolver? I've got a pretty straight forward template resolver returning templates from the database:
class MyResolver < ActionView::PathResolver
def query path, details, formats
template = MyTemplate.find_by_path path
...
ActionView::Template.new templa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best Practice for reserved words? renaming vars in rails Often I've found my model/var names highlighted in textmate as a reserved word
(i.e service, attr, etc.)
I'm afraid this might cause troubles and I usually change the name to something else
(service -> srvice, attr -> atr)
I googled a bit on the subject but t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Updating HTML File No Domain Name I have an HTML file that I gave to a couple of friends. I want to update the file, and want them to see the update, but I don't want to give them each the file again, and again (every time I make an update). Besides making it public with a domain name, what else can I do?
A: How ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to simulate keyboard input to a console application? I have developed an application in bash that uses "whiptail" to display dialogs in a terminal.
(I personnally don't like this kind of UI but i'm only a developer, i don't make decisions ...). Anyway, now i have to test it, and i would like to simulate a user t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Possible Javascript selector (no framework) to get array of elements using array key naming syntax I have a form where the inputs have names such as:
unit_price[1]
unit_price[2]
The only way I've found to access them from javascript is using:
document.getElementsByName("unit_price[1]")[0]
I was wondering if there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any difference between f:ajax and a4j:ajax? Is there any significant difference between f:ajax and a4j:ajax tags?
I know about a4j:ajax from Richfaces 4 is based on native f:ajax JSF2 tag adding some attributes not found in f:ajax like onbegin, onbeforedoupdate, bypassUpdates, limitRender, status and focus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Getting setuptools/easy_install to play nicely with PYTHONPATH Why do setuptools/easy_install .pth files not place nicely with PYTHONPATH, and how do I get them to play nicely, and keep the directories in my PYTHONPATH before those .pth shoves in the sys.path?
My current problem is I've created a package for our pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: populate dropdownlist Hi i need to populate a dropdownlist. I designed a datasource and assigned it to dropdownlist. The dropdown populated correctly. But the problem is that i need to add a default value say "default" at the starting of the dropdownlist( and this value default is not in the database.
I did this :
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keymap/lmap and recursive mapping in vim I'm using a keymap to type non-latin characters in vim. Like that: set keymap=russian-jcukenwin. E.g. that maps q to й and @ to ". The problem is that I can neither redefine/remove such mapping with lmap/lunmap nor define a recursive mapping, e.g. to map " to something else (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7590366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.