text stringlengths 8 267k | meta dict |
|---|---|
Q: Relation between [[Prototype]] and prototype in JavaScript From http://www.jibbering.com/faq/faq_notes/closures.html :
Note: ECMAScript defines an internal [[prototype]] property of the internal Object type. This property is not directly accessible with scripts, but it is the chain of objects referred to with the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Direct Email Link no need to outlook How can I have a link for submit an email directly? I don't want to use outlook to send email. I want to post email by clicking on submit button without open outlook eexpress and use it.
A: HTML cannot send email directly. You need server code that can handle a request to send ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to unit test concurrent Erlang code? I'm spending a bit of time with Erlang, and I'm wanting to apply TDD to code I'm writing.
While EUnit in the standard lib provides a nice traditional unit testing framework for testing regular style code, there doesn't seem to be anything to help specifically ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to use Powershell to grant user rights to registry keys? I need to grant rights to Windows user group Everyone to the HKCR hive and all the keys below th HKCR.I would like to use PowerShell scripting for this. Is it possible?
A: You really, really, really, don't want to do this - you're opening your system up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenCv Blob/Contour labeling Hi i have been working on this for a while and yet to have no good solution.
I am reading a video frame by frame and am using background subtraction to '
identify the region where is there movement and use cvFindContours() to get the rectangle boundary of the moving objects.
Assuming the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Downgrading ReaderWriterLockSlim UpgradeableReadLock to simple ReadLock The documentation of ReaderWriterLockSlim.EnterUpgradeableReadLock says:
A thread in upgradeable mode can downgrade to read mode or upgrade to write mode.
How do I downgrade the lock to a read lock? The documentation does't tell...
[Edit:] I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to style the slider control in WPF? I want to style the slider control so that the height of the draggable thumb is set to 8 pixels.
What is the simplest way to do this in WPF?
<Slider>
<Slider.Style>
<!-- which xaml here? -->
</Slider.style>
</Slider>
A: The Slider Control has many parts Thumb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Processing CSV files from the Web using embedded Java database Short version: assuming I don't want to keep the data for long, how do I create a database programmaticly in HSQLDB and load some CSV data into it to? My schema will match the files exactly and the files do have adequate column names.
This is an unattend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IndexOutOfRangeException for an IList I am implementing a list, and I am wondering about the definition of the IndexOutOfRange. Which one of the following do you think is better?
/// <exception cref="IndexOutOfRangeException">if index is less than 0
/// or greater than <see cref="Count"/>
public T this[int index] { ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pthread_mutex_t init error I am using xcode 2.4.1 on tiger. When i do below everything is ok. when i do
pthread_mutex_t mute;
ImageMan()
{
dibSize=0;
mute = PTHREAD_MUTEX_INITIALIZER;
}
I get these two errors
error: expected primary-expression before '{' token
error: expected `;' before '{' token
I dont k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to Cancel Scrolling in UIScrollView I use UIScrollView to make large-sized (larger than 320px) UI on iPhone.
I made an instance of UIScrollView and added some subviews on it.
The problem is that I want to enable scrolling only when user touches outside of subviews,
stop scrolling when user touches one of subview... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: C# compilation question: newlines in 1 statement causing error A simple question
Consider this piece of code in C#
String a;
String b;
String c;
1. a =
2. b =
3. //Comment
4. c = "a String";
During compilation, it was fine, but i hit an error when I run my application. From my logs, the error occur at the ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF - How to display loading message for web browser control I have a window with 2 column grid.
Left column contains a browser control
I woould like to display a little window or something to show a
that the webpage is still loading.
How could I do this?? Could I have a floating window in the 2nd column
that shows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ActionLinks doesn't always work in FireFox and Safari I've been learning the new ASP.NET MVC framwork lately and I've developed a test site for a friend who runs a "light café" in Sweden. The plan is to release it within a week or so after performing some final adjustments and fixing some security issues.
Yesterday... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Oracle Modify statement - error I added a new column in my table.
ALTER TABLE neue_buch modify preis not null;
and I have got this error:
Error starting at line 40 in command:
ALTER TABLE neue_buch
modify preis not null
Error report:
SQL Error: ORA-02296: cannot enable (S1885872.) - null values found
02296. 00000 -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to ensure all data has been physically written to disk? I understand that .NET FileStream's Flush method only writes the current buffer to disk, but dependent on Windows' disk driver and the hard disk firmware this is no guarantee that the data is actually physically written to disk.
Is there a .NET or Win32 met... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: overloading constructors and reusing code Let's say I've got an object Customer with a couple properties (ID, FirstName, LastName). I've got the default constructor Customer(), but then I've also got a Customer(DataRow dr), since I load this object from a database and that's a simple way to do it.
I frequently come... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET Dynamic Data - Globalization and Localization Does anybody know how to create a multilingual web application using Dynamic Data and
be able to show any label or button in the correct language upon the selected culture?
A: You can implement your own ResourceProviderFactory to get your localisations from wher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to reset saved data back to defaults? I'm implementing saved data on my app by using NSUserDefaults, like this:
[[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:0],@"mySetting",nil]];
// check
int firstLaunch = [[NSUserDefaults standardUse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best way to implement a cross-platform, multi-threaded server in C/C++? Part of the development team I work with has been given the challenge of writing a server for integration with our product. We have some low-level sensor devices that provide a C SDK, and we want to share them over a network for use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Eclipse + PDT performance tips? I recently wanted to get a decend IDE for my PHP side-projecs, and by searching SO found Eclipse+PDT. Although it's not quite at the level of Visual Studio yet, it's pretty nice and better than Notepad++ for this purpose. I can even debug somewhat, although it's pretty glitchy.
But th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Create local user with PowerShell (Windows Vista) I've installed PowerShell recently and one of the first things I started looking for was how to create a new user. After looking for some time I still haven't found this.
I have a little experience in bash on linux and find it very effective. Creating users there is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is JavaScript's "new" keyword considered harmful? In another question, a user pointed out that the new keyword was dangerous to use and proposed a solution to object creation that did not use new. I didn't believe that was true, mostly because I've used Prototype, Script.aculo.us and other excellent JavaScript libra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "592"
} |
Q: Code Golf: Print the entire "12 Days of Christmas" song in the fewest lines of code Print all 12 verses of the popular holiday song.
By 12 verses I mean the repetition of each line as is sung in the song, ie
Verse One:
On the first day of Christmas my true love gave to me
a partridge in a pear tree.
Verse Two
On the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Embed javascript as base64 I'm working on a small GreaseMonkey script where I would like to embed a jQuery plugin (Markitup) so that the script is fully self contained (images + js) except for jQuery which is served from google.
I found the site http://www.greywyvern.com/code/php/binary2base64 which says that you ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What are some interesting projects to solve in Erlang for learning purposes? I recently discovered Erlang and am now working my way through a couple of tutorials. By now I'm looking forward to actually implement something as a hobby project. I'm not really interested in yet another chat server. I would like to code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: install EventFilter on QWidget (qt4.4.3/kde4) I have a K* window, and within it, a widget which needs the events filtered.
For example I do not want the possibility of clicking it...
How can I do that?
Have I to use eventfilters? In this case, what's the best way?
but my problem is that I can't subclass my widget,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does using ReaderWriterLockSlim cause a memory barrier? If I am using ReaderWriterLockSlim to acquire read/write locks, do I need to make my variables volatile or use Interlocked.Increment?
For example, would the code in the Add method below work fine, or does it need enhancement?
public class AppendableList<T> { //... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: using (Fluent) NHibernate with StructureMap (or any IoCC) On my quest to learn NHibernate I have reached the next hurdle; how should I go about integrating it with StructureMap?
Although code examples are very welcome, I'm more interested in the general procedure.
What I was planning on doing was...
*
*Use Fluent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Generate google map based on UK postcode Is it possible to do a google map lookup using the google maps API from a UK postcode? I know you can search by UK postcode on their website, but this converts to lat / long. I don't have access to the PAF database to be able to convert to long / lat.
An example:
Users have a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: JSTL Printing arrayList elements I have a JSP page that receives an ArrayList of event objects, each event object contains an ArrayList of dates. I am iterating through the event objects with the following:
How can I iterate through the dateTimes ArrayList of each event object and print out each events date/times... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Refactoring parameters and unit tests I have this method:
public bool CanExecute()
And after 70 commits, I added an extra parameter
public bool CanExecute(IStation target)
Now the problem is I have 7 unit tests covering this CanExecute methods testing various nulls/property combinations.
Adding this simple paramet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Intersection of two lines defined in (rho/theta ) parameterization Have created a c++ implementation of the Hough transform for detecting lines in images. Found lines are represented using rho, theta, as described on wikipedia:
"The parameter r represents the distance between the line and the origin, while θ is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: UIAlert erroneous behaviour // Tratamento de eventos: caso o utilizador clique numa das células da tabela
Hello again guys,
I was trying to display a UIAlertView to show the summary of a 'Movie' object i have stored and my idea was to show two buttons in it if i had the movie's website stored, or just to show one if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any plugin framework for Java Applets? We have a large Java application that run as applet or Java Web Start. And it grow more and more. Typical a user need only a small part of the classes. Because Java does not know which class can it found in which jar file that it load all jar files until it find the cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to preserve COM DLL version in an auto-generated interop assembly in VS2005? I've added a reference to a co-worker's COM DLL -- MyLogic.dll -- to my C# project in Visual Studio 2005. As expected, this auto-generates Interop.MyLogicLib.dll in my output folder. However, the version number of the COM DLL is 2.1.0.1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Client-Side script to read and manipulate image from the web (details...) I want to be able to use a Greasemonkey script that can take an image from a page, scan it for the darkest pixel, and then return those coordinates to the browser.
Originally, I used a flash script... Greasemonkey embedded a local flash file t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make UnitTest fail automatically after some time? I am using NUnit (2.4.6) and my build/test night are done with Team City 4. I have contacted team city and they already told me that they cannot handle this. So, here I am.
What I want is to set up my test to do their testing as usual but in the case they hang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I sort a hash's keys naturally? I have a Perl hash whose keys start with, or are, numbers.
If I use,
foreach my $key (sort keys %hash) {
print $hash{$key} . "\n";
}
the list might come out as,
0
0001
1000
203
23
Instead of
0
0001
23
203
1000
A: foreach my $key (sort { $a <=> $b} keys %hash) {
pri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to create vertical seperator between controls on an outlook command bar? I am creating an outlook 2003 addin which adds some dropdown and button on each mail item opened.I have created a command bar and have added the controls to that command bar . But if i look at the standard tool bar on mail message, each but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: flex 3 and acessing remote java objects im just starting to learn flex and im trying to understand how Flex does remoting? From what i have read it looks like Flex provides a LifeCycle data services war which sits on your server and intercepts your remote calls , is this close?
Im concerned that if i use this option... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the size of a boolean variable in Java? Can any one tell the bit size of boolean in Java?
A: I read that Java reserves one byte for a boolean datatype, but it uses only one bit.
However, the documentation says that "its "size" isn't something that's precisely defined".
See here.
A: It's virtual machine de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Silverlight button style how to prevent the focused state when the button is pressed? In my custom button I need to show that it had focus(provides some tactile feel to tabbing to the button) and show that its pressed but what I have found is my focused state is displaying rather then my pressed state. How can I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to iterate over a list repeating each element in Python I'm using Python to infinitely iterate over a list, repeating each element in the list a number of times. For example given the list:
l = [1, 2, 3, 4]
I would like to output each element two times and then repeat the cycle:
1, 1, 2, 2, 3, 3, 4, 4, 1, 1, 2,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Mapping of strings to integers What is the easiest way in Java to map strings (Java String) to (positive) integers (Java int), so that
*
*equal strings map to equal integers, and
*different strings map to different integers?
So, similar to hashCode() but different strings are required to produce different inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do you do *integer* exponentiation in C#? The built-in Math.Pow() function in .NET raises a double base to a double exponent and returns a double result.
What's the best way to do the same with integers?
Added: It seems that one can just cast Math.Pow() result to (int), but will this always produce the correct n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: Repairing fstab (read only /) I had a typo in my fstab and it boots to a commandline but is readonly, I know what the error is but i can't change it because it's mounted as readonly. I want to mount the filesystem and make the changes. I know I can boot a live distro and edit it that way, but i was wondering if ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Converting MySql DateTime type into something more friendly I have a Java web app that reads a MySql db and returns DateTime fields. What is the best way to convert the DateTime fields returned in the resultset into something more readable?
Currently the DateTime fields print as:
2008-12-14 16:30:00
but I would lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you apply 'or' to all values of a list in Python? How do you apply 'or' to all values of a list in Python? I'm thinking something like:
or([True, True, False])
or if it was possible:
reduce(or, [True, True, False])
A: No one has mentioned it, but "or" is available as a function in the operator module:
from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: JSON encode MySQL results How do I use the json_encode() function with MySQL query results? Do I need to iterate through the rows or can I just apply it to the entire results object?
A: if ($result->num_rows > 0) {
# code...
$arr = [];
$inc = 0;
while ($row = $result->fetch_assoc()) {
# code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "326"
} |
Q: Get specific lines from a text file I am working on a UNIX box, and trying to run an application, which gives some debug logs to the standard output. I have redirected this output to a log file, but now wish to get the lines where the error is being shown.
My problem here is that a simple
cat output.log | grep FAIL
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Looking for advice on a "related videos" query on a tagged video system Well I run a small video website and on the actual video page there is a strip of "related videos" similar to most video sides (e.g. YouTube) and currently all I'm doing is taking one of its tags randomly and finding other videos with the same t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: how to show highlighting arrows like in Coderush I am programming winforms using c# and vb.net.
I love the arrows used in coderush.
for those who have not seen coderush arrows ,please see this image.
(source: aspnetpro.com)
http://www.aspnetpro.com/productreviews/2004/08/asp200408bn_p/asp200408bn_p_image002.jpg
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Nant on Windows Vista 64 I was wondering if anyone has successfully ran Nant on Windows Vista 64 bit version. It keeps failing with
set-props:
[sysinfo] Setting system information properties under sys.*
BUILD FAILED
Property name 'sys.env.CommonProgramFiles(x86)' is invalid.
A: Yes, it works. NAnt is by default bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Acceptable website navigation methods? In the past I have created websites with navigation that is aided by php $_GET variables. There was a layout that was implemented, and then content that was included based on the variable passed into the URL.
I am now creating a website without any server-side help. I am wonder... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: consume a asp.net web service that returns json from an stand alone html page I've developed a web service in asp.net and am able to test it from an in-project aspx page and can readily display the information that was returned in JSON format.
I now need to consume the web service from a stand-alone html page.
Does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Globalizing source code I'm running an open source project and every now and then Chinese users report build errors due to unrecognized escape sequences .cs and .js files. When they paste the files as they see them I notice that the Latin characters are changed into Chinese.
I'm using Visual Studio and when I look a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you loop through currently loaded assemblies? I've got a "diagnostics" page in my ASP.NET application which does things like verify the database connection(s), display the current appSettings and ConnectionStrings, etc. A section of this page displays the Assembly versions of important types used throughout,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: Creating App Store Distribution Certificate - What to enter in Common Name field? When creating the app store distribution certificate in the certificate assistant, do I enter my name in the Common Name field, or the company name?
This page says, "In the Common Name field enter your Company/Organization/Department n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Generics: What's a "CONSTRUCTOR constraint"? I made a custom TObjectList descendant designed to hold subclasses of a base object class. It looks something like this:
interface
TMyDataList<T: TBaseDatafile> = class(TObjectList<TBaseDatafile>)
public
constructor Create;
procedure upload(db: TDataSet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is JSON and what is it used for? I've looked on Wikipedia and Googled it and read the official documentation, but I still haven't got to the point where I really understand what JSON is, and why I'd use it.
I have been building applications using PHP, MySQL and JavaScript / HTML for a while, and if JSON can do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "564"
} |
Q: Can I reduce the computational complexity of this? Well, I have this bit of code that is slowing down the program hugely because it is linear complexity but called a lot of times making the program quadratic complexity. If possible I would like to reduce its computational complexity but otherwise I'll just optimize ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Compressing XML in WebPage I transfer a fair amount of XML from the server to the client, in my application (250K-500K each time).
How can I compress it on the server, and decompress it on the client using standard JavaScript? Is it possible?
A: First, a scolding and possible workarounds. Second, a possible crazy s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Developing Serverless Lan Chat Program Help! I want to develop simple Serverless LAN Chat program just for fun. How can I do this ? What type Architecture should I use?
Last year I have worked on TCP,UDP Client/ Server application Project.It was simple (Server listens to certain port/socket and Client connect to se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Url for cities/regions/countries in Rails What do you recommend for displaying URLs and handling views in Rails for cities, regions, countries?
i.e:
/us/ca/San-Fransisco
/countries/us/regions/ca/cities/San-Fransisco
Should be able to:
List all countries, list all regions within country and list all cities within a r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Slow methods calls Are methods calls really so slow or is there something wrong in my computer?
static void Main(string[] args) {
Stopwatch sw = new Stopwatch(); sw.Start();
for (int i = 0; i < 10000000; i++) {
double z = Math.Pow(i,2);
}
Console.WriteLine(sw.ElapsedMilliseconds);
sw = S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 104, 'Connection reset by peer' socket error, or When does closing a socket result in a RST rather than FIN? We're developing a Python web service and a client web site in parallel. When we make an HTTP request from the client to the service, one call consistently raises a socket.error in socket.py, in read:
(104, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Toggle whichever element is clicked I am using the toggle() with jQuery and I have a sidebar on my page and each header is
<h2 class="sidebar-header">
One section of my code will look like:
<div class="sidebar-section">
<h2 class="sidebar-header">SUBSCRIBE</h2>
<p class="sidebar">Make sure y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OK Programming language from USB stick with no installation I'm looking for a compiler or interpreter for a language with basic math support and File IO which can be executed directly from a memorystick in either Linux or Windows. Built in functionality for basic datastructures and sorting/searching would be a plus.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Django objects.filter, how "expensive" would this be? I am trying to make a search view in Django. It is a search form with freetext input + some options to select, so that you can filter on years and so on. This is some of the code I have in the view so far, the part that does the filtering. And I would like some i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting a DataSet from an SQL Express Server C# How can I get a DataSet with all the data from a SQL Express server using C#?
Thanks
edit: To clarify, I do want all the data from every table. The reason for this, is that it is a relatively small database. Previously I'd been storing all three tables in an XML file u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VMware VIX API FindItems() method never returns when querying for registered VMs I am using VMware Workstation 6.5 on Windows Vista x64.
I am trying to write some C# code that uses VMware Vix v1.6.1 COM API to get a list of registered virtual machines.
The code I am using is as follows:
using System;
using VixCOM;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MustOverride Properties with mixed access level Get / Set Visual Basic allows for properties with mixed access levels, for example
Public Property Name() as String
Get
End Get
Friend Set(ByVal value As String)
End Set
End Property
Is there a way to define a MustOverride property with mixed getter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PHP function to get Facebook status? I'm looking for a good, simple PHP function to get my latest Facebook status updates. Anyone know of one?
Thanks!
EDIT: I've added a half-solution below.
Or if anyone knows a good way to read in the RSS feed and spit out the recent status update?
A: A quick check on PEAR found ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Need to re-format phone number entries in a PHP Formmail script I have a simple text field for "Phone Number" in a contact form on a client's website. The formmail script returns whatever the user types into the field. For example, they'll receive "000-000-0000", "0000000000", (000) 000-000, etc. The client would li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Increase file upload size limit in iis6 Is there any other place besides the metabase.xml file where the file upload size can be modified?
I am currently running a staging server with IIS6 and it is setup to allow uploading of files up to 20mb. This works perfectly fine. I have a new production server where I am t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Oracle SQL DATE conversion problem using iBATIS via Java JDBC I'm currently wrestling with an Oracle SQL DATE conversion problem using iBATIS from Java.
Am using the Oracle JDBC thin driver ojdbc14 version 10.2.0.4.0. iBATIS version 2.3.2. Java 1.6.0_10-rc2-b32.
The problem revolves around a column of DATE type that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to minimize code area in Eclipse? There is a nice feature in Visual Studio: you can create special code areas which can be minimized just as class methods in Eclipse are minimized. Like:
#region
//some code
#endregion
Is there a way do make such pleasant feature in Eclipse?
A: Click on ' - (minus)' symbol on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Why is Google's "face recognition" feature available only in Picasa WEB and not Picasa for the PC? I friend asked me this today.
Picasa Web has a cool (and frightening :-) feature where it will recognize all the faces in your photo album.
But the PC (desktop) version doesn't have this.
Several reasons I can think of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why can't I connect to postgres from Perl? I believe i have set up Pg properly, but my script doesn't seem to be connecting to the database. I am testing with:
$database="networkem";
$user="postgres";
$password="";
$host="localhost";
$dbh = DBI->connect("DBI:Pg:dbname=$dbname;host=$host", $user, $password);
My pg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Recommend color picker utility with support for Delphi color codes I'm looking for a free color picking application with support for Delphi color codes.
- Something like the ColorPic would be perfect. (ColorPic colour codes aren't compatible with Delphi)
- Support for color sets would be a bonus.
Please let me know... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best approach to Windows Forms rolling log output in TextBox In a Forms application I'm displaying log output from a long running command-line application that generated a lot of output. I start the program in the background, and capture its output and currently display it in a TextBox using AppendText. I prefer to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: maven-camel build problem I have a simple application using netbeans for developing and maven for building et all. My application uses camel , spring XML configured. I wanted to build an executable jar with dependencies so i am using the maven-assembly plugin with 'jar-with-deps' descriptor.
The jar is built ok but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSP-based Templating with Spring I'm using Spring's MVC with JSP views. Every JSP page has similar structure - headers, content, footers, perhaps a sidebar, etc. Looking around for "best practices" people seem to "include" footers and headers, but that means that every JSP page includes these "include" statements, g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: mySQL stored procedure where clause problem I've got a mySql stored procedure that looks like this--
delimiter |
create procedure GetEmployeeById(in ID varchar(45))
begin
select id,
firstName,
lastName,
phone,
address1,
address2,
city,
state,
zip,
username,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Question about the Java Garbage Collector, nulls and memory leaking Suppose I'm implementing a queue in java and I have a reference to the initial node, called ini and another to the last one, called last. Now, I start inserting objects into the queue. At one point, I decide I want an operation to clear the queue. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Change default printer based on location I would like to write a VBScript to change the default printer, based on which printer is connected.
I have a laptop that I use at work and at home, and I would like to run this script when starting windows so the default printer is always the correct one.
If there is ano... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: F# open source projects I'm looking for some open source F# projects to learn from.
Something not snippets but full projects that are good representatives of F# features (i.e. pattern matching, discriminated unions, etc).
My objective are mainly to see how all the features fit together, how the project is organized... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Private method naming convention Is there a convention for naming the private method that I have called "_Add" here? I am not a fan of the leading underscore but it is what one of my teammates suggests.
public Vector Add(Vector vector) {
// check vector for null, and compare Length to vector.Length
return _A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Why is this property not getting set? I'm having trouble trying to set the value of a property after i cast it. I'm not sure if this is called boxing.
Anyways, the new variable is getting set, but the original is not. I thought the new variable is just a reference to the original. But when i check the intellisence/d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Looking for some good books/resources on understanding Bittorrent? Looking for some good books or technical resources for a detailed understanding of how Bittorrent works? It would probably involve books on Network programming, P2P programming, and other topics.
A: The first place to look would probably be BitTorr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Zend_Pdf - Text On Top of Shapes? Is it possible to draw text over top of a drawn shape with Zend_Pdf? No matter what order I execute the draw statements, the shape is always on top of my text.
A: Draw images first, save, then load document and draw text.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/383874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript RIA vs .NET GUI I am looking at moving my company's internal business app from VB.NET to PHP. Some of the people were worried about losing GUI features that can be found in .NET. I am under the impression that with the right javascript framework, anything in .NET GUI can be replicated.
While I am still re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the easiest alternative to a generic array in Java? Suppose I have this:
class test<T>
{
private T[] elements;
private int size;
public test(int size)
{
this.size = size;
elements = new T[this.size];
}
}
It seems this isn't possible because the compiler doesn't know what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Database Abstraction in a Reporting Application In a reporting application, Is it possible to abstract reporting logic and the database schema details?
I have a Reporting Services application with a reasonably complex reporting logic, I am trying to migrate the application to some other databases. (Databases that a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Correct way to write lists This is something I've pondered over for a while, as I've seen both used in practise.
Method 1
<ol>
<li>List item 1</li>
<li>List item 2
<ol>
<li>List item 3</li>
</ol>
</li>
<li>List item 4</li>
</ol>
This seems semantically correct to me, sinc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is this an inefficent use of casting? this question is an extension to a previous question i asked (and was answered). I'm refactoring my code an playing around with / experimenting with various refactored solutions.
One of the solutions i came up with (but wasn't happy with .. remember, i'm just experimenting with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Checking existence before inserting via Linq to SQL I'd like to know if there's an easier way to batch insert a set of records if they don't already exist in a table. For example I have a Tags table in the database having ID, Name columns - given a list of tag names I want to add only those that are not already pres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Emacs equivalent of Vim's command history (for typed in Meta-x commands) Question: For typed in commands invoked via M-x I am having difficulty understanding how Emacs allows recalling and rerunning the commands. The command-history works quite differently from Vim. It puts the commands in a buffer rather than the "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best library for Java to grid/cluster-enable your application? This is the ability to run your application on a cluster of servers with the intent to distribute the load and also provide additional redundancy.
I've seen a presentation for GridGain and I was very impressed with it.
Know of any others?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/383920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.