text stringlengths 8 267k | meta dict |
|---|---|
Q: UI Terminology: Logon vs Login I am crafting an application and cannot decide whether to use the terms Login/out or Logon/off. Is there a more correct option between these two? Should I use something else entirely (like "Sign on/off").
In terms of usability, as long as I am consistent it probably doesn't matter whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "352"
} |
Q: Best way to have event occur n times? I use the following code to create countdowns in Javascript. n is the number of times to repeat, freq is the number of milliseconds to wait before executing, funN is a function to call on each iteration (typically a function that updates part of the DOM) and funDone is the funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Web data grid of Infragistics controls I am working on a web project where I need to use WebDataGrid of Infragistics controls and customise the header layout. I did not find event like InitializeLayout in UltraWebGrid. My problem is that i want to row in header. What do I do?
A: You need to use WebHierarchicalDataG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Subversion usages I am just starting to use "Subversion" with "Tortoise SVN client" for one of my opensource project which is hosted on "Google Code". I would like to get some best practices on using it. I am following the default folder structure(trunk,branch,tag). Following are the questions
*
*When will you do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Provider model and performance Are there any performance implications with using the provider pattern?
Does it rely on reflection for each instantiation or anything?
A: Yes, the provider model usually involves a small amount of reflection, and therefore, there is going to be a little bit of a performance hit, howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Terms new to beginners in c++? What does it mean by POD type?cv-qualified?
A: POD, Plain Old Data, is any C++ type that has an equivalent in C.
cv-qualified type is a type that have been qualified either as a const or volatile.
// non cv_qualified
int one;
char *two;
// cv-qualified
const int three;
volatile c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery: is val() fast enough to use repeatedly or is it better to put the value in a variable If you are doing something like the following:
var i = $('input[@name=some_field]');
if (i.val() != '' && !(i.val() >=1 && i.val() <= 36) || i.val() == 'OT')) {
i.focus();
}
is i.val() fast enough to use it multiple t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: In Java, why do people prepend fields with `this`? When referencing class variables, why do people prepend it with this? I'm not talking about the case when this is used to disambiguate from method parameters, but rather when it seems unnecessary.
Example:
public class Person {
private String name;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Accessing CD/DVD drive for backup from Adobe AIR application Is it possible to burn a CD/DVD from an Adobe AIR app?
How?
I want my application to take some backup on the CD/DVD.
Any other options?
A: While there may be an external library somewhere that can do this, AIR cannot burn CDs or DVDs out of the box. The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GWT resizable panel Is there any way to have a 'Resizable' panel in GWT.
By resizable I mean that if you you drag on the edge of Panel it can be resized accordingly.
A: Figured it out myself, here is an example:
public class DraggablePanel extends VerticalPanel {
private boolean isBeingDragged = false;
priv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why should I avoid multiple inheritance in C++? Is it a good concept to use multiple inheritance or can I do other things instead?
A: Public inheritance is an IS-A relationship, and sometimes a class will be an type of several different classes, and sometimes it's important to reflect this.
"Mixins" are also someti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "180"
} |
Q: How to read GlobalResources in ASP.NET MVC Controller? I can't find a way to read resource values in a controller
A: If you're referring to string resources stored in App_GlobalResources then you can add a
using Resources;
and access them via
Strings.<name of resource>
or use
Resources.Strings.<name of resource>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do the various Javascript optimization projects affect DOM performance? There's a lot of capital C, capital S computer science going into Javascript via the Tracemonkey, Squirrelfish, and V8 projects. Do any of these projects (or others) address the performance of DOM operations, or are they purely Javascript c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Flattening a shallow list in Python Is there a simple way to flatten a list of iterables with a list comprehension, or failing that, what would you all consider to be the best way to flatten a shallow list like this, balancing performance and readability?
I tried to flatten such a list with a nested list comprehensi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "428"
} |
Q: Integration testing an external library? I am using an external library in a java project but I am not sure how can I integration test it with my code.
For example: Let us say I am using a string encryption library to encrypt passwords.
Please enlighten.
Thanks
A: You are probably thinking of integration testing, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Execute process as normal user from MSI (wix) under different context I'm trying to configure an installer for some software we use within the company.
The installer is pushed out to target machines via SMS, and it performs the following steps:
*
*Terminate any currently running instances of the app (the app is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Differences between Visual Studio 2005 and 2008 I would like to find out what is the most significant differences of MS Visual Studio.NET 2005 Pro and MS Visual Studio.NET 2008 Pro? I was given a copy of Visual Studio.NET 2005 Pro as the previous person who used that has left the organisation. Therefore, I am consid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In-place editing, version control - what's your solution? I am using SVN for development tasks, but still have many files managed with RCS, because it does not seem reasonable to edit them in my private SVN repository working copy (since they're often just configuration files that are also best tested in-place). It ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need Lucene query optimization advice Am working on web based Job search application using Lucene.User on my site can search for jobs which are within a radius of 100 miles from say "Boston,MA" or any other location.
Also, I need to show the search results sorted by "relevance"(ie. Score returned by lucene) in desc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: (ASP.NET MVC) Will this make my webapp slow if I use GlobalResources for localization only? I have a multilingual site and I want to use Global resources only, I was wondering if it could cause my site runs slower?
A: I actually made an experience that definitions in Local_Resources are somehow not visible in the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I write a program that can detect by itself that it has been changed? I need to write a small program that can detect that it has been changed. Please give me a suggestion!
Thank you.
A: The short answer is to create a hash or key of the program and have the program encrypt and store that key within itself.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I create a windows service in Delphi? I have been assigned an assignment to create such a service in delphi which will track the logged in user activity on the computer. For this i have to
*
*I want my service to be run in the background and should store the name of every ACTIVE window in particular time ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Most complex WMS mapserver? i'm building a client-side WMS parser (flex/ActionScript 3) & i'd like to test against as complex a WMS mapserver as i can find. can anyone point me to some sites?
thanks.
A: http://www.skylab-mobilesystems.com/en/wms_serverlist.html
http://onearth.jpl.nasa.gov/
You can also easily setup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best analytics offering for iPhone What is the best iPhone analytics offering out there? I've seen Pinchmedia but I'm not sure about it since the default application page says "Last Updated July 2008".
A: Nowadays Pinch Media has been merged into Flurry. Flurry is a decent choice.
A: If this is a quick project 'a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Get current URL with jQuery? I am using jQuery. How do I get the path of the current URL and assign it to a variable?
Example URL:
http://localhost/menuname.de?foo=bar&number=0
A: See purl.js. This will really help and can also be used, depending on jQuery. Use it like this:
$.url().param("yourparam");
A: By... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2026"
} |
Q: How to get to Foreign keys in the ADO.NET entity model? I have 3 tables (and corresponding entities in the entity model)
Game:
Id - primay key
... other columns
Player:
Id - primary key
... other columns
GamePlayer (a player can participate in many games)
GameId --> foreign key from Game
PlayerId --> foreign key fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Compile time in .Net 3.5 I am developing a web application. When I build the application I can see the statement "Build Succeeded" in status bar even the syntax of object declaration is wrong in a aspx.cs file. I cleaned the solution again I tried to rebuild the application. But I did not get any error. If I am addi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I add a file to Subversion that has the same name as a directory that was deleted? A long time ago I had the following directory structure in my SVN repository
trunk/
data/
levels/
1.level
2.level
...
...
...
But I deleted the 'levels' directory lon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Sizing a UILabel to fit? How would one modify the following snippet (in a tableView:cellForRowAtIndexPath: UITableViewController method) from the "09a - PrefsTable" recipe from Chapter 6 of The iPhone Developer's Cookbook:
if (row == 1) {
// Create a big word-wrapped UILabel
cell = [tableView dequeueReusab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Does Team Explorer integrate with VS2005 I have both VS2005 and VS2008 installed on my machine. I was able to install Team Explorer 2008, but could not install Team Explorer 2005 (it kept throwing some error number 2337 which I could not resolve).
Currently, I am having to launch the VS2008 IDE for using source cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Documentation for NSString sizeWithFont:forWidth:lineBreakMode: method (in the iPhone SDK)? I can't find the documentation for the NSString sizeWithFont:forWidth:lineBreakMode: method (see Kevin Ballard's answer to "Sizing a UILabel (in the iPhone SDK) to fit?") in the NSString Class Reference in the iPhone SDK Deve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regular expression to match a line that doesn't contain a word I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?
Input:
hoho
hihi
haha
hede
Code:
grep ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5183"
} |
Q: PostBack beefore Session Check Shouldn't PostBack be checked before Session
protected void Page_Load(object sender, EventArgs e)
{
if (Session["login"] != null && Session["login"].ToString() == "1")
{
if (!IsPostBack)
{
LoadData();
}
}
else
{
Response.R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Split packages in plain java OSGi has a problem with split packages, i.e. same package but hosted in multiple bundles.
Are there any edge cases that split packages might pose problems in plain java (without OSGi) ?
Just curious.
A: For OSGi packages in different bundles are different, regardless of their name, beca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Unable to POST data from IPhone using google account authentication I'm working on an IPhone application that works with a Google App Engine application. I manage to get logged by using a google account and I get the authentication token. I'm also able to GET data from the GAE service (I did it after reading another... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using rake with a non-ruby project A workmate floated the idea of using rake as a build system for a non-ruby project. Is it possible to extend rake to compliment other languages where the autoconf toolset would usually be used?
A: There are examples of this, like buildr, the drop in-replacement for maven (for java... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: LINQ where Clause doubt I have tried one where clause in Linq to get details about Users those who are Active and AllowLogin is also true.
So how can I compare the table values (both are boolean values) with true or false?
A: Just use something like:
var query = from user in context.Users
where user.Act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to store configuration data so that to not copy it during database copy? There are parameters that I would not want to be transferred from production environment to QA system. Staff like network path and url's. The problem is that in ABAP everything is in the database and when the database is copied to the QA sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which versions of Perl are you using? According to the Perl source code page on CPAN, 5.8.9 is now 14 days old, and will be the last 5.8 release. 5.10.0 is over a year old and presumably ready for use in Production.
Leaving aside discussion of Perl 6 for now, can I ask what versions of Perl folks are testing, rollin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to create Editable forms in XPS document (e.g. PDF forms with Textbox controls)? I want to create a Editable form having TextBox control, the form should be able to submit to a web service, which will then parse the document. Is this possible with XPS document?
A: I have been looking into the same question. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to intercept HTTP calls from an application? I want to watch all the HTTP requests going out of a certain application and cancel them if needed.
Is there a way to do this in C#?
A: If you can touch the system's proxy configuration (which is used by many applications) or, if the app doesn't heed that setting, to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET Web Architecture Design The problem I'm having with writing a web application architecture is that I want separate components that work together. By this I simply mean, for example, a navigation bar and the actual page content (as well as a header, which is static) in ASP.NET.
Now, here's where it gets inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Entity objects getters and setters for data properties I recently started working in Java and was introduced to the wild and crazy world of getters and setters for everything. I hated it at first, but quickly got used to it. Too used to it.
I have been spending a lot of time lately thinking more about class design. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there anything I should worry about when using nullable types in .Net 2.0? C# 2.0 gives me access to nullable types. This seems very convenient when I want the DateTime variable in the database to be null. Is there anything I should worry about when using nullable types or can I go overboard and make every type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: LEFT JOIN vs. LEFT OUTER JOIN in SQL Server What is the difference between LEFT JOIN and LEFT OUTER JOIN?
A: Left Join and Left Outer Join are one and the same. The former is the shorthand for the latter. The same can be said about the Right Join and Right Outer Join relationship. The demonstration will illustra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2017"
} |
Q: .NET and Oracle: Joining a table to an empty set of another table I am trying to join tableA with some data to an empty set of another tableB. The main purpose is to get all the columns of tableB. I do not need any data of tableB.
I have constucted the following SQL:
SELECT uar.*, s.screen_id, s.screen_name
FROM crs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Polygon Triangulation with Holes I am looking for an algorithm or library (better) to break down a polygon into triangles. I will be using these triangles in a Direct3D application. What are the best available options?
Here is what I have found so far:
*
*Ben Discoe's notes
*FIST: Fast Industrial-Strength Triang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Is it possible to add many-to-many relationship without initialize collection in NHibernate? Here is my class:
public class User
{
public int Id { get; set; }
public string Name { get; set; }
public ISet<User> Friends { get; set; }
}
Here is my mapping:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C++ Accessing the Heap This problem involved me not knowing enough of C++. I am trying to access a specific value that I had placed in the Heap, but I'm unsure of how to access it. In my problem, I had placed a value in a heap from a data member function in an object, and I am trying to access it in another data mem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to pass data from Javascript to PHP and vice versa? How do I pass have a Javascript script request a PHP page and pass data to it? How do I then have the PHP script pass data back to the Javascript script?
client.js:
data = {tohex: 4919, sum: [1, 3, 5]};
// how would this script pass data to server.php and acces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is there a wiki like that on Google Code Hosting that commits every change in the subversion repository? I used the wiki in a project hosted at Google Code. With this wiki all the changes you make with the web interface are committed in the subversion repository of the project.
For example, if you create the Example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problems with home-brew web crawler I have built a webcrawler in C++. I am using an API called URLdownloadToFile().
*
*Is there any other API that can be used?
*The API URLdownloadToFile() is working well for some URLs and it is not working well for some other URLs? Please suggest some ways I can overcome this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: T-SQL: Convert '0110' to 6 Is there any good way convert a binary (base 2) strings to integers in T-SQL (if not I guess I can write a function...)
'0110' => 6 etc.
A: Do you know that the strings will always be a particular length? If so you could hard-code a bunch of Substring/convert-to-int/multiply steps. It wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problems with Matlab javabuilder and memory I'm experiencing some issues regarding my javabuilder-compiled matlab-code. My application is basically split up like this:
*
*GUI: Java
*Calculations: Matlab
The main problem is that when compiling my matlab-code with the javabuilder in Matlab (R17, 2007a), I have l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Database Security How to protect a SQL Server database from viewing others?
A: Maybe (I cannot be sure) what you are looking for is how to configure the server securely.
Here's a good resource that explains it all for SQL Server 2000, look for "SQL Server 2000 Security" in this page:
http://www.databasejournal.com/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Floating Point Limitations My code:
a = '2.3'
I wanted to display a as a floating point value.
Since a is a string, I tried:
float(a)
The result I got was :
2.2999999999999998
I want a solution for this problem. Please, kindly help me.
I was following this tutorial.
A: This is not a drawback of python, rather, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Add New Column in Infragistics Wingrid I am using Infragistics wingrid in my application. I have assigned a datasource to my wingrid. Now i want to add a new column at a specific location.
Can any one please tell me how can this be performed?
Regards, Savan.
A: Greetings,
I would add the new column to your datasou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Handling unhandled exceptions problem I wanted to set some handler for all the unexpected exceptions that I might not have caught inside my code. In Program.Main() I used the following code:
AppDomain.CurrentDomain.UnhandledException
+= new UnhandledExceptionEventHandler(ErrorHandler.HandleException);
But it di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Automatically adding .Net code comments Where can I find a Visual Studio plug-in that automatically generates documentation header for methods and properties?
Example the comment to a property could look like this:
/// <summary>
/// Gets or sets the value of message
/// </summary>
public static string Message ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to send SMS from ASP.NET application by way of a GSM modem If GSM modem has to be used to send SMS, then what are the hardware and software requirements to setup the entire thing?
A: You need a GSM modem (mobile handset or similar) attached to the server.
Typically, SMS can be sent by using AT commands on the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ActiveX component can not create object We changed the function name “aaa” into bbb in vbexample.dll, and registered into VB application. After registering it is getting executed in my local PC. After that when I generated a build of that VB application and tested it in another PC, it is not working. The Message I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I add a prefix to all filenames under a directory? I am trying to prefix a string (reference_) to the names of all the *.bmp files in all the directories as well sub-directories. The first time we run the silk script, it will create directories as well subdirectories, and under each subdirectory it will stor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is menu link suppression a responsibility of the view or the controller? In ASP.NET MVC, I am building a site with the requirement that the main menu (appearing on every page) should remove the hyperlink for an entry (leaving just the text) if the current page is the one linked to.
The menu html is defined in the ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add bottom padding to a div that contains floating divs? I have a div that contains other floating divs:
<div id="parent">
<div style="float:left;">text</div>
<div style="float:left;">text</div>
<div style="float:right;">text</div>
</div>
How can I add bottom padding to the parent div and make it work i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I correct an implicit conversion error in BST C# Code? I wrote this code
I have these errors
Cannot implicitly convert type x.Program.TreeNode' to 'int' // on findmin
Cannot implicitly convert type x.Program.TreeNode' to 'int' // on findmax
and is my main correct or missing somethin?
and how i can count the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best Gnome alternative to UltraEdit? As I'm switching from Windows to Ubuntu/Gnome, I'm looking for an alternative to UltraEdit.
I tried a few tools, but they often lack some really useful features, such as:
*
*Syntax coloration
*FTP editing of files (access files on a FTP without using an external application)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Download PDF through browser authentication with javascript I understand that I can do browser authentication with Javascript, and then grab, say, an XML file with that javascript. My use case is a bit different though: There's a link on a webpage to a PDF on a different server. That server does browser authenticati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Monit Daemon: Apache-Status connection failure I'm setting up a cluster of servers for the company I work at, and I'm using Monit to monitor that all server processes are running and working as they should.
For Apache monitoring, I wanna use the mod_status feature which is explained here. However, this has turned ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Logical Languages - Prolog or Lisp/Smalltalk or something else? So, I am writing some sort of a statistics program (actually I am redesigning it to something more elegant) and I thought I should use a language that was created for that kind of stuff (dealing with huge data of stats, connections between them and some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Visual Studio HTML editor curly bracket annoyance Does any one know of a way to control how Visual Studio handles curly braces in Html view?
Type...
<% if (true) { %>
Then
<% { %>
And visual studio will auto format it as such.
<% if (true)
{ %>
<% } %>
Not a major issue but nest a few of these using foreac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: If else if or Switch case Which one is better when performance is taken into consideration an
if else if or switch case
Duplicate: Is there any significant difference between using if/else and switch-case in C#?
A: For both readability and sense use a switch statement instead of loads of IF statements.
The switch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Refactoring Fibonacci Algorithm I haven't used a statically typed language in many years and have set myself the task of getting up to speed with C#. I'm using my usual trick of following the fifteen exercises here http://www.jobsnake.com/seek/articles/index.cgi?openarticle&8533 as my first task.
I've just finished ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Are there some projects that rate RPG source? like software metrics? I just wanted to know if you know of some projects that can help to decide whether the analyzed Source it is good code or bad RPG code.
I'm thinking on the terms of Software metric, McCabe Cyclomatic Number and all those things.
I know that th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best UI Framework for WinForms? Can someone suggest a good UI framework for WinForms development? What I'm looking for is something that is fairly mature (=bug-free), renders well and quickly, and does not bloat my program with 10Mb assemblies.
A: Me and my team all use Telerik. The result is a stunningly good look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I fetch all methods from a given namespace? I want all the Method-ClassName from namespace
like i have system.windows.Forms
wehen in visual studio we rigt system.windows.Forms. it will suggest box of all the related method,class,enum extra
i need to fetch the same ,how can i do that in C#
A: For a start, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BEFORE or AFTER trigger for maintaining audit log I've been reading the MySql 5.0 comment stream on the create trigger page
and I would like to ask the community if the recommendations are good & whether they still apply to 5.1. What I've noticed playing with triggers today is that it is impossible to update a fiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: validation in text boxes using datepicker I have three textboxes,
box1-filled by user1
box2-filled by user2
box3-filled by user3
I have also a default value for these three boxes.
1.Now when box1 is selected user1 cannot input dates before the default date and it should not be allowed to select dates more than in bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does my Ajax request go directly from state 1 to 4? I am making a request to a CGI program using AJAX. The response sends me content-length. My purpose is to dynamically exhibit the response progress. For that I need to start a function on onreadystate value of XHR object to be 3. But the request doesn't seems t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best practices for implementing models in the MVC pattern What are the best practices for implementing models in the MVC pattern. Specifically, if I have "Users" do I need to implement 2 classes. One to manage all the users and one to manage a single user. So something like "Users" and "User"?
I'm writing a Zend Fra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to read ISBN from eBooks on CHM or PDF files I'm doing a database for storing my eBook collection.
Most of them have the ISBN within the text of the book itself.
How can I access this contents?
Is there any sourcecode or DLLs for doing that?
A: I did it for eBook library app. First of all you need to extract te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Array slices in C# How do you do it? Given a byte array:
byte[] foo = new byte[4096];
How would I get the first x bytes of the array as a separate array? (Specifically, I need it as an IEnumerable<byte>)
This is for working with Sockets. I figure the easiest way would be array slicing, similar to Perls syntax:
@bar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "298"
} |
Q: C# external tool for SSMS - Reading from stdin I am trying to write an app that makes use of the external tools functionality of SQL Server Management Studio.
To specify an external tool, you can enter a path to the app and specify some arguments to pass to the app via STDIN.
Currently I just have a form that displa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the simplest way to format a .NET DateTime according to YYYYMMDD or the like? I have a DateTime class and wish to display it according to some format... in this case, I specifically want to format it as YYYYMMDD format.
What's the best C#/.NET API function for doing this?
A: ToString(format)? i.e.
string s =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Floated block-level element: is it necessary to set the width, if yes, how? Say I have textboxes, dropdownlists and submit buttons. They are all inline-elements. Which means that "officially" margin, padding, width and height properties should be ignored (in practice not really). If I were to go the right way to set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET MVC Beta upgrade with ajax form I got this ajax form in a ASP.NET MVC beta application :
<%using (this.Ajax.BeginForm("Edit", "Subscriber",
new AjaxOptions { OnSuccess = "onEditResult", HttpMethod = "GET" }))
{%>
<%=Html.Hidden("idSub", p.Id.ToString())%>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Measuring the performance of classification algorithm I've got a classification problem in my hand, which I'd like to address with a machine learning algorithm ( Bayes, or Markovian probably, the question is independent on the classifier to be used). Given a number of training instances, I'm looking for a way to mea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Divide by zero error in stored procedure Hi i executed the following stored procedure in .net web application. Then run the application. I got this error
" Divide By zero error "
Stored procedure:
CREATE procedure Details(@Stringtext varchar(8000),@SearchStringtext varchar(100))
as begin
SELECT ({fn LENGTH(@Stringte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with WPF Data Binding Defined in Code Not Updating UI Elements I need to define new UI Elements as well as data binding in code because they will be implemented after run-time. Here is a simplified version of what I am trying to do.
Data Model:
public class AddressBook : INotifyPropertyChanged
{
private ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Which dependency should be added in pom file to import org.apache.tiles.controller? Which dependency should be added in pom file to import org.apache.tiles.controller?
A: org.apache.struts.tiles.Controller is an interface in Struts Tiles 1.x, which you can find in the maven artifact "org.apache.struts:struts-tiles"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I retrieve application parameters without passing ServletContext object around? I have defined several application parameters for my webapp in the web.xml file, as follows:
<context-param>
<param-name>smtpHost</param-name>
<param-value>smtp.gmail.com</param-value>
</context-param>
If I have a Servl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ICallbackEventHandler and ViewState Does anyone know if viewstate is available when using ICallbackEventHandler?
If not is there any work around to get it?
Thanks.
A: ViewState is available to be read, but you cannot update it.
You might wanna check this out for idea of a workaround: http://www.reimers.dk/blogs/jac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best practices in db design when I want to store a value that is either selected from a dropdown list or user-entered? I am trying to find the best way to design the database in order to allow the following scenario:
*
*The user is presented with a dropdown list of Universities (for example)
*The use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to access the context object as an array in PageMethods callback I cannot seem to access the context object using a loop context is set: var context = [id1, id2, id3];
This callback function works:
function OnChangeSucceeded(result, context, methodName) {
document.getElementById(context[0]).disabled = result... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UML class diagram association - how, when and why? I usually get so confused with UML and this situation is no different.
Let's say I have an interface IAnimal, class Food and Cat:
interface IAnimal {
void Feed(Food food);
}
class Cat : IAnimal {
void Feed(Food food) {
//code
}
}
I've got 3 que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Linux Write Something on multiple files I have a file "atest.txt" that have some text..
I want to print this text at files "asdasd.txt asgfaya.txt asdjfusfdgh.txt asyeiuyhavujh.txt"
This files is not exist on my server..
I'm running Debian.. What can i do?
A: Use the tee(1) command, which duplicates its standard in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you set up your virtual machines? Recently the buzz of virtualization has reached my workplace where developers trying out virtual machines on their computers. Earlier I've been hearing from several different developers about setting up virtual machine in their desktop computers for sake of keeping their deve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Php/ MySql 'Advanced Search' Page I'm working on an 'advanced search' page on a site where you would enter a keyword such as 'I like apples' and it can search the database using the following options:
Find : With all the words, With the
exact phrase , With at least one of
the words, Without the words
I can tak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: WPF design rendering is dramaticaly slow Visual Studio 2008? Are there any tweaks that could speed it up? I just wanted to do some tutorials in WPF but I find that the designer works very slow in comparision to Windows Forms/GDI+.
Are there any tweaks to speed it up?
A: If you're just after a bit of XAML editing, y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the advantages of using elements over ? Is there any advantage of using div elements instead of tables in HTML page design?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/406605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ Copy Constructors I recently wrote a piece of code which did
SomeClass someObject;
mysqlpp::StoreQueryResult result = someObject.getResult();
where SomeClass::getResult() looks like:
mysqlpp::StoreQueryResult SomeClass::getResult()
{
mysqlpp::StoreQueryResult res = ...<something>...;
return res;
}
Now, using t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/406613",
"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.