text stringlengths 8 267k | meta dict |
|---|---|
Q: Calling an object after an ajax call returns I built the following object:
var cls = {
offset : 0,
onSuccess : function(data) {
alert(this.offset);
}
};
$(document).ready(function(){
$("form").submit(function() {
$.post(
"/ajax",
{},
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What causes the "user agent stylesheet" to use "border-box" instead of "content-box" for box-sizing? I'm under the impression that the user agent stylesheet in browsers such as Safari, Chrome and Firefox is something that is internal to the browser and can't be directly modified (rather a style property needs to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Converting from sign-magnitude to two's complement For this assignment I can only use basic bitwise operators and no control structures, so I've come up with this code so far to convert sign-magnitude to two's complement.
int sm2tc(int x) {
// Invert and add 1
// Problem: sm has 2 zeros.. 1000...000 & 0000..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting some Excel formula to C# I'm trying to convert some Excel formulas into C# code, and I'm kind of lost...
I have the following:
SUMPRODUCT(1*(RIGHT(A1)={"a","e","i","n","y"}))
What exactly does that mean?
Here is what I know:
*
*RIGHT(A1) returns the last character of the text in A1.
*SUMPRODUCT({1,2,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: tag is not displayed if Empty The tag of the following PHP echo statement is not displayed by the browser if it is empty. Found this on IE9.
echo ' <div id="'.$url['ID'].'" class="link"> '
.'<img class="link_handle" src="http://www.google.com/s2/favicons?domain='.$urlico.'" align="middle" />'
.' '
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why is F# generic type inference different on constructors? This case (simplified to the point that it doesn't make much sense) is handled correctly by the F#'s type system:
type HumanBeing() = class end
type Animal() = class end
type CreatureController() =
member this.Register creature = creature
type Creatur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why do I get an undefined index for signed_request in my facebook app? I am attempting a test app to learn on facebook. I am using this code from the facebook developer page:
<?php
$app_id = "YOUR_APP_ID";
$canvas_page = "YOUR_CANVAS_PAGE_URL";
$auth_url = "http://www.facebook.com/dialog/oauth?c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Validation Ignored with PostBackUrl or Response.Redirect Using C# I have a form with some custom validation. There is a button on the form that should take the user to a 'confirm page' to show all the details of an order.
On-Page Validation
<asp:TextBox ID="txtBillingLastName" Name="txtBillingLastName"
runat="s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a pythonic webserver equivalent to IIS and ASP? For very simple, internal web-apps using ASP I was able to just switch IIS 'on' and then write some ASP scripts in the www directory that would start working immediately.
Is there an equivalent webserver app for Python scripts that I can run that will automatic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Match an item to a list of items Let's say I want to group States into Regions. For instance, the Southwest Region might be: Texas, Oklahoma, Colorado, New Mexico, Utah, Arizona, Nevada.
Somehow I need to create the list of states and define the region groupings. I also need to be able to lookup a region given the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding a Stored Proc to complex type not showing up in .edmx (thus not mapped)? 1 (mvc3) I have added a stored proc to my model as mapped to a ComplextType.
Two Issues:
1) ComplextType.cs exists in class under Model1.tt BUT doesn't show up in .edmx?
2) When I try to create a controller with strongly typed views wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Translating strings postgres I'm trying to translate 2 types of data using only postgres SQL
I've got a column "type" that may contains the kind of data.
type is a string column and may have "ACTUAL" or "OLD" values
+-type-+
+ACTUAL+
+OLD +
+------+
when I show the list with a lot of other joins I would like to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Register to the DeviceManager of Linux I read some questions here but couldn't really find the specific problem I'am faced with here...
I need to implement a "DeviceCache" in a particular project which caches all device-names found in /proc/net/dev .
The Language is C/++
So I thought about a seperate thread looking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lost connection to MySQL server at 'reading initial communication packet', system error: 110 When i'm trying to connecting to mysql. getting this error.
Lost connection to MySQL server at 'reading initial communication packet', system error: 110
A: Error 110 is "connection timed out". If you're trying to connect vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Magento Collection Filtering functions What is the difference between addAttributeToFilter() and addFieldToFilter() when dealing with Magento collections? Does it have anything to do with whether or not the value is an eav_attribute?
EDIT: According to http://www.magentocommerce.com/wiki/5_-_modules_and_development/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL basic full-text search I have not worked much with TSQL or the full-text search feature of SQL Server so bear with me.
I have a table nvarchar column (Col) like this:
Col ... more columns
Row 1: '1'
Row 2: '1|2'
Row 3: '2|40'
I want to do a search to match similar users. So if I have a user that has a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: python: method depends on whether param is int or string Is there a more pythonic way to write __getitem__ than the following? The issue is checking type and doing different things depending on the type of the parameter in the call.
class This():
def __init__(self, name, value):
self.name, self.value = n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: $(document).scroll is not firing in IE8 only I have a site running some javascript. In IE8 only, the $(document).scroll is not firing when you scroll with or without the mousewheel.
Code snippet below:
$(document).scroll(function () {
//do something on scroll
});
Is there a specific reason this funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Tkinter and Tix demo or showcase application? Is there a showcase (demo) application with all Tkinter and Tix features and widgets?
For example, wxPython download includes a "wxPython Demo" application which not only demonstrates the widgets, but also provides the source code and some comments on it, which I liked ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NSMutableDictionary not Setting Keys All,
I'm sure I'm overlooking something, but I've been staring at this code for too long trying to figure out what's going on.
-(IBAction)continue:(id)sender
{
//setters for the limits
NSLog(@"Log ageUnder18: %@", ageUnder18.text); //returns Y
NSMutableDictionary *c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASIHTTPRequest crashing in performInvocation I'm getting a crash in ASIHTTPRequest on the performInvocation: method.
The stack is:
ASIHTTPRequest performInvocation:onTarget:releasingObject: 1877
ASIHTTPRequest performSelector:onTarget:withObject:amount:callerToRetain: 1870
ASIHTTPRequest updateProgressIndicator:with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Objective-C Guid with Hyphens All
I am looking to format a guid stored in an NSString with hyphens? I would like to avoid substrings and use a formatter if possible
so
D21AB2C8-E61F-11E0-ADEE-20D04824019B
instead of
D21AB2C8E61F11E0ADEE20D04824019B
The value is already in an NSString and I just need to add the hyp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add a array variable parameter in mysql query?(PHP) I need to do a query like:
UPDATE screening
SET maileddate = NOW(),
reference = '{$reference[$user_id]}'
WHERE user_id IN(....)
And I want to do the judgement, when reference[$user_id] is empty, r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add/remove class working but clicking on new class doesn't Sorry for the bad title wording!
I have the JS:
$(".add").click(function(event)
{
cid=event.target.id;
alert("add class changed");
$("#"+cid).addClass("del");
$("#"+cid).removeClass("add");
});
$(".del").click(function(event)
{
cid=event.t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a rate and comment system for android app? I want to create a rate system for an android application using java.
Ive searched around and havent found much on the web concerning this.
What do i need to do to build or get started building a rate system for a android application.
Such as the android marke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: UIColor colorWithPatternImage The documentation for the method colorWithPatternImage of the UIColor class states:
During drawing, the image in the pattern color is tiled as necessary to cover the given area.
This means that if the object's frame is larger than the size of my image used with the method colorWithPatte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change class of element based on javascript variable value? I have the following script:
<script>
window.now = some_int_value;
</script>
and the following html:
<span class="dot"></span>
<span class="dot active"></span>
<span class="dot"></span>
<span class="dot"></span>
How should... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: User script directory in Google Chrome When I follow a link to a user script in Google Chrome (for example, https://gist.github.com/raw/1107277/cacd006f78ae9e02bb10a173e30092b0b56fb5e9/answers-6825715.user.js), where does the script get stored? If I make changes and save, will the script be updated when I refresh?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why do you have to create a new set of RelativeLayout.LayoutParams for each element you put in your view? I have to do this programmatically. So, bear with me.
I have text and two buttons that I set to align below each other. So I created a new RelativeLayout.LayoutParams instance for each and added a rule to set it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Page Flickering Asp.Net Using Master Page Asp.Net I have masterpage and i am using update panels for all my partial page renderings and panels. When i run this on my local machine the postbacks dont casue flickering but when i run from the host server the whole page flikers on postback. any ideas?
A: I found this l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: If a page takes 1 ms to render, does that mean 1000 pages per second? If a webpage takes 1 ms to render, does that mean my application can do 1000 pages per second?
I understand it also depends on other things like db connections and locks, but in general is that a good measurement or is it actually probably more be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change from long to wide format with indicators All-
I am needing to change from a long format to a wide format in R, but I need the column values to be 1 or zero depending on if the particular variable is present for the subject.
The input data looks like:
Subject Product
1 ProdA
1 ProdB
1 ProdC
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mvc 2 - 404 error page not found I am getting a 404 error when I start up my mvc 2 project. I followed the guide here: http://net.tutsplus.com/tutorials/asp-net/asp-net-from-scratch-mvc/
I haven't set up a start page (Which I figured out to be a normal newbie mistake) and I've edited my global.asax class to look lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to show image with out symbol hi guys i am trying submit form and get a result as jpeg on same page. how ever when click to submit button
i get the some weird code instead of image hcan you guys help me here is my code
function xgetbarcode()
{
$.get('ajax_barcode.php', { barcode: $('form[name=getbarcodeform] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Specify CIFS vs NFS for UNC in Windows? On Windows 2008 Server R2 (acting as a client) I have the Client from Windows Services for NFS installed and a server mounted as Y: with NFS. That server also supports CIFS. When I open a UNC path to the server with start/run it connects using CIFS but when an application on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Accessing GridView Cells Value I am trying to access the integer value of the first cell but I'm getting this error:
Unable to cast object of type 'System.Web.UI.WebControls.DataControlFieldCell' to type 'System.IConvertible'.
And the value i have stored in that cell is an ID like 810
My Code
int myID = Convert.T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Add to Timeline vs Login I've got or site working with timeline using the new javascript SDK sample code but we'd like to move this into the natural flow of the script for authenticated users [so they don't have to actively post items each time they do an action].
I suspect I'm over thinking this but will adding pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Rails 3 test fixtures with carrierwave? I'm working on upgrading from attachment_fu to carrierwave, since attachment_fu is broken in rails 3.
None of the tests are able to run, because we have invalid fixtures that were using the syntax from attachment_fu for attachment files.
For example, we have a Post model that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Java: Morphia how easy is it to update a Collection with new field values I'm new to this,
Let's say I have Collection "UserData" and there are 1000 Documents in the UserData.
Now I need to add one more field called "position".
Can I do this, how?, or how does it work?
Looking on the wiki Morphia but cannot find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring Hibernate access joined database field my database tables:
cities(id serial, name varchar(40);
weather(id serial, city_id int, temp int, date date)
cities.id = weather.city_id
In Spring I have same POJO as the fields in database.
for example City.java:
@Entity
@Table(name="CITIES")
public class City {
@... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding strrpos of \ in a String Here's a puzzler. I have a variable that contains computer file paths. I need to separate the filename from the path.
Example:
From this:
$filepath = C:\\User\Me\Myfiles\file.jpg
I need this:
$path = C:\\User\Me\Myfiles\
$file = file.jpg
I know how to get the substrings of $filepa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: After a db insert with AJAX, how can I make a div on same page update with inserted info? I am in the middle of learning jQuery and improving my AJAX, and I am a bit stumped.
I have this page here: http://www.problemio.com
You can use the left hand div to add something to the database. And it does that. What I am no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Add cell to Gridview row with string from code behind I have a gridview display results from a LINQ query.
I want to add a column at the end that has a link. The issue is the link is dynamically generated in my code behind. I am not sure how to get this to the main page.
Thanks!
A: Check out the OnRowDataBo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android gallery no scroll on click By default it seems, when a gallery item is clicked, the gallery automatically scrolls to center the item that was clicked. How can I override this behavior? I do not want the gallery to scroll to center when clicked, I want it to stay where it is.
A: I think this is a correct s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Doctrine objects are HUGE I'm a .NET convert to PHP and am so far having a good time with the transition. I'm using doctrine 1.2 as my ORM and have my models working and everything is connected fine. However, the problem i'm looking at now is the output objects are enormous. I have a fairly simple table called USERS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Authorization/Authentication with Google account in GWT I'm trying to enable my GWT application authenticate users with their Google accounts. What I basically need is just to have an unique value for every user and be sure that these values will always describe correct users. The main requirement is, the number of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lync SDK - Making a plugin for Lync - Conversation Window Extension I was reading the MSDN documentation about Conversation Window Extensions and all of the examples that I found require working with IIS. Is there some way to create a CWE without using IIS?
Can I create a CWE for Lync 2010 without working on HTML?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CTFramesetterSuggestFrameSizeWithConstraints: what attributes can be set? The documentation for CTFramesetterSuggestFrameSizeWithConstraints describes the frameAttributes parameter as so:
Additional attributes that control the frame filling process, or NULL if there are no such attributes.
I've only ever set this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to compile and run xv6 on windows? We are being taught xv6 in our course. Currently we use to login to linux server of our school using putty in windows.
There we make changes in source of xv6 (using vim), then compile and run it in qemu simply
make clean
make
make qemu-nox
It is not always possible to connec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: MSBuild Property Scope Once again I'm battling MSBuild. I want to have a property value defined with a root path. As part of the build, the path will get updated with version information. However, MSBuild seems to have its own scoping rules that seem completely backwards. Take this first example:
<?xml version="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Rows to columns SQL Server query I am writing a query that will be used in a .NET application, therefore I would like the SQL Server 2008 o do much of the processing for me instead of the client PC that the application will run on.
I am trying to get data from a single table with an index value, based off of that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write event log using vbscript I want to write event log when this vbscript run. How to i can?
Thanks for any help.
A: Like so:
Set shell = CreateObject("WScript.Shell")
shell.LogEvent 4, "Your Message Here"
The 4 is a severity level. You can learn more about the LogEvent method on MSDN.
A: This is old but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Python Object Inspector GUI What I would like is a handy GUI to inspect objects. The dir() function just isn't enough sometimes!
What would happen would I would type view_object(module) and it would give me a GUI window that has
Features:
- Tree-view representation, similar to a file-viewer. This would let me see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: multiple inside I am just wondering whether the below code is valid?
<c:choose>
<c:when test="${empty example1}">
</c:when>
<c:when test="${empty example2}">
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
A: <c:choose>
<c:when test="${empty example1}">
</c:when>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Using TSimpleDataset for multiple purposes Delphi 2010
I am trying to use TSimpleDataset for multiple purposes.
var
q: tsimpledataset;
row: String;
n: Integer;
begin
q:=tsimpledataset.create(nil);
q.connection:= SQLConnection1 ;
q.dataset.commandtype:=ctQuery ;
q.dataset.commandtext:='select lastid from last... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: IronJS CommonObject, are dynamic properties possible? In IronJS, we have a custom object derived from CommonObject. We're wanting to intercept calls to undefined properties on the object, and provide dynamic responses. (This is required, as it is not possible in our situation to preregister all the properties.)
We... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GAS: Explanation of .cfi_def_cfa_offset I would like an explanation for the values used with the .cfi_def_cfa_offset directives in assembly generated by GCC. I know vaguely that the .cfi directives are involved in call frames and stack unwinding, but I would like a more detailed explanation of why, for example, the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: Passing variadic arguments in one function to another function in D I have a variadic D-style function foo(format, ...), which is a wrapper around writefln. I'd like to do something like this:
foo(format, <...>) {
//...
writefln(format, ...);
}
Essentially, passing on the ellipsis parameter(s) to writefln. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to access Library, File, and Field descriptions in DB2? I would like to write a query that uses the IBM DB2 system tables (ex. SYSIBM) to pull a query that exports the following:
LIBRARY_NAME, LIBRARY_DESC, FILE_NAME, FILE_DESC, FIELD_NAME, FIELD_DESC
I can access the descriptions via the UI, but wanted to gener... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Named process internal mutexes with C/C++? Are there ways to implement named process internal mutexes using C/C++ (in Unix/Linux)?
The trick is that the mutexes lifetime would need to be process persistent. Unlike for example the named posix semaphores and shared memory.
You could have for example pthread mutexes, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to define url which accept everykind of strings in django In django, I defined url like that
(r'^checkstring/(?P<string>\w+)/$',views.check_str,name='check str')
But, When i enter string inputs like ibrahim.yilmaz, ibrahi!m or ibrahim@ibrahim.com, it returns http 404.
So how can i write the url which accep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Upgrading to SQL Server 2008: Upgrading a VS2005 .NET program that uses BCP I have VS2005 .NET C# program. My understanding is that VS2005 targeted only the 2.0 version of the .NET FW. The program uses the Bulk copy object. I believe the source dll of this object is the System.Data.dll file in the Version 2 Framewor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determine current year or previous year based upon month selection I have inherited an archive program written in C#. The previous developer was only interested in archiving data from the previous month. However, some months were missed and my task had been to add functionality to see what other months were missed.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I do this without reflection? For a presentation involving six components of a Person object's PersonName, I added an extension and a 'mini view model' (PersonNamePropertyTextBox) to cut down on duplicated code and facilitate data binding.
So in the constructor of the parent view model, I create these mini view ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: parse html data from iframe in anoter domain Hi i have an application in http://abc.def.aspx and I want to parse the contents (basically a report) existing in http://uvw.xyz.html . I have created an iframe in def.aspx page but it gives me permission error. I just want to parse the html content to allow new sorting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: UITableViewController crash on loading second time I have a project where I want to open a UITableViewController after a UITableViewController via a UINavigationController. The thing is, it works the first time when it gets called by this function:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: matplotlib does not show my plot although I call pyplot.show() Help required on matplotlib. Yes, I did not forget calling the pyplot.show().
$ ipython --pylab
import matplotlib.pyplot as p
p.plot(range(20), range(20))
It returns matplotlib.lines.Line2D at 0xade2b2c as the output.
p.show()
There is nothing to happ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "198"
} |
Q: Dependent Observable syntax woes My simple 'dependent observable' does not update and when I give it the syntax of a function as the turorials say is required I get a javascript error. I'm just trying to sum the three observable values.
If I use
<td>${G1 + G2 + G3}</td>
I get a static display: the does not update... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use a variable in file path in .vbs Is it possible to usa variable in a path in .vbs. My basic situation is I have a vbs script that will often be run on a computer with one person logged in and run by an admin with a completely different user name (assume the file will be right clicked and "Run As").
The script ed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I display all possible values in a SuggestBox I would like to display all possible values in a SuggestBox.
Naturally, I have the following code (settingName is a SuggestBox)
settingName.getTextBox().addFocusHandler(new FocusHandler() {
@Override
public void onFocus(FocusEvent event) {
settingNa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is the Facebook canvas tutorial missing something?
Possible Duplicate:
Why do I get an undefined index for signed_request in my facebook app?
I posted a question on the regular SO that is very similar but then found the facebook SO.
If I copy and paste this code from the facebook canvas tutorial page:
<?php
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Filtering a data frame I have read in a csv file in matrix form (having m rows and n columns). I want to filter the matrix by conducting a filter in verbal form:
Select all values from column x where the values of an another column in this row is equal to "blabla".
It is like a select statement in database where I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Dropdown list filled from repository I have an MVC3 drop down list that come from this code on the controller.
private SelectList progCodesList = new SelectList(new[] { "Description", "Requirements", "Development", "Testing", "Documentation" });
How can I fill the fields from a repository, to build the drop down d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL table view (Visual Studio or...) Is there any way to read .SQL document in table view in VisualStudio or any other program?
A: .sql quite simply contains a set of executable SQL instructions. ( described here ) The instructions are in plain-text and are can be viewed with any text editor (i.e. notepad).
Based o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to clone
A:
I need to see "alfa_1" when I click in the cloned Text, but nothing happens.
Doing DOM or innerHTML manipulations on <script> elements is inconsistent in browsers and doesn't really make any sense in terms of the JavaScript execution cycle. Avoid it in all cases.
If you want to copy DOM elements t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Copy LIne in qt shortcut I have been searching a lot on this but of no use. Is there any shortcut to copy an entire line with a keyboard shortcut in QT creator? I have seen shortcut for cutting a line but that's not what i want..
A: Set cursor to the line you want copy and press Command+Alt+Down or Command+Alt+Up
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to use Google Analytics API with 2-legged OAuth (Google Apps for business)? I want to develop an application for the business I work. We are using Google Apps and want to get data from Google Analytics and show it in one of our web apps. I do not want the client to see any request to authorize the app. I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to avoid stack overflow in Haskell? Haskell does not support cycling for computation, instead it offers to use recursion algorithms. But this approach leads to growing of stack, and even stack overflow. I believe there should be approach to solve this problem in general. Here is the sample. I wanted to know, how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Actionscript 3 - Calling onLoadProgress function from inside another function I have an AS3 function that loads and audio file and then plays it. I have the pre-loader for the first audio file working - now I need to run the pre-load function before the 2nd audio file starts.
myMusic.addEventListener(ProgressEvent.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to serialize HashTable to XML using JAXB? I am trying to use JAXB to serialize a HashTable<String, String> to XML. I am very new to Java (came from C#), so I am kinda perplexed by this task.
I have seen the following code:
public static <T> String ObjectToXml(T object, Class<T> classType) throws JAXBException
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is STL Vector calling a destructor of a not-allocated object? The folowing code shows an output not expected:
class test
{
public:
test()
{
std::cout << "Created" << (long)this << std::endl;
}
~test()
{
std::cout << "Destroyed" << (long)this << std::endl;
}
};
int main(in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Disabling optimizations in an executable and maintaining them in a static library I've come across an odd situation and my (supposed) knowledge of code linkage is failing me...
I have come across a bug that only occurs in a 64-bit build with optimizations turned on (/O2, /O3, or /Ox). The bug occurs in an executabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make an array linkable that's using implode? My array displays properly but I would like for the link inside to display the current value of the array.
Here is my code:
foreach( $persons as $pid => $p)
{
echo '<a href="?tag=">' . implode( '</a>, <a href="?tag=">', $tags[ $p['id'] ]) . '</a>';
echo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set request attribute and then redirect to another app in a Spring Controller How can I set a request attribute and then redirect that to another app in a Spring Controller.
Thanks!
A: Please look at this answer, I think this is what are you looking for
How to pass model attributes from one Spring MVC controller to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Gallery of TextViews, using styles etc I want to use Gallery as a horizontal menu so I've taken the code for the Gallery tutorial to use TextViews instead of ImageViews by using a String[] and changing the adapter's getView((...) method as follows...
public View getView(int position, View convertView, ViewGroup pare... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using SQL Server Users and Roles as an authorization database for an intranet web application? I have a question that really feels like I should have an easy answer to, but for one reason or another I haven't been able to totally reason around it.
I'm embarking on development of an ASP.NET MVC3 intranet application,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Name-value pair list with duplicate names to JavaScript object For submitting the form data to the server from the AJAX call to bind Telerik MVC grid, we can set e.data in OnDataBinding event to a anonymous JavaScript object
<script type="text/javascript">
function Grid_onDataBinding(e) {
var categoryValue = "B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to view SQL Server Compact Edition 4 blob data in VS 2010 I have a SQL Server CE 4.0 table that has a text blob field (ntext). When I browse the data in VS 2010 SP1 the ntext field does not show any data.
Is there any way to view the blob data in VS 2010?
A: Ntext data is displayed as text using Show Table Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In SQL Server 2005, when does a Select query block Inserts or Updates to the same or other table(s)? In the past I always thought that select query would not blocks other insert sql. However, recently I wrote a query that takes a long time (more than 2 min) to select data from a table. During the select, a number of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: UNIX shell script while loop I am trying to write a script to track the progress of file change.
I have the following till now:
#!/bin/sh
old=‘ls -l /tmp/file‘
new=‘ls -l /tmp/file‘
while [ "$old" = "$new" ]
do
new=‘ls -l /tmp/file‘
done
echo "The file has been changed"
The above program when run gives the mess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spring MVC annotated controller in groovy I have this in src/main/groovy/...
package com.mycompany.web;
// imports....
@Controller
class GroovyController {
@RequestMapping("/status_groovy")
public @ResponseBody String getStatus() {
return "Hello World from groovy!";
}
}
Using maven 3 and sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Amazon Mechanical Turk task retrieval API I'm writing an app wherein the premise is that people who can't directly fund a charity out of their pocket could automatically work on Amazon AWS HITs in order to bring clean water to the 3rd world - I'd known there was an Amazon AWS API but is very unclear on how to retrie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a Wizard using MVC 2 Does anyone have any go example I could follow to create wizard in MVC 2? When using old ASP.Net you had server controls where you could other controls, and based upon how a user went through the steps you could add other steps dynamically or show other controls dynamically.
Basically,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: using mipmaps with ETC1 textures Ive modified my code to use ETC1 textures to help lower memory usage and while the texture loads, its not automatically generating mipmaps anymore. Is this not supported for ETC1 images? Heres my code:
//Generate three texture pointers...
gl.glGenTextures(3, textures, 0);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get only one row from a list of items in SQL Server? I've got a non-normalized sales database like this:
Invoice Item Price Total_Sale
------- ---- ----- ----------
565 Nails 1.25 6.25
565 Hammer 5.00 6.25
566 Paint 7.95 7.95
...
As you can see, the "total_sale" is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I fix this javascript conflict mess (jquery + prototype + google visualization + PRADO php)? I have a webapp relatively old running on Prado 2.1RC1 and I am trying to enhance it by adding some nice google visualizations charts.
The problem arose at the moment of integrating google jsapi (that depends on jque... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: String.replace with / and \ in Nodejs different than in Chrome? I'm trying to make a router in Nodejs. A big part of that is URI -> action, so I'll need an easy configurable list of URI's and regexping them to regexps to match against the request URI.
Simple! I've done this in PHP a million times. Give or take.
So t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: serialport communication .net 4.0 from a webpage Looking for serial port communication using ASP.NET 4.0. I have a cardwriter/reader from IDTECH which talks through a comport. Is there any way to accomplish with .net through the web.
I read things but most of the topics on speaking about .net 2.0 and I was not sure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to get a string concatenated in Linq2Entities query I am trying to create a Dictionary<string, string> from the combined results of two string fields in an entity.
I am using this dictionary to populate a drop down list. For this particular case, both the key and value are the same.
Here is the query I have s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: getting value first offset name after click? How can get value 2011 in input:name with jquery?
<input type="text" name="hi[2011][]">
Example:
<button>Click me</button>
<input type="text" name="hi[2011][]">
$('button').click(function() {
var f_offset = $('input').prop('name');
alert(f_offset);
}
A: Using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7534544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.