text stringlengths 8 267k | meta dict |
|---|---|
Q: Web Page gets cut off I know a lot of people ask questions on this, but I have a spacing problem with my divs.
My main div tag of my web page is 1024px. The problem is that on smaller screens part of my
page gets cut off and you have to scroll horizontally. How do I fix that so that the page will
fit in any window?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to handle generics inside a Java "annotation processor"? I asked before for an example "annotation processor" that would generate a Proxy/Delegate for an interface, but got no answer, and did not find anything on the Internet, so I made my own.
So far it worked well, until I tried to use generics inside a super-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Trouble using XmlSerializer on a class: Object type not primitive I'm getting this error when trying to serialize a class: "There was an error generating the XML document. The type of the argument object is not primitive."
public class TaskData
{
[XmlAttribute("Date")]
public DateTime Date;
public stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Comparison of items in two ArrayLists and return differences I'm currently writing a simple app to compare two lists and return differences if any are found.
Note - [int] imaginary index for the purpose of this explanation
//---------------Prep----------------------------
ArrayList list1 = new ArrayList(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In Scala, would the following pattern match prevent excessive garbage collection? I'm doing some heavy database processing and am getting the error message
GC overhead limit exceeded
Caused by
ResultSet getString
In my code I have checks such as the following
val myVal = result.getString("COLUMN")
if (myVal == .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Link ISR to vector interrupt 80x86 32bit AT&T assembly I work on Intel-Atom 32bits (Assembly AT&T).
I want to link my ISR to a vector interrupt 0x33:
push %ebp //save the context to swith back
movl %esp,%ebp
movl $OSTickISR, %eax //address of int 0x33 = address of OSTickISR
movl $0x33*4, %ebx
movl %eax, (%ebx)
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to avoid saving details in database when a new user tries to create account with existing username? I have a jsp page in my project where user fills up the details for creating an account.
when a user enters username and clicks on the check button, the button looks in the database if the same name exists or not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: File Association - How to insert file name as a command line argument I know how to associate certain file extensions in a deployment project but when one of those files is opened I want to pass the file name to my application to proceed with the correct action.
I can specify what to send as a command line argument ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't define new page mode correctly in Conkeror I can't seem to get even a basic new page mode working in Conkeror.
In my .conkerorrc I have this:
define_page_mode("bz_mode", "BZ");
auto_mode_list.push([/bugzilla/, bz_mode]);
The documentation suggests (at least to me) that this should be sufficient. But when I v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wordpress Max File Upload Problem I have created a wordpress custom post type. I am using custom field template to create fields. I have created a file field to upload images. When I upload files then It work like a charm but only 20 files get uploaded and other files get ignored. I know Its a php configuration and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: microsoft sql server datediff for multiple dates I need to find the length of time between 2 dates (datetime types) based on the unique ID. For example, I have the following data:
ID CallID Starttime
1 56 2011-01... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is wrong with this XPath? Given that the path /XML/Staff/Content/ContentXML/StaffProfile/Role is correct, and that I have 5 /XML/Staff with only one Staff member with the Role of "Partner"
Why does this match all 5 staff members?
<xsl:apply-templates select="/XML/Staff[Content/ContentXML/StaffProfile/Role='Part... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is SQLite right for my game? I have been looking into different database libraries for my online card game (PostgreSQL, Oracle, etc) and, while SOCI + pg or Oracle are much more powerful, they also are tricky to compile, integrate, and do a whole lot more than what I need to do.
Quite simply these are my requirement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WordPress: Inner-Page Linking, Pages based on Categories I'm trying to decide which method would be best for an internal linking structure that utilizes 4 main categories, and then pages within those categories using WordPress.
At first I thought I could just use Posts as a method of determining whether or not conte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android theme declaration I have a problem. I created new app and publish it to market, but most part of users get ANR with
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Issues with JButtons and ActionListeners So I have a paint program with multiple JButtons, the only way i know how to relate that button with the action of that button being click is to do something like if (e.ActionCommand().equals("Label of the button here"); and if the label matches I know I have the correct acti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone Enterprise App Distribution - Internet Connection Required? I am trying to distribute my Enterprise Application using the method described in the Apple documentation listed here: http://developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Transposing music using javascript or jquery I have a chord chart application that I wrote and I would like to allow users to transpose the key of the chart using an onClick handler.
My chart looks like this
{C}My name is Blanket, {F}And I can run fast
The chords inside the brackets appear above the letter it prece... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery read XML and save for data for access in another plugin I have 2 large XML files:
*
*Car data (id, name, image, etc).
*Deals (car_id, miles, speed, etc)
At the moment I firstly read the Car XML using jQuery AJAX and generate the relevant HTML.
The problem is that next I need to read in the Tariff XML w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unknown function CoUninitializeE shows up during profiling While using SlimTune to profile a C# application, I find that when profiling native functions is enabled there are lots of entries for a function called "CoUninitializeE." CoUninitialize seems to be related to COM objects, however I'm not directly using any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is casting arrays (vectors) so slow? I was under the impression that in .NET casting (not converting) is very cheap and fast. However, this does not seem to be the case for array. I'm trying to do a very simple cast here, take a T1[] and cast as T2[]. where T1:T2.
There are 3 ways to do this and I'm calling them... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Core Foundation objects and retain/release messages Let's say we have some Core Foundation objects, such as CGColorRef, that are added to an NSArray like this:
CGColorRef color = ...;
NSArray *array = [NSArray arrayWithObject:(id)color];
Since arrays retain their contents, color receives a retain message (not CFRet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When is __proto__ useful? When is __proto__ useful?
A lot of browsers support it, but because not all do, programmers seem to be scared of using it. I've never seen it in any code (such as the libraries jQuery and backbone.js).
When is __proto__ useful? Is it just a geeky thing for completeness?
A: __proto__ is dep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: GRAILS: groovy.lang.MissingPropertyException: No such property. I'm trying to debug a Grails application. Unfortunately, I have no prior experience in said language.
When I do grails generate-all org.example.Book, I get back a vague error:
Generating controller for domain class org.example.Book ...
groovy.lang.Missi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does an instance of Random in a serialized class repeatedly produce the same set of numbers? So I'm a c# noob. I have a quick question that I can't find an answer to anywhere else.
[Serializable()]
public class Dictionary
{
private Random m_RandomGenerator = new Random();
public int GetNext()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: WPF datagrid - value of the edited cell I am working on WPF datagrid control. Binding the data from code behind using a dataset/XML. I want to edit the cell of the grid and capture the new value which the user has entered. Is there a code sample to show how to do that?
What event should I use and which property of d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: cannot access Rails server I've installed a fresh version of ruby and RoR on a Win XP. I run WEBRick server and everything seems Ok but I can not access http://0.0.0.0:3000 from the browser. I've tried to change the port to 80 but still have the same problem, even ping gives a "cannot find host" error. Any clue guys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: multiple inheritance in objective-c with superclasses already made Say I want to create my view controller class with 2 superclasses; UIViewController and UIView.
is this possible? or is there another way of getting round this?
A: Multiple inheritance is not supported by Objective-C (hopefully, because multiple in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android/Phonegap navigator.contacts.list(...) finds a contact that doesn't exist Where does Phonegap/Android search for contacts more than in the contacts list?
I just played around with Phonegap on my Android phone (Samsung galaxy s2 if that makes a difference) and when calling navigator.contacts.list I got a conta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: editing packages.config by hand i'm a .net/c# noob (long time java/servlet programmer)
i inherited an mvc 3 project and have been working on it for about 2 months. just opened packages.config for the first time and see jquery stuff in it:
<package id="jQuery" version="1.5.1" />
<package id="jQuery.vsdoc" version="1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Facebook Connect Login Button breaks when presented in iFrame I have a Facebook Login button setup on a test page which allows FB users to connect w/ my application:
<fb:login-button show-faces="true" width="200" max-rows="1" perms="user_photos"></fb:login-button>
It works fine if I go to to it directly in a web br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to return a website and automatically redirect to another side which takes long to load I ask the user to input some data, after that I redirect him to a 'result' website which takes several seconds to load.
I don't like this, because there is no user feedback telling him, that the server has not crashed and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server OUTER JOIN multiple linked fields I am trying to query data from two tables into one tables using OUTER JOIN. The thing is that to uniquely identify the rows, three fields are needed. This brings me to query containing this expression:
FROM Data1 DB
RIGHT OUTER JOIN Data2 FT on (DB.field1 = FT.Value1
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sql server : count records I have a tableA (ID int, Match varchar, tot int)
ID Match Tot
1 123
2 123
3 12
4 12
5 4
6 12
7 8
Now, I want to calculate Tot which is total number of match exists in the table. for example 123 occured twice, 12 exist thrice and so on. Also note that I want the count only at firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upload large CSV file approx 10,000,000 records in mysql table also it contain duplicate rows I want to upload a large csv file approx 10,000,000 records in mysql table which also contain same or more no. of records and also some duplicate records.
I tried Local data infile but it is also taking more time.
How can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Setting Background from Image on Android So I have a program, this I want this program to change the background on the linear layout to a new image in the person's gallery every n minutes. Currently I am getting the path using the following...
public String getCurrentImageLocation(){
ContentResolver contentResol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xilinx Error: Place 1018 message I am using a Basys2 board to program a simple string detector to read patterns like "0101". I am using the Xilinix Design Suite 13.2 for this project. The .ucf file gives the following message.
ERROR:Place:1018 - A clock IOB / clock component pair have been found that are not
placed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaScript code works on chrome, doesn't work on IE and firefox I created this script for educational reasons in pure JS. It adds sorting to tables (when a header is clicked). I decided that it's quite useful and tried to use it in my project. It works fine on Google Chrome (I used this browser when I was creating t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Select Query With Count And Where Statement I always seem to trip myself up during these types of SQL Statements. Here is what I'm attempting to accomplish.
My Example Table
Name Date Type
Bob 9/28/11 1
Bob 9/27/11 1
Bob 9/28/11 2
Debra 9/28/11 1
I'm trying to write a SQL Statement that wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lightswitch prerequisites on ASP.NET webserver I am trying to deploy a LightSwitch application to a hosted ASP.NET webserver in my company. The application access data stored on a SQL Server. My webserver admin is asking me if there are any special prerequisites needed for it to run. I've been reviewing the deployme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CGPathRef and PDF It there a way to draw a complex shape with an application like CorelDraw or Adobe Flash, etc, save it or export it as a PDF and then open it with Core Graphics in iOS.
The idea is, to draw a shape, a vector, with CorelDraw - for example, and it is just the path. No color or fill. And then be able ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Preventing Checkin to trigger multiple Build with TFS 2010 I have some Libraries added in my TFS 2010 project in a Lib folder.
Each time I check In a dll in the Lib folder, all the build that reference that Lib folder trig automatically (more than 20 Build).
I can use the ***NO_CI*** to prevent that. But I prefer t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: matlab indexing into nameless matrix
Possible Duplicate:
How can I index a MATLAB array returned by a function without first assigning it to a local variable?
I'm having to build matrices using one of the built in matlab commands and then get a submatrix. For example:
I = eye(10)
I = I(:,2:4)
in order to get col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does Google Chrome still support __proto__? __proto__ is deprecated. Why do big browsers like Google Chrome still use it? Are there any plans to dump it?
A: One of the hardest thing to do in a language / framework is actually remove a deprecated feature. There is still loads of code in the world which depends ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create per user view or container I would like to create a secure container for each of my authenticated users in order to enforce the security( isolation, a user can't see anything outside its container), speed ( the size of its own database is smaller ). These containers will store all the user documents, profile,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: PHP and Java for UDP NAT hole punching...? I want to use NAT hole-punching in one of my java applications, but I don't know where to start. I'd like some sample code to start off with....
(I have access to a PHP server with sockets, cURL, and server sockets, so some PHP server code would be appreciated too...)
Thank... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to access panel from script In my browser.xul file I have a panel element:
<panel id="panel1">
<!-- Elements -->
</panel>
When I try:
window.document.getElementById("panel1").openPopup(button, "after_start", 0, 0, false, false);
the browser says that:
window.document.getElementById("panel1") is null.
Am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: String and Integer inside a multi-level array I'm trying to do a little more than required for an assignment in class. Ultimately I'm going to have the following random for stats. I'm having trouble figuring out how to do math to the number part of my array. Right now, I'm using a String to store the array and the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement my own locking mechanism For an assignment (it's for concurrency if you wonder) - I have to implement my own lock
(more specific: a TaS, a TTas and an Array-Lock, as described in "The Art of Multiprocessor Programming")
There are some test in- and output schemes online that I tried (too bad they ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: EF 4.1 Code First MVC3 App and Facebook Share Feature I am working on a simple web application made using Entity Framework 4.1 Code First approach and MVC3.
The web application is a simple Quotes website, and on its homepage, the user get a list of quotes. What I would like to do is have a Facebook Share button, lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL Pagination - Should sorting be cached? I can't find any information on this, so either MySQL handles this and is therefore a non-issue or I'm using the wrong keywords:
If someone wants to sort MySQL results, should I have a cached version of the sort somewhere or should i make my queries with an ORDER BY claus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generic $_GET validator I want a dead simple generic $_GET-vars validator, and don't have any desire to reinvent the wheel.
Is there any solid and simple script I can use, something like:
function secure($varName,$format = 'int') {
//format: boolean,int,dec,str,date
//add stripslashes if mq
$var = $_GET[$var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: $.each and problem with it in jQuery I want append some from array by jQuery.each and data hotel_id, number each hotel_id is 4, and this loop $.each(data[0].hotel_id,... }); run 4 times contents inside self, in case that there are or inserted in database rows residence_u and residence_p 3 times (each of they there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing string to popup I'm working with a JSP page and it's displaying a table of a storage objects that was fetched. I want to have a popup to another JSP page when the user clicks on the number that is showing the size of the storage object.
How do I pass the name of the specified storage item to the popup JSP w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to show Password in clear text in password input field when label is being used as value? I'm using the code below and also seen in this fiddle http://jsfiddle.net/peter/Xt5qu/ to use labels as input values. What change can I make so that on password fields the label is in clear text but as they type it's hidden... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: show element based on class I have html like this
<h2 class="Comprehensive Leadership">Comprehensive Leadership</h2><a href="/topic/comprehensiveleadership">View all Comprehensive Leadership Programs </a>
<br><a href="/programs/pld/Pages/default.aspx" class="Comprehensive Leadership">Program for Leadership Develop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to finish "Activity A" since "Activity B"? (Finish an Activity since other) I'm trying to finish the Activity A since Activity B when it will finish too. The Activity B was launches since Actvity A.
So I've paused the Activity A. How can I do it?
A: You may try using startActivityForResult() on the Activity A t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex for removing repeating numbers on different lines It's perhaps quite simple, but I can't figure it out:
I have a random number (can be 1,2,3 or 4 digits)
It's repeating on a second line:
2131
2131
How can I remove the first number?
EDIT: Sorry I didn't explained it better. These lines are in a plain text file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Two simultaneous Python loops with one result I currently have a Python 2.6 piece of code that runs two loops simultaneously. The code uses the gps (gpsd) module and the scapy module. Basically the first function (gpsInfo) contains a continual while loop grabbing GPS data from a GPS device and writing the location t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to mix OpenCV 1.0 and OpenCV 2.0 I want to do a polar transform. But in OpenCV 2.0 there doesn't appear to be a C++ version of the cvLogPolar function. How do I use it with cv::Mat?
Error:
'cvLogPolar' : cannot convert parameter 1 from 'cv::Mat' to 'const CvArr *'
Here is my code:
VideoCapture cap(1);
try {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I not show the paste bar / Clear the clipboard? I'm writing a Silverlight+XNA game and when the user has something in their clipboard they can see less of the screen. I'd really like to be able to not show this clipbaord but I can't see any way (though it does seem to go away after some amount of time)
I've t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .bind() statement not working in jQuery Easy Confirmation plugin Did anyone who used jQuery Easy Confirmation plugin run into this issue - the button upon which the confirm box is bound loses its original click event after the first click? I had to change the plugin code to this to make it work. The difference here ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Game Center LEaderboard Questions I am in the process of adding Game Center to one of my apps. What I would like to do is set up a leader board per "continent" (North America, South America, Asia, Europe, etc.).
Question 1: If I do this, does game center have the ability to show all results for all leader boards... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I loop through array of values posted I'm posting an array of ids and want to loop over those values. I'm trying the following to populate an array with key/value pairs but it looks like the array is coming out empty.
$arr = array();
foreach($_POST['ids'] as $id)
{
$arr[$id] = GetStuff($id);
}
UPDATE: Lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are drop targets in gedit's snippets? There is a plugin for gedit to handle snippets. In the Snippets Manager under "Activation" for every snippet you can set the drop targets. There are some preformatted alternatives to choose between but you seem to able to compose your own alternatives too. The preformatted ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the IP format returned by ServletRequest.getRemoteAddr() The Javadoc of ServletRequest.getRemoteAddr() does not mention anything about the format of returned IP addresses. This is annoying when implementing filters. What can we count on? Is there any official specification one can rely on? Thanks.
A: Let's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Loading a UIImage in a UIImageView that is part of a UIViewController So I have things nested like this in a nib:
UIViewController
|
|-UIView (container for some about text UILabel)
| |
| UILabel
|
UIScrollView (makes image scalable)
|
UIImageView
I'm trying to load the image of the UIImageView progra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to remove ' ' using JQuery..? I have two buttons in a row and they are shown in two td's, and its not lined up correctly in IE, I doubt that hidden spaces( ) in the td's somewhere mayby after the input or before the input button, unfortunately I cant access the html code, its automatically ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How do I connect to an Oracle database using Objective-C (iPhone application)? I am new to Objective-C and xCode and have tried to find example code on how to connect my iPhone application to an Oracle database (remote server). Does anybody have advice, or better yet, an example? Thanks in advance!
A: You would n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: memcache 1.2.2 versus 1.4.7 log messages The following log output on memcached 1.2.2:
<8 new client connection
<8 set mynamespace:views/show 0 47 20499
>8 STORED
can be interpreted as, expires_in = 47 seconds and size = 20499.
How do we interpret the following memcached 1.4.7 log output for expires_in and size?
<40... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CellDingbat is below the first line of the Cell According to the Documentation, "Dingbats are placed to the left of the main contents of a cell, aligned with the first line of the contents." But when I evaluate
CellPrint@Cell[BoxData["Text"], CellDingbat -> "CellDingbat"]
in a Notebook with the "Default" styleshee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: alphabetical pagination in rails I'm searching a gem for Rails for alphabetical pagination. I wish I could have a list of first letters found in the result (I mean, if there is no row beginning with 'a', I don't want the 'a' to be display on the pagination links). Is this kind of gem already exists?
Thanks in advanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: java.util.Iterator to Scala list? I have the following code:
private lazy val keys: List[String] = obj.getKeys().asScala.toList
obj.getKeys returns a java.util.Iterator<java.lang.String>
Calling asScala, via JavaConverers (which is imported) according to the docs..
java.util.Iterator <==> scala.collection.Iterator... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Can I use glu with Android NDK I can't seem to include glu.h in my Android NDK project.
I'm trying to port existing C++ code to NDK, and it uses glu in a few places (notably gluErrorString).
Does OpenGLES not have glu?
Is there a port I can use?
If not I can probably remove the calls to things like gluPerspective an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Restarting a Sencha Touch App I'm currently working with a Sencha Touch localized app, and all of the string values such as titles, labels and forms are generated on launch, meaning that if I want to switch the language I need to reload the whole app.
Is there a way I can restart/reload the whole application or view... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Importance of tools like Ant Maven I am a novice programmer in Java.
I would like to know how important is it working on tools like maven/ant as compared to gaining a lot of hands on expereince in Java.
A: I would stick to first learning java. Tools like Ant and Maven are mostly used for packaging a project and lib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do solr implement filter search Can anyone point me to the piece of solr source code which performs filter query (excecuting the fq=).
A: Solr's main façade to Lucene is SolrIndexSearcher. In particular the getDocListC function seems to do the actual passing to Lucene.
Filter queries and other parameters are p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing a method call to a constructor,java Assignment:
Time class:
give it 3 private data members for hour, minute, and second. Use type long or int.
If you use int you must cast inside the ctors.
add a no-arg ctor that uses code like that in Listing 2.6 on p38 to assign values
to hour, minute, and second from the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iOS view "redirect" I'm a web developer tasked with building a basic iOS app for internal use. A number of functions in the app require authentication, and I've successfully built the login view/controller which calls a webservice, authenticates the user etc etc.
I can currently load the "LoginView" with a button c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: sql - check to see if an entry exists, if so update,is if not insert I was wondering if there was a way that I can do the folloing in one sql statement.
I am parsing an csv file for product insertion into the database. is there a way that I can check to see if an entry in a table with X equaling to N, if so update t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to store elements of array permanently in VBA in Excel? I wrote macro in Excel that uses dynamic array. Users will add elements to that array.
Is it possible to store elements permanently, so the elements will be available even after workbook was closed?
The trick is that I do not want to store elemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Component Level Properties In Application.cfc If I have component level properties in my application.cfc will they get evaluated every time a page is it or will they only get evaluated when the application is created?
<cfcomponent>
<cfscript>
this.name = "WARM2_Demo";
this.applicationTimeout = Cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: getting min and max values so i have an array of custom objects. i want to go through them to find the maxx, maxy, minx, and miny values. i need the largest of the maxes and smallest of the mins. the following code makes complete sense to me, but i tend to get a random value from the list, my maxes do not get the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get ListView item text from other window I want to make a little application that changes the default playback device in windows 7. The only solution was to interact with the Sound Applet. I succeeded to get the handle to the SysListView32 window that has the devices name but i cant get the text from the ListView.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using ViewScript Decorator on Nested Subforms (Zend Form) I want to use a view script to render my zend form as it seems to be the best way to
control the layout/design of the form while still using the Zend_Elements classes.
From the view script, I render the element with $this->element->getElement('elementName') ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Google Charts - Trying to add links or any form of custom html in popup Is there any way to have links in any part or a google chart?
Or embeded html?
I would idealy like to format the pop-up with my own html.
some(3) and other(4) should be links.
This is the closest I could get to what I would need Dynamic icons.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Unzip process works on one zip while it doesnt on another? I've been trying to understand why my code doesnt work on a zip and it doesnt on another..
THIS zip unzips , and THIS zip doesnt
Here is the code I use:
String zipFile = Path + FileName;
FileInputStream fin = new FileInputStream(zipFile);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: should I reuse gwt instances (registry objects, loaders) or obtain fresh copy every time? I'm newbie in gwt so sorry for this simple question.
I can call Registry.get("id") every time or I can cache returned value in field, what is better (how fast/slow Registry.get("id") is?)
Similar question for RpcProxy instance ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sharing ASP.NET cookies across sub-domains I have two sites, both on the same domain, but with different sub-domains.
*
*site1.mydomain.example
*site2.mydomain.example
Once I'm authenticated on each, I look at the cookies included in subsequent request and they are identical for each site.
However, if I log into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Splitting elements of a string across multiple columns I would like to split a column containing a string with article references into multiple columns in MySQL. For example, the following string
North American Birds 53(1) 1999: 27-29
would be split into 'North American Birds', 53, 1, 1999, 27-19. I know I can do s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: extjs4 - How to call an application function from a controller? Given an application:
Ext.application({
name: 'APP',
appFolder: 'app',
funcA: function() {
console.log('called funcA');
},
launch: function() {
...
var funcB = function() {
console.log('called fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C Windows API: Polygon accept mouse input Say I create a polygon with the Polygon function, and i'd like it to accept input from the mouse (similar to a button).
How would I do that?
EDIT:
Processing the WM_LBUTTONDOWN and WM_MOUSEMOVE messages, I'm using this code to check if the mouse is in the area of the polygon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Getting certain parts of a string I have the following tire sizes in my database, all formatted in different ways. Here are a few examples:
225/50R17
255/45R18/XL
P155/80R13
What I need is to separate them in 3 parts, and JUST the numbers.
So the first one should be: 225 / 50 / 17 all separate variables.
Sec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why doesn't `cancelPreviousRequestsWithTarget` cancel an NSTimer? I schedule an NSTimer instance like this:
[NSTimer scheduledTimerWithTimeInterval:.2 target:self selector:@selector(someMethod) userInfo:nil repeats:YES];
I am able to call invalidate on my NSTimer to stop it from firing, but
[NSTimer cancelP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drawing grid with jQuery SVG produces 2px lines instead of 1px I know it's not the jQuery SVG library causing this issue, but when rendering horizontal or vertical SVG lines on integral x,y coordinates, lines are 2px wide instead of 1px. This is probably to do with anti-aliasing In order to get them fixed, and draw ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: fb:live-stream will not work unless "post to Facebook" is checked? We had a live-stream where we would chat with our users during a live event. 3 weeks ago it stopped working when we un-check "post to Facebook" we no longer can interact with out users meaning no one can see us in the chat. it seems we HAVE to check ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to turn on/off DATA programmatically without modifying APN (Gingerbread compatible)? I only found during my research solutions that either involve a modification of the APNs, or are not compatible with Android 2.3 because of its enhanced security.
Nevertheless, I am pretty sure there is a faster/cleaner way than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error connecting express node.js app to redis server when using requirepass in redis.conf I'm new to node and redis and am setting up a simple server with express to communicate with redis.
After starting redis-server, I start the node server app.js
app.js starts and runs when I use the redis.conf file without requi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Joining tables from multiple files I am trying to join data from multiple tables that I have in different tab separated files as an example:
I have the tables:
file1.txt
a 3
b 4
c 8
d 22
e 4
file2.txt
a 10.3 -2
b 4.7 -1
c 8.9 -2
e 22.1 -1
file3.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How get the width of an input element in IE? I dont work with a framework, i'm working with JavaScript by default.
I need to know the width of an input text element, in the good browsers i use:
width = document.defaultView.getComputedStyle(el, "").getPropertyValue('width');
But in the f**ing Internet Explorer use:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7589660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.