text stringlengths 8 267k | meta dict |
|---|---|
Q: Set JLabel Alignment right-left I have a JPanel that separated to 2 blocks, in south block (layout) I have add a JLabel, In the label I want to Insert a string with this rule: (Name, Date, Time, In/Out)
If my name was written in English everything was fine the problem appeared when I wrote the name in some Unicode l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to get the first line of text of a Matlab M-file? I am using Matlab R2011b. I want to get the text of the first line of the active mfile in the Editor. I know I can use the following code to get all the text of the mfile as a 1xn character array (not broken into lines). However I only want the first line.
activ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JNI "env->GetStaticMethodID()" crashed program I'm trying to call a Java function from C++.
This is my code so far:
#include <jni.h>
typedef struct JavaVMCreationResult {
JavaVM* jvm;
JNIEnv* env;
} JVMCreationResult;
JVMCreationResult* CreateJavaVM() {
JavaVM* jvm;
JNIEnv* env;
JavaVMInitArgs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to focus on a new Emacs frame in Windows How to get a focus for a new Emacs frame when it has been raised from outside of Emacs (for example, from emacsclient or edit-server)? Currently, the new frame get input focus, but not display focus, i.e. you enter text, but it's somewhere behind other windows (in Windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Reading commands from STDIN and executing each as it is entered I'd like to adapt the code below to use a ANTLRReaderStream so I don't have to create a new parser for each line. But it needs to process each line individually, which I don't have any idea how to do currently, and I don't see any way to ask the parser ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "transform: rotate" -why my background images is also moving with rotation of text? I am trying to rotate text on a background-image but my background image is also moving with text rotation why? here you can see my work
HTML code is here
<ul>
<li>
<img src="http://lorempixum.com/200/200/food" />
<h2>price is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I change the text of a element? I have a toggle button that I'm adding to an iFrame:
<script>
$('#list div').each(function(){
$(this).append('<span class="togglebutton">Maximize</span>');
});
$("span.togglebutton").click(function() {
$(this).closest("li").children("div").togg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Corrupt jar file I have created a jar file in windows 7 using eclipse. When I am trying to open the jar file it says invalid or corrupt jar file. Can anyone suggest me why the jar file is invalid?
A: This will happen when you doubleclick a JAR file in Windows explorer, but the JAR is by itself actually not an execu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: android - Cursor returning wrong values I'm querying some products in SQLite database, but same base in 2 differents android's versions return differents values.
Select result in database.db3 using SQLite Expert:
I create this code after select, to test:
if(cursor.moveToFirst()){
while(!cursor.i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: php: date conversion to dd-mm-YYYY format I'm trying to convert this timestamp format which I got from an Oracle sql query:
19-SEP-11 02.34.51.558459 PM
I need to convert it to this format: dd-mm-YYYY.
$install_date=strtotime($install_date);
$install_date=date("d/m/Y",strtotime($install_date));
but I'm getting wei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Safe to keep .git directory in web root? I'm wondering if it's okay keep the .git directory in the web root for a web site.
The permissions of the .git folder and subfolders is 775 and the file are 644.
I suppose I could just set zero permissions for the "others" so that they'd also get access denied?
Thanks
A: You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Draw over a video in an iphone application I am looking for a method so that i can make an iphone application which plays video and the user be able to draw over the video that is being played..
I would really appreciate it if some one could share some information on this regard..
A: In the simplest case, you could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HibernateEntityQuery and EJBQL restrictions I've just inherited some code that uses HibernateEntityQuery and EJBQL restrictions.
There's an "activity" table/entity with various fields, and the existing EJBQL restrictions look like:
private final String[] SEARCHRESTRRICTION = {
"activity.startDate >= #{activity... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Div keeps wrapping when browser size shrinks How do I stop a div from wrapping/moving below when the browse is resized to the left. everything else on the page stays still except this one box. I want it to not move and force the user to use the browser left right scroll to view it.
#signup_box {
width: 363px;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to hide columns GridView when AutoGenerateColumns = "true"? I am using an Asp:GridView with AutoGenerateColumns property set to true to display all the fields.
But I am struck with a problem here.
I need to show only few columns not all..but I do not know them until run-time, like which fields to bind.
So, There... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I set up curl to permanently use a proxy? How can I set up "curl" to permanently use a proxy server in the terminal?
A: Many UNIX programs respect the http_proxy environment variable, curl included. The format curl accepts is [protocol://]<host>[:port].
In your shell configuration:
export http_proxy http://p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "116"
} |
Q: Mongoid namespaced models and inheritance I'm trying the use namespaced models with Mongoid and can't seem to get it to work.
I have the following models: Achievement, Flag, FlagCaptured
Achievment is the base class for FlagCaptured.
app/models/achievement.rb
class Achievement
include Mongoid::Document
inclu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to automatically convert email attachment filename to UTF-8 (using Mail_mimeDecode) I'm using Mail_mimeDecode to extract attachments from incoming emails. Everything was working well for a while, until I started receiving attachments with filenames encoded in KOI8, with a section header like this:
Content-Dispo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Integrating a Ruby/Rails app into a Java app. I have a Ruby/Rails app, which is standard Rails CRUD, with some jQuery and no AJAX.
I have a Java web app with which I would like to integrate the Ruby/Rails app. The Rails app uses the same database as the Java web app and (safely) shares a few tables, and I will put ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: jQuery form validation logic I have the following code:
function showError(l, msg) {
$('#'+l).css({'color':'red'});
$('#error').html(msg).fadeIn(500);
}
$(document).ready(function(){
$('#form').submit(function() {
if($('#username').val() == '') {
showError('labelUser', 'Please enter a username');
ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Splitting Strings on `#` character just wondering for example, if I had the string:
Hello#World#Test
How would I remove the # and then have Hello, World and Test in three seperate strings, for example called:
String1 and String2 and String3
A: You can have them in an array of strings doing something as easy as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Strange program and debugger if statement behavior This is a sanity check because I've lost mine.
I have a method IsCaptured() which compares an enum state member to a given value and returns a bool. I use this in conjunction with a mouse threshold check to determine if a drag begin message should be sent and a drag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Php for a bilingual site Is it possible using php, for a user to click on a english/french toggle button, that would then read the current url, and match it to the french version of the page?
Thank you for your time.
A: When the users clicks the button, populate a session variable with the selected language:
sessi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: AdPlus & WinDbg: difference between taking a dump with AdPlus and with WinDbg? The task - when the application crashes, it is required to find the crash cause.
I saw recommendations to take the crash dump with AdPlus and then load it into WinDbg for analysis.
What I do is attach WinDbg to a process and wait for the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XML declaration encoding What does it actually do? On my very basic level of understanding XML is just a formatted text. So there is no binary<->text transformation involved.
I highly suspect that the only difference between UTF-8 and ASCII encoding is that ASCII encoding will make XML writer work harder by conver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to jQuery select all links on a page that are NOT contained within a certain div Suppose I have product links on a page, some products are within a recommendation div:
<a href="some_url?pid=abc"><img src ... ></a>
<a href="some_url?pid=abc">ABC Product Name...</a>
<a href="some_url?pid=def">
.... more product ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is system-wide Mercurial installation enough in a shared enviroment? I am learning how I can install Mercurial on our team system, but I am not experienced enough to make some decision.
For our team, we have a server machine used as a repository. Every team member also has her/his own Linux RedHat installed machine.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Controlling the URL for an Axis2 web service Can the format of the URL for an Axis2 web service be configured when using the code-first approach (where Axis2 is generating the URL)? In particular, we would like to leave the port name out of the URL.
We have a web service that was built with Axis2 using the code-firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sending multiple emails efficiently I have reached a point where I will have to send email notifications to my users, fro any event they have subscribed to. My service is not large, but nothing stops it from becoming one, thus I would like to be prepared.
Currently, I am handling those emails using Spring's mail sen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQLite Count where query I use a simple sql lite query to fetch the count value from a table.
Cursor cursor = db.rawQuery("SELECT sum(name2) FROM " + TABLE_NAME, null);
if (cursor.moveToFirst()) {
return cursor.getInt(0);
}
return cursor.getInt(0);
This works good
But when I add a where clause to the select quer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fixed positioning an ad in IE Can skip to the edit for a more up to date explanation.
I can't seem to set an ad that gets written out via document.write() to a fixed position. It works fine in all other browsers besides IE, and that includes IE9.
Here is an example: http://htinteractive.com/bottom_bar/demo.html
Any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to do unit test for view in ASP.NET MVC Is there any way that can I write a unit test for Views in my ASP.NET MVC application?
I need to validate the button names, title, etc. stuff using such tests.
A: We've used Coded-UI Tests for ASP.NET web applications. If you have the appropriate Visual Studio version, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Log output from unrar.exe to a text file (Batch script) I am writing a batch script that extracts files and would now like to log the output from unrar.exe to a text file. The output I have in mind are things like failure due to corrupted archives etc. or simply that the operation was successful.
Any ideas on how to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Validate an html document that I wrote with document.write() Ok first off let me state that I know I should never do this under any circumstances for a real site. Ok. That's out of the way.
One of my coworkers was going off that Javascript is not a "real" programming language (his definition of "real" seems to be "i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JS/CSS - Show semi-transparent layer over webpage for JS disabled users My Description
I have a website application that relies heavily on Javascript and JQuery. If the user has JS disabled in their browser settings, the website does not function as well as it should, although it still works.
I would like to stop p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the difference between setattr() and object.__setattr__()? I know that you can't call object.__setattr__ on objects not inherited from object, but is there anything else that is different between the two? I'm working in Python 2.6, if this matters.
A: Reading this question again I misunderstood what @paper.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Is it possible to mask a View in android? Is it possible to mask views? For example, if I have a design that calls for a List View to be visible within an oval shaped opening. Is there a way to create a mask for a view? Is it called something else? Because all the references I find to masking in the android docs are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Rails 2.3.5 having trouble with form_for and fields_for I am trying to add addresses to a user model via a form submit but i am having trouble. A user:
class User < ActiveRecord::Base
has_many :addresses
end
can add an address to his account via the accounts page, which is controlled by the accounts controller.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FileSystemWatcher C# permission problem I'm over a domain, reading the path \\machinecap\platform\in.
The platform is a share, wich leads to E:\cappuccino\platform locally. The application is a Windows Service made in C# .NET 2.0, wich make use of FileSystemWatcher to read the path \\machinecap\platform\in for files... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NHibernate on DB2 session.get() throws System.IndexOutOfRangeException I'm following the NHibernate getting started tutorial: "Your first NHibernate based application". I'm at the point where I create a Product object then use Session.get() to prove I can read the object.
It works fine with SQL Server Ce, but I'm g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's a good pattern for a java unit test that ensures that you are properly closing files? I have an issue in my codebase where we are not properly closing file handles, or probably streams. We eventually get a TooManyOpenFiles exception under very heavy load. Based on the output of lsof, we are pretty sure we k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why do I need to turn off security validation? I'm working on building a webpart that creates a site, adds some lists based on user input, and sets the theme for the site. I can do this whole operation from a console app running on the server just fine, but when I do this from the webpart I get a secrutiy validatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails console log - how to customize what is printed in the console When I run rails s it loads up and everything works. When I browse to a page several lines of information are printed. Mostly this is the webpage getting the assets for the page. I really don't need to see this and have it clutter my screen. Is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how to pass a parameter to actionlink from a script I have a script:
function FindSerial() {
var textBoxValue = $("#clientSerial1").val();
return textBoxValue;
};
My actionlink is :
@Html.ActionLink("talks", "ClientTalks", "Talk", new { id ="FindSerial()" }, null)
I want to use the function in order to get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are CSS selectors case-sensitive? I was recently updating a CMS site and a tab-navigation plugin had inserted the following markup:
<li id="News_tab">...
I've always written my CSS selectors in lowercase so when I tried to style this with #news_tab, it wouldn't apply, but #News_tab worked.
After all these years I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: SQL: Matching multiple columns value I have a database set up so that the username (username) and id (id) are stored in the members table.
I have another table that records reports and I record each column in the table (fid), who reported it (rid) and who they were reporting (id) which both match to the user's id in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Spring Request Mapping Mis I am using Spring mapping. And have the following mapping code. The problem is there are like 20 possible misspelling for these and others that need to be accounted for. Rather than add a RequestMapping for each url which would be like 30 or 40, is there a way to simply redirect these. I k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem adding to ListView within a Relative layout I'm fairly new to android development and I'm having some issues adding an item to the ListView I have. The application is suppose to, upon clicking the "Add" button, bring up a EditText that takes in the name of the class then it is suppose to add to the list the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Handling hardware resources when testing with Jenkins I want to setup Jenkins to
1) pull our source code from our repository,
2) compile and build it
3) run the tests on an embedded device
step 1 & 2 are quite easy and straight forward with Jenkins
as for step 3,
we have hundreds of those devices in various versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Edit of Javascript required to add fade in/fade out effect please Is it possible to add a fade in fade out effect to this javascript? At the moment it just loads an image to another div upon hover of first div but with no effect. Thanks in advance.
<script language="javascript" type="text/javascript">
function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamic Sieve Algorithms for Prime Generation I'm implementing the Sieve of Eratosthenes, for an explanation of this see http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes. However I would like to adapt it to generate M primes, not the primes 1 through N. My method of doing this is simply to create a large enough N ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Concurrency accessing a shared resource I am writing a Java application, that access to a configuration file stored as a shared resource in a Windows server. The app is thought to be used by around 500 employees, so it made me think about concurrency.
Related to the implementation, I access to the file through JCIFS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Segmentation fault Here is my code.
#include<stdio.h>
int main(int argc,char** argv)
{
FILE* fp;
fp=fopen(argv[1],"r");
struct element{
int value;
char activity;
};
typedef struct element element;
element a;
printf("%d",feof(fp));
}
Now if I don't give the last printf ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make a custom java object Parcelable in Android I am trying to send an object of type MyCustomObject to another activity via an intent. I know, to make the class Parcelable, I should do public class MyCustomObject implements Parcelable, but I am not sure how custom object arrays work in parcelable. Here's what I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: matplotlib strings as labels on x axis I am building a small tool for data analysis and I have come to the point, where I have to plot the prepared data. The code before this produces the following two lists with equal length.
t11 = ['00', '01', '02', '03', '04', '05', '10', '11', '12', '13', '14', '15', '20', '21',... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: How to insert circle on secon tab on tabfolder, how to access second tab how to draw a circle on second tab ? becouse i have, buttons on every tab, how i can sepperate them?
package shelllab;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.ecl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Most efficient jQuery selectors Which of the following selectors is most efficient in jQuery? Or is there any real difference?
*
*input[type=text]
*[type=text]
*input:text
*:text
Of course, an ID selector on the element would be best because the interpreter can use getElementById(), but I'm trying to understan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server Replication not replicating Foreign Keys I am replicating several tables to a database on the same server as the source database.
Those tables have several foreign keys between them. When I look at the replicated tables, they do not have the foreign keys on them.
So, here are my questions:
*
*Should r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java Annotation Processors: Usage & Applications I'm relatively new to Java EE development and although I understand what annotations are, and how to use them, I am having difficulty "seeing the forest through the trees" when it comes to understanding why anyone would need to write and process their own annotations.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Composing an average stream piecewise I have a list of n floating point streams each having a different size.
The streams can be be composed together using the following rules:
You can put a stream starting at any point in time (its zero before it started). You can use the same stream few times (it can overlap itsel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: UITableViewCell textLabel color not changing I've got a UITableView and as the cellForRowAtIndexPath method I am changing some attributes of the cell (font, size, etc.) Now all of the assignments listed below work just fine except changing the color of the textLabel. I can't figure out why only that specific color... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: java.lang.NoClassDefFoundError when reading hadoop SequenceFile I am trying to read a SequenceFile with custom Writeable in it.
Here's the code:
public static void main(String[] args) throws IOException {
//String iFile = null;
String uri = "/tmp/part-r-00000";
Configuration conf = new Configuration();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: lxml with schema 1.1 I'm trying to use lxml with the xs:assert validation tag. I've tried using the example from this IBM page:
http://www.ibm.com/developerworks/library/x-xml11pt2/
<xs:element name="dimension">
<xs:complexType>
<xs:attribute name="height" type="xs:int"/>
<xs:attribute name="width" type="x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Openquery SQL how to check if exists? I am using sql OPENQUERY to check if record exist passing parameter update it, if not insert a new record.
Here is what I have so far
DECLARE @sql VARCHAR (8000)
DECLARE @Id VARCHAR(20)
SET @Id= '31124'
SET @sql = '
SELECT * FROM OPENQUERY
(
SERVERNAME,
''
SELECT Nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prevent inbreeding and monoculture in genetic algorithm (newbie question) I am writing a genetic algorithm. My population quickly develops a monoculture. I am using a small population (32 individuals) with a small number of discrete genes (24 genes per individual) and a single point cross-over mating approach. Combi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Updating the DOM to recognize AJAX inserted inputs I'm pretty much an idiot when it comes to AJAX, so if this problem is really simple, please forgive me.
I have this little form:
<form id="location_ajax_request">
<label for="location">Enter Your Location:</label>
<input name="ajax_location" id="ajax_location" t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails Formtastic does not show error message for date field I have a Formtastic form like:
<%= semantic_form_for @event do |form| %>
<div class="field">
<%= form.label :starts_at %><br />
<%= form.datetime_select :starts_at, :discard_year => true, :minute_step => 30 %>
</div>
<% end %>
In my Event.rb,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get function in perl w/ website does not produce a value inside the perl script I'm trying to get index.pl?home=home to produce the value 'home' within my perl script, or home=anything to produce 'anything'.
For some reason I'm not using the GET method correctly.
#!/usr/local/bin/perl
use CGI qw(:standard);
$cgi = n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How are multiple ServicePointManager.ServerCertificateValidationCallback methods evaluated? How is the following code evaluated?
ServicePointManager.ServerCertificateValidationCallback += ValidateRemoteCertificateA;
ServicePointManager.ServerCertificateValidationCallback += ValidateRemoteCertificateB;
Given an Http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to set MaxDate and MinDate to DatePicker returned from webservice on ios I have a an XML response which returns the below data as response
Start Day of the Week-Wednesday
End Day of the Week-Sunday
Start time -16:00
End time -19:00
Now I know how to parse these values ,but I am getting confused on how can I se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The best way to implement multi-language PHP First of all, I know that there is a lot of answers about multi-language functionality, I didn't find the answer for what I want.
I thought about three ways that I can work with. I need to create the languages files using PHP each time I'm adding a new value to a web form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: WCF Message contract versioning I would like add a new MessageBodyMember to my MessageContract which refers to a new Datacontract.
Will there be an issue?.
What is the best way to handle message contract changes?.
How to know whether the addition of a new MessageBodyMember would be a breaking or non-breaking change... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use ViewModel Ok, after some research I was unable to understand the "viewmodel thing".
I didn't find any article that explains me what are the steps to work with ViewModels compared to simply passing the Entity as a Model to the View.
When using the pure Entity it is pretty straight-forward:
If creating a ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: VS2010 add a .dll reference error I am trying to add a DLL to my project but there are some problems.
first of all, VS dont compile when I add the dll in references. it shows the error :
The "NativeAssemblies=@(NativeReferenceFile);@(_DeploymentNativePrerequisite)" parameter for the "ResolveManifestFiles" task is in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP passing array to function I've seen a few people ask a similar question. But I do need a little more clarification on this particular subject.
I have several functions that pass several arguments. I even have a few that are about 10 arguments. (didn't initially plan it, simply grew over time)
I don't have any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Glassfish log in NetBeans: Domain Pinged Sometimes I get this message in the Glassfish log window of NetBeans:
Domain Pinged: stable.glassfish.org
Anybody has an idea of what it means?
A: The message is generated by the update Tool of GlassFish:
http://blogs.oracle.com/alexismp/entry/let_glassfish_update_itself_v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ShellExecute async (launch program from within C++ and exit immediately) I want to launch MYAPPLICATION from within a C++ program and immediately exit the C++ program (so I do NOT want to wait until MYAPPLICATION has finished or get a reference to the program): just start the MYAPPLICATION and exit.
I tried ShellExe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: 2d array from boost::multi_array - unable to compile I am trying to create a 2d array class based on boost::multi_array. I face two issues in the code given below. (1) The code for the member function col() does not compile saying that ::type’ has not been declared. Where am I going wrong? (2) Is it possible to defi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you create attribute handlers for methods of an object in Perl/Moose I think I've got attribute handlers down for perl Natives!
package tree;
has '_branches' => (
traits => ['Hash'],
is => 'rw',
isa => 'HashRef[Any]',
handle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Flip animation only halfway through I was wondering if it would be possible to make an animation that looks like the flip transition, but only animate it halfway through, so that the animation stops at the moment when you you can't really see it.
Any help is greatly appreciated.
A: You want to animate the layer's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you configure a different page size for production and test for Kaminari I'm running some rspec unit tests involving getting data back through kaminari paging, but the default page size for our application is 20, whereas 2 would work fine for test.
How do a set a different configuration for the default kamina... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: performance of nspropertylistserialization vs nsjsonserialization I'm considering making a switch from serializing data from my web service endpoint as JSON to a binary property list. I'm unserializing on Cocoa. Has anyone who has used both NSPropertyListSerialization and NSJSONSerialization noticed a difference in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 'Group' is a reserved keyword and cannot be used as an alias, unless it is escaped I'm using Entity Framework 4.1 with repository pattern (Database is already existing).
My problem is the existence of a table called GROUP (which is reserved). This is a production database which i cannot change.
So, using all this t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Open link from PDF into IE I am having a tough time with PDF files opened in IE. What I need to do is link to a Word document (.doc) file from a PDF document in IE without IE navigating away from the PDF once the link has been clicked. I am finding that the default behavior of IE is to close the PDF file when you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C2DM authorization key CRLF and .Net WebRequest We are using C2DM and are writing the server app in C#.
We obtain the authorization key with a POST using the WebRequest component. This works and we get back an encoded authorization key. The problem comes when we add this key to the auth header of the request that i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: hide headers of asp.net ajax control I have a problem: I would like to hide all of the headers of Asp.net ajax control from this link: http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/tabs/tabs.aspx
Then I click next, then the tabContainer will select a next tab.
Is it possible?
thanks in advance.
A: So... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Zend PDF problem I made for myself this simple class for drawing text by lines into specific pages. This is how it looks:
class pdf {
public $path;
private $pdf;
private $page;
private $font;
private $visibleLineYValue = 600;
public function __construct() {
require_once './Zend/Pdf.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Faking/mocking an interface gives "no default constructor" error, how can that be? I'm trying to write a unit test of a repository implementation. The repository uses RavenDB as a database. For the unit tests, I would like to mock the RavenDB parts. In order to create the mocks (fakes) I'm using FakeItEasy. I figure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to Bind an Observable collection in Autocomplete Text box? I need to bind an Observable collection to my AutoComplete Text box in the WPF application. But When I run the application after binding in the designer, I got a display with my full BL class Reference in the dropdown. How to avoid this behaviour? Also I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling addon functionality from a unit test I've made a firefox addon using the the addon-sdk and I'm trying to write unit tests for it now.
How can I access the addon functionality from the test? From what i see, they are separated, and I cannot simply access the addon functions and variables of my addon.
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery $() function I am new to javascript and jquery so I am wondering what does
$('#someid a')
referring to?
and when does the function $.get get called? (since I feel the code after $.get is called before $.get
Thanks in advance.
A: $('#someid a')
Selects all a tags contained within an element with the id som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Resources not being 'selected' in Telerik Scheduler Edit Dialog I've implemented Telerik scheduler on timeline view. I am allowing a M:M relationship between my y-axis resource (advocates) and Meetings. Here is what my scheduler looks like:
When I double click one of the instances of the meeting, the advanced edi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FBGraph on facebook fan page with Ruby on Rails 3 I have many doubts with fbgraph ruby gem. I understand if my page is a independent application which can connect to Facebook.
Now I don´t understand how I should take the user information if my page is on Facebook fan page. I know what Facebook send me params['signed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to animate CSS resize? I have the following CSS:
<style type="text/css">
#list { overflow:auto; }
#list li { float:left; margin-right:10px; }
div { width:500px; height:500px; border:1px solid gray; position:relative; }
iframe { border:0 none; width:100%; height:100%; display:block; }
span.to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cleaner way to implement moving a div back and forth using jQuery? I am trying to setup a simple example where a user can click a button on a page and divs are moved from one side of a parent div to another. If the button is clicked again the divs should move back to their original position.
I have successfully s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: sql select duplicate records once Lets say I have 5 rows with the same data
|id|
--
|1 |
--
|1 |
--
|1 |
--
|1 |
if I echo those results out I'm gonna get 1111 but I only want to select duplicate records one, so instead I would get 1.
is this possible?
A: GROUP BY id; in your mysql statement
Although I am no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What MDAs are useful to track a heap corruption? I have a heap corruption in a .NET/C# program and cannot track it with WinDbg + PageHeap + Application Verifier. In the next step, I plan to use Managed Debugging Assistants (MDAs).
Currently I try using these MDAs:
<gcManagedToUnmanaged />
<gcUnmanagedToManaged />
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is my seam app only deploying partially? I have a seam app that my colleague created. It is maven-based. I'm trying to get make it work in eclipse which is baffling in itself, but I managed to get rid of all the eclipse "Problems" (as displayed in the problem view) and the app builds successfully, both from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asynchronously delay JS until a condition is met I have a class, ChatRoom, that can only render after it receives a long-running HTTP request (it could take 1 second or 30 seconds). So I need to delay rendering until ChatRoom.json is not null.
In the code below, I'm using Closure Library's goog.async.ConditionalDela... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Simple PHP application to create URL's like /twitter_username I am making a simple php application which uses twitter to login as shown in the example here at http://www.1stwebdesigner.com/tutorials/twitter-app-oauth-php/
However, instead of going to a page where the user posts a tweet, I want to redirect the user t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7559387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.