text stringlengths 8 267k | meta dict |
|---|---|
Q: Why is CGContextRef not an object? Wouldnt it make much more sense if CGContextRef was an actual object?
Now u need to give the context with it, everytime u want to add a path.
Wouldnt it be much nicer to say:
[context addPath:myPath];
instead of
CGContextAddPath(context,myPath);
Is it a struct or whats the deal her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Force two nodes to occupy the same rank in Graphviz? Using ruby-graphviz, I've created a graph that looks like this (border added to emphasize rendering boundaries):
What I really want is for A and K to line up together at the top (or left, if rankdir="LR"). So I added an invisible node (call it X), and added invis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Address of a static variable I am trying to do a simple class to unique ID conversion. I am thinking about adding a static method:
class A {
static int const *GetId() {
static int const id;
return &id;
}
};
Each class would then be identified by unique int const *. Is this guaranteed to work? Will the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Remove Non-English Characters from NSString (Obj-C) I have NSString like
Aavkar Complex, Opposite Gurukul, Drive-in Road, Ahmedabad,
àªà«àªàª°àª¾àª¤, India
so I want to consider only english characters and without
english characters are from above string so please give me any idea.
Thanks in advance.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Camel Servlet I have been trying to get a basic example of a servlet endpoint to work in camel. My example is based on this:http://camel.apache.org/servlet-tomcat-example.html
When I try to run this in Jetty though I get the following exception: 'java.lang.IllegalStateException: No resource at org.apache.camel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSP - Image Button becomes an image after clicking on it I'm creating a jsp page that requires an image button to send a value to my servlet and subsequently become a static image after being clicked on.
Is there an easy way to do this without using additional libraries? How do I receive and manipulate the respon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to format gridview content when doing binding? I am currently doing the data binding:
<asp:TemplateField HeaderText="Priority" SortExpression="priority">
<ItemTemplate>
<asp:Label Visible="true" runat="server" ID="priorityLabel" Text='<%# bind("numberTemplatePriority") %>'></asp:Label>
</ItemTem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Twitter api - trigger on new post? I have never worked with the twitter api, so I have no idea if this is possible. What I want to do is to trigger a url everytime something new happens on a users timeline (?). Is this possible, and if so, how do I do it?
A: Yes, but it takes a bit of work. You need to use the twi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to get SuperWebSocket server working under mono/c# I was using Nugget before (http://nugget.codeplex.com/), but when I upgraded to Chrome 14, it stopped working, and that's when I found this project: http://superwebsocket.codeplex.com/.
I've read this bit here: Is superwebsocket available in asp.net by defaul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Monotouch: How to get a localized string from sqlite DB I want to display a list of items from my sqlite DB in a tableView. These items need to be localized depending on the language selected on the phone.
As an example, if on of the items in the DB was "Hello", it should be displayed as "Hello" in english, "Hallo"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java 5.0 Compiler API? Is there a Java 5.0 equivalent to the Java 6.0 Compiler API? I'm trying to compile and jar some XmlBean schemas at runtime.
Thanks.
A: You can write the files to disk and call javac using System.exec()
Perhaps its time to updated to Java 6 or 7.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7525969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check values are unique in JTable? I have a JTable which has two columns and 10 rows. When I read second column values from the JTable, I have to check whether those are unique values.
How to check?
A: You could use a Set to determine if duplicates are being added.
TreeSet set = new TreeSet();
TableModel t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't get minimize from CLPFD to work Me and a friend are writing a program which is supposed to solve a CLP problem. We want to use minimize to optimize the solution but it won't work, because it keeps saying that the number we get from sum(P,#=,S) is between two numbers (for example 5..7). We haven't been able to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can we get unique transaction id from app store I want to access transaction id or something unique id when the app is first purchased and downloaded from app store.
So that I can identify that user with that unique id, and send that id to my server.
Is this possible to get that from app store?
A: Previously you wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hibernate @DiscriminatorValue not picked up I have the following hierarchy:
@Entity
@Table("changes")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.STRING)
class Change {
@Column(name="type", nullable=false, insertable=false, updatab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS layout problem: tabs should overlap the frame I'm working on a template like this:
The as you can see the frame (3) has a glassy border which goes behind the tabs (1,2). But I don't know how to do this layout in CSS. I searched stackoverflow and found the following threads, but they didn't help:
*
*https://s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write fraction value using html? I want to write fraction value such as the picture below:
How do I write fraction value using html without using image?
NOTE: I don't want this 1 1/2 pattern but strictly just as the pic above
A: Check out the following:
span.frac {
display: inline-block;
text-align:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: FB.init gives 'root undefined' or 'innerHTML' error I have written a Facebook website app that gives the possibility to push reactions that people give to news items to there Facebook wall. Everything works fine except in IE8.
When I visit the homepage with IE9 compatibility mode IE8 I get:
Unable to set value of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate distribution from Maven project I want to build an application distribution with Maven. I have a module in my project which holds the main source code. I decided to build the application distribution from this module. I'm telling maven in the module's POM to copy all the configuration files and dependant li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I create my own class of objects using SilverLight Can someone help me to resolve a question: How can I create my own class of objects (using SilverLight), which will consist of figures, such as a circle with 4 buttons: bottom, top, left and right inside the circle.
A: You just need to add a silverlight use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to obtain the total page count for a pdf in iTextSharp? I've created a class that extends PdfPageEventHelper to add a specific message at the end of the page. The problem is that this text need to be added only to the end of the PDF (if I have 3 pages this text need to be displayed only on the footer of the last... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: parameter count mismatch in parameterized query I am using quite a lot of parameterized queries in my code for performance reasons. In short, some of them work, some don't.
I initialize the query during construction of my database wrapper like this:
QString querystring = QString("SELECT somevalue FROM sometable "
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using open source database design as starting point for commercial application I'm designing an ecommerce solution, and have been researching various methodologies used by leading open source ecommerce solutions.
I realise that once I've set my features, and normailzed my database design, I may come up with somethin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Save state of dynamically added View The problem is that if I have an EditText in a layout.xml the View's state is saved e.g. on orientation change. When I add an EditText from code it doesn't happen.
TextView.setFreezesText() doesn't help.
A: So the answer is:
View.setSaveEnabled(boolean)
Its enabled by default, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring Webflow 2.3.0 Samples unstartable... No Idea how to fix I'm currently evaluating Spring (with a focus on WebFlow) for future projects. After reading lots of docs and articles (most of which didn't help much) I downloaded the current release of Spring WebFlow (2.3.0 at the time of writing) and tried to get the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make $('#some-id') return the same object as getElementById('some-id')
Possible Duplicate:
How to get a DOM Element from a JQuery Selector
I have a JavaScript library that takes one of parameters as
element: document.getElementById('file-uploader')
And it works well, though I try to use jQuery instead and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: gdata SetAuthenticationToken() - 403 forbidden I am just trying to get list of Albums in a web app using following c# code.
For AccessToken, I wen to OAuthPlaygound and generated an accessToken
with Picasa in scope using valid consumer key and password which relevant to my web application.
Issue :When I execute fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Slow performance on migrating from .Net 3.5 to .Net 4.0 My application was running pretty well on .Net Framework 3.5 SP1, have no issues with it. Recently we have converted the application to .Net Framework 4.0, we are encountered lot of performance problems and some functional inconsistency.
We are using in our pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.Net MVC 3 Configuration i want to ask about ASP.Net Configuration. i have a project that use ASP.Net MVC3. and i use membership in my project. in my database server, there's 2 database for my project.
*
*aspnetdb, contains aspnet_membership, aspnet_user, aspnet_roles, etc (i use asp.net Configuration)
*mydat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Disable screen window in sipp When we execute the sipp tool that time it is showing the different types of screen and statistics for calls.
Is it possible to disable the screens and statistics while executing the sipp tool? Because I used to get that screen and statistics in a text file after calls are executed. So ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: BlackBerry - MDS simulator init calls I debug my BlackBerry apps on device emulator, using the MDS simulator for access to the web.
Today I ran a Wireshark trace to catch my app's calls. I saw 2 calls made by the MDS simulator before my traffic started, and hope someone can explain them to me.
*
*http://www.black... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: UIView frame is set wrongly, view got {nan, nan} origin. This is part of my code.
NSLog(@"fr: %@", NSStringFromCGRect(frame_)); NSLog(@"org: %@",
NSStringFromCGPoint(frame_.origin)); // cell.frame = frame_; [cell
setFrame: frame_];
NSLog(@"c: %@", cell); NSLog(@"c frame: %@",
NSStringFromCGRect(cell.frame));
An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trigger to update another field in same table I want to run a trigger when I update a certain field on the database, so it updates another field (basically we have 2 different unique IDs for each record, so when one is changed, we need to update the other too - yay!)
CREATE OR REPLACE TRIGGER trigger_name ON table A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery image preload from cache There are a lot of pre-load script examples available on stack overflow but is there a way to check if the browser already has the image preloaded in it's cache and if it is then do not initiate/overtake the image pre-loading with the .load() function and just let the browser put in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Develop Android's application for all the versions i'm developing an android application and i don't know how to make it compatible with all the versions. In eclipse i select only one API level, and in androidManifest i tried to put minSdk and MaxSdk covering all the version, but it crashes on some OS with different... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to check if date of file > local file in PHP? I download a small image from a site with PHP locally to cache it, but I would like to be able to check later on if the file has been changed on the external site since it was downloaded. How?
A: You can check the last modification time on the files:
if (filemtime($... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: regex for a particular date format I want to have a regex for a date format, Example: 01-Jan-2011
I have written ^[0-9]{1,2}-[a-zA-Z]{3}-[0-9]{4} but does not check for all the valid dates like 50-AAA-2011 will also be considered as valid.
I am using Live Validation lib in javascript
My code
var sayDate = new LiveV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dojo: click on the tab I need to attach onClick event to tab, not to its content. For example, viewing the example, I want the event firing when I click "Drinks" tab.
The following code results in firing event when I click on tab's content, so it is not what I need:
<div
dojoType="dijit.layout.Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery UI Drop/Drag data from sql are not draggable/droppable I'm playing around with jQuery UI Drop/Drap using the Photo Manager example provided by jqueryui.com. What I'm trying to achieve is to it as a photo manager but with data auto generated from an sql database. I've managed to fill the draggable <div> with d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java XML Library that keeps attributes in order? Is there any java xml library that can create xml tags with attributes in a defined order?
I have to create large xml files with 5 to 20 attributes per tag and I want the attributes ordered for better readability. Attributes which are always created should be at the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: DOM Tree rendering consequence I wonder how is it important for DOM tree element to be on the right place?
<style> should be inside <head></head>
<div> should be inside <body>
<body> should be inside <html>
For example:
$(document).ready(function () {
$("body").css("display", "none").before("<p>Loading...</p>");... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which parameters should I declare as sql placeholders? Should I use a placeholder for every parameter even if it a parameter is always same? And how about nulls? Should I use placeholders for them also?
I'm interested in avoiding preparing and enable caching of the query. I'm using mysql, php and pdo but I think th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to sync many small files between two far away sites with limited slow network? Can I use git to accelerate this work? How to sync many small files between two far away sites with limited slow network, and site B have old copy of site A. Can I use git to accelerate this work?
Usually I like use winrar to add sit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: concating fields with null values ill start of by saying "Yes, i know my table does not conform with 1NF."
i am working with something old, and can not change it.
so please, no comments about that.
now, to the problem:
select title,address,zip,city, concat(telefon1,',',telefon2,',',telefon3) as phone
the problem wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Haven't ECMA5 (recent JavaScript) any built-in function for copying objects? I need something like Ext.apply in Node.js. The most obvious way is to define my own:
function simplestApply(dst, src1) {
for (var key in src) if (src.hasOwnProperty(key))
Object.defineProperty(dst, key, Object.getOwnPropertyDescripto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I use more than one set of constraints on a single domain class in Grails? I need to choose a set of validation rules at save time. Ideally I would like to be able to define more than one set of constraints in the domain class:
class Account {
...
static constraints = { ... }
static constraints2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to best pull off nested clickable elements? I have a situation that looks something like this
<div class="x" href="foo">
<div class="y" href="bar"></div>
<div class="z"></div>
<div class="y" href="baz"></div>
<a href="#">fooz</a>
</div>
x is a badge that should be clickable. The problem is that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: django model polymorphism with proxy inheritance My Discount model describes common fields for all types of discounts in the system. I have some proxy models which describe concrete algorithm for culculating total. Base Discount class has a member field named type, which is a string identifing its type and its relat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Capturing additional mouse buttons Is there a way to capture presses of additional mouse buttons if mouse has more that 2 of them? According to MSDN WM_XBUTTONDOWN is sent for 2 additional buttons only. I need a solution which will work for any mouse, so using features of special mouse drivers is prohibited. I've fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Push notification in c# web application project I have used json to get better performance for my data result of any search in textbox.
I want include Push notification feature ,to show instant update It may be from any browser or any other IP.
It takes notification from server and show instant update without reload... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails Admin vs Active Admin : Rails Admin generation tools
Possible Duplicate:
Rails Admin vs. ActiveAdmin
I'm aware that there is already another question about this, but it was not so useful to me. I'm looking for an Admin generation tool for Rails and, apart from personal taste, I ca'nt decide whether use Rail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: asp.net MVC3 custom route for Doddle Report I am using doodle report which outputs quick reports in pds, html and xls formats. It is working fine as shown in the documentation link below:
http://doddlereport.codeplex.com/wikipage?title=Web%20Reporting
Now i need to be able to pass an ID value to the controller so re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mootools className undefined I really don't understand why that piece of code won't work :
$$('.nav_contact').addEvent('click', function(){
if (this.getStyle('color') != '#ffc000') {
this.tween('color','#ffc000');
alert(this.className);
$$('.navigation').getElements('a').each(function(a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Route mappings are broken suddenly. How to fix? Route mappings for my MVC app are broken suddenly.
Here are route mappings
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send an email which exactly looks in the outlook express how i see in my web browser? In my web browser this shows correctly. But when i send it to Gmail or Outlook it does not show correctly nor it show in the center alignment layouts. (many other newsletter i receive they fit it exactly in the center).
HTML... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: FTP Request Header Format I want to know the difference in the ftp request header for an ipv4 server and ipv6 server.
can anyone give the header format for those ipv4 and ipv6?
thanks in advance,
Ramulu Ponnam
A: Do you mean HTTP? FTP just sends one-line commands, not full headers like HTTP.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7526112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Load Wordpress post content into DIV using AJAX I posted a question a couple of days ago on how to Scroll to Single Post in a custom Wordpress template that I'm developing. What I need in the nut shell is to load a single post into a defined DIV when a particular link is clicked and then scroll down to that DIV hold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Django jquery form submissions returning 500 I am trying to do a modelform submission is Django with jquery and I am getting a 500 server response and not sure how to proceed.
This is my js:
function addUpdate(e) {
e.preventDefault();
var form = jQuery(e.target);
jQuery.ajax({
url: form.attr('act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Callbacks over Callbacks I want to put markers on a map. The source is a json request, which returns cities.
I've got a function (sencha) that returns the records (asynchronous) and a function (google maps api) that returns the lng, lat for specific cities (asynchronous) and a method (google maps), that puts marke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Npgsql does not commit transaction after failed command I'm using Npgsql 2.0.11 under .NET 4.0 to modify a PostgreSQL 9.0 database. The program makes many modifications to the database, all within a single transaction.
Just before committing, I run SELECT statement, which sometimes fails (eg. with a timeout). I swal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: duplicate s in seam's pages.xml Using seam, in pages.xml I can catch the value of a query string parameter and put it in a backing bean like so:
<page view-id="/my/page.xhtml" >
<param name="myParam" value="#{myActionBackingBean.param}" />
<action execute="#{myActionBackingBean.doAction()}" />
</page>
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Optimising a lot of inserts with JDBC and MySQL I have to perform a large number of inserts (in this instance 27k) and I want to find an optimal to do this. Right now this is the code that I have. As you can see I'm using prepared statement and batches and I'm executing every 1000 ( I have also tried with a lesser n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Issue With android ListView I have added a listadapter which contains a checkbox, imageview, two textviews and a button to a listview. The problem is when I click on single checkbox for selecting more than one is getting selected. Below is my code for the Adapter. Please tell me any thing wrong in the code.
package ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sprint Samsung Galaxy s2 - Activity has leaked IntentReceiver - Are you missing a call to unregisterReceiver() I have not seen this error on the Droid Bionic, Droid 3, Motorola Photon 4g, HTC Evo 3d, and the Thunderbolt.
This sample application will throw a "leaked IntentReceiver" error by following these steps:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I check for an int in a variadic list? I've got a method that can take a variable number of arguments.
I'm using variadic commands to get the arguments and store them in an NSMutableDictionary.
The problem is, if I send an int to the method, I get a crash, because NSMutableDictionaries can't store an int.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What method is called when UIScrollView has reached its maximumZoomScale? Theres a wide UIScrollView (let's call it wideScroll) and inside it, smaller UIScrollViews (call them singleScrollViews). And there is a UIView in each SingleScrollView, which contains two different UIImageViews.
I need to use the scrolling de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wix: Assigning a property a value from a dialogue control Could someone please show me a simple example of assigning a value to a property that was supplied by a user from a dialogue edit control.
A: <Control Id="ServiceName" Type="Edit" X="20" Y="73" Width="200" Height="18" Property="SERVICENAME"></Control>
You c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Easy rule to read complicated const declarations? For reading complex pointer declarations there is the right-left rule.
But this rule does not mention how to read const modifiers.
For example in a simple pointer declaration, const can be applied in several ways:
char *buffer; // non-const pointer to non-const memor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How can i use sql database query?
Hello. I am new to android. In my application there is three tables category , product and quality in spinner. when i select perticular category , product related to that category would be display in product category. How can i do this? Please help me.
A: Manisha, I am assuming th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSON, HighCharts/HighStock, DBSlayer - Data display I have a MySQL database with some price data in it I would like to display using HighCharts/HighStock yet I'm not sure how I can actually go about getting this data from MySQL (via DBslayer as the JSON layer) and display in high charts (the example I found on their... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue communicating via RS232 - VB.net dll / Delphi win32 exe I have a Delphi program that communicates with a vb.net dll that I created. The vb.net dll communicates with a Fluke scope meter via an RS232 connection. I have created a program that communicates correctly via RS232, giving me the anticipated value. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extremely slow rendering of Reportviewer in ASP.Net MVC I have been looking for a solution for doing reporting in ASP.Net MVC, and I did come across a solution by Rai Kaimal Rendering an RDLC directly to the Response stream in ASP.NET MVC. Everything works just fine, but the localReport.Render() function takes extr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: iPhone:UIWebview Gradient background starts-over when scrolling down the content When I apply the gradient background to uiwebview custom html content it only applies to visible area , when scroll down the content the gradient starts again from top color value again, any ideas?
[customHtml appendString:[NSString str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL query syntax error I got a syntax error on this query, but I don't know what I'm doing wrong.
UPDATE `jos_planning2_rosters` r
LEFT JOIN jos_planning2_rosters_setup s ON r.id = s.roster_id
LEFT JOIN jos_planning2_workplaces w ON s.workplace_id = w.id
WHERE r.roster_state =1
AND s.card_id IS NULL
AND s.type_id =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: SmsManager keeps retrying to send SMS on HTC Desire In my app I need to send SMS, so I use the following code
final String SMS_REQUEST_OK = "SMS_REQUEST_OK";
String m_sms_message = String.format("sample text");
String m_dest_number = "some number";
Intent SMSInfo = new Intent(SMS_REQUEST_OK);
SMSInfo.putExtra("msg"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reconciling outputs of jconsole and top I am trying to look at memory management in Java. I have a program that creates a large collection (~500MB). I run java without any special arguments. Once this collection goes out of scope, I invoke the garbage collector using System.gc(). From jconsole, I can see that the he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Git ssl error on windows I keep getting the following error when attempting to clone a git repository using ssl on windows:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
The ssl certificate hierarchy is trusted (the issuer certificate is added to Trusted Root Certificate Authorit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How could I display a crosshair cursor with x-y coordinates when hovering over an image? I have an image inside a div on which users can click.
Is there a way to display the coordinates of the cursor when hovering over that image in realtime? I know that to display a crosshair cursor, the cursor type has to be set: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When to remove TFS 2010 automatically created Workspaces Since almost one year we are running CI builds on our build machine. And the TFS creates a new workspace (ws) for each build, meanwhile we have many ws'.
So my questions (I didn't find a hint in the docs, though):
*
*Should we remove these "stale" ws' manua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Empty Popup window for datagridcell I'm using a Popup (System.Windows.FrameworkElement.Popup) to display a note to the user if e.g.
he exceeds the maximum string length in a text box.
I'm using the PlacementTarget property to assign a frameworkElement to make sure that the Popup is displayed near the corresponding ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: keeping focus on iframe at all times with jquery I've got an HTML page with an header, a footer, a simple menu and a large iframe (yeah, i know it's sad..)
I need to keep the focus on the iframe at all times (there are keypress events on it), even when clicking on the external parts of the page...
The catch is that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: refer to html-button in ExtJS file In a jsp file, a form is created wherein a button is specified.
I am using ExtJS 4.
I need to get reference of the html-button in ExtJS file.
On click of this html-button, display the Ext components(grid panel) on the page.
I tried using Ext.DomQuery but no luck. Please provide po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does System.Threading.Timer rely on system time being correct? I have a service which runs a job every 30 minutes based on a System.Threading.Timer. The timer is setup with an interval as usual and fires the job off asynchronously.
Last night the time on the server it resides on decided to reset itself to something ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: how to set an OnTouchListener for a PopupWindow? Here's my code that shows a PopUp when the button is touched and dismisses it, when the user releases his finger.
But I need to know weather the user had just released his finger or did he slide into the popup and release his finger from there.
In my code this doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MySQL syntax error in selecting multiple columns with the WHERE delimiter? I have a rather simple query to work with my ajax app, but it gives the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc, price FROM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby Mysql - Failed to allocate memory error I have a large MySQL table of about 4 million rows, which I want to process with a ruby script. At the moment, when I run the script I get a "failed to allocate memory (NoMemoryError)". The query runs but the error pops up once I try to loop through the resultset. Can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add Pushpin Onclick Event? I am using the below code to disaply multiple pushpins from an XML file. I would like to know how I setup an tap event for each pushpin that will pass a value
foreach (var root in Transitresults)
{
var accentBrush = (Brush)Application.Current.Resources["PhoneAccentB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending mail with PHP Imap I could retrieve mails from Gmail server on localhost using PHP Imap, but I could not send one. I already try with functions imap_mail() and mail() Could you tell me how? or any thing is required such as mail server?
Thanks!
A: Nearly nobody uses or supports sending mail with IMAP. Use SM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Detecting a bad item inserted into a std::set Say I have a custom type in my set, and the set/ordering only makes sense if all items have the same value on some property... if an item with a different value is inserted the model is screwed up and I want to protect this.
I thought maybe the comparison function might ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I know if a table is an array? I'm developing a simple optimized JSON function. Lua uses tables to represent arrays but in JSON I need to recognize between them. The code below is used:
t={
a="hi",
b=100
}
function table2json(t,formatted)
if type(t)~="table" then return nil,"Parameter is not a table.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: reverse link list using recursion I am trying to reverse a link list using recursion. I have written a function "reverse(node* ptr) for this
I am getting output as 40 40 20 while i expect output to be 40 , 20 , 10.
below is the code posted.
class list {
//some code;
void reverse()
{
node* temp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which is the fastest performing way to avoid n+1 issues and why? I'm looking to add some utility methods to help avoid a lot of n+1 issues in a legacy application.
The common pattern is this:
select a.* /* over 10 columns */
from [table-A] a
where /* something */
Retrieved into a collection of ClassA record instanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ExtJS 4 - How to display template having width greater than the width of combo-box?
I have a combo-box in which the values are being displayed in a template.
Now, I want the width of the template to be more than that of combo-box and hence I am using matchFieldWidth:false as mentioned at the link - ExtJS ComboBox ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Manipulating Form.Action I have to use Form.Action to redirect to a script that will be picking up values from my page. It is worth noting that this script is external.
My issue is that I also want the button that is clicked and has the Action hooked up to it, to also complete some functionality in the code behind f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to get source and destination latitude and longitude? hi all how to implement code for getting latitude and longitude when we enter the location address (i mean when i enter from address and to address into auto complete Textview.then i will get the latitude and longitude for from address and to address).so help... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add values to exsisting of a hash how can one insert additional values to an exsisting key of a hash in R.
h=hash()
h[key1] = "value1"
. ???
h[key1] = exsisting values + "value2" = c(values(h),"value2")
??
A: First of all it may be useful to indicate why you want to use hash in the first place. Standard R contains... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: jQuery .animate() not doing anything in IE8 I have a div of text (#text-write), each character of which is spanned. The div is absolutely positioned inside a relatively positioned container div (#typetext). Here's the effect intended:
*
*Animate inner div (#text-write) to opacity 0 for 400ms.
*Animate each span ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: stored procedure using like (MySQL) How can I use the LIKE statement in stored procedures (MySQL) ?
I tried both but I still get errors:
..WHERE Des_Articolo LIKE '%nome_art%';
..WHERE Des_Articolo LIKE'%',nome_art,'%';
nome_art is declared as
CREATE PROCEDURE ric_art (IN nome_art VARCHAR(100) , OUT msg VARCHAR(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: VB6's Boolean data type equivalent in MIDL Which MIDL data type is equal to the VB6's Boolean type?
A: According to MSDN Boolean is available in MIDL.
A: Finally I tried Boolean (as @Sohnee suggested), VARIANT_BOOL (thanks to @Alex K.) and BOOL.
The Boolean type was not recognized by VB6's Object Browser. The VARI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unknown reference to __dlopen in dlopen dlopen is located in libdl.a but when I link my application against libdl.a , gcc linker throw this error : unknow reference to __dlopen called in dlopen
Should I import another .a?
A: You should be able to use the shared library libdl.so with
gcc -ldl ...
if you don't have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7526255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.