text stringlengths 8 267k | meta dict |
|---|---|
Q: System.Net's Webclient in C# won't connect to server Is there something I need to do to get System.Net working with Microsoft Visual C# 2008 Express Edition? I can't seem to get any web type controls or classes to work at all.. the below WebClient example always throws the exception "Unable to connect to the remote ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Iphone development resources I've started to play with the IPhone SDK. What are the best resources to get started? (books, tutorials, blogs?)
A: You can find answers to a similar question here on StackOverflow:
Howto articles for iPhone development, Objective C
A: Use Apple iPhone developer site:
http://developer.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Materials for SICP with python? I want to try out SICP with Python.
Can any one point to materials (video.article...) that teaches Structure and Interpretation of Computer Programs in python.
Currently learning from SICP videos of Abelson, Sussman, and Sussman.
A: A direct translation of SICP in Python would make n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why do the records get deleted in an access database when I open the file in access? I'm developing a simple database app in visual studio (c# for Windows) using an access backend.
That's all fine until I try to open the database file from within access, when all the reocords get deleted.
Could anyone explain why th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need a time management solution I'm looking for a pc app that runs in the background and collates simple information about applications im running. Hopefully including the opened project (whereby visual studio includes the title of the project in the window title).
Also if it could include periods of inactivity that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lazyweb: Need javascript that removes li elements based on visited class of a element I've got this page which has a lot of data I don't need, as I've already clicked on it, but it repeats often so I have to visually look for blue. I realized this could be more efficient, and asked a CSS friend if I could set the e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple jQuery task failing: hide child elements of tag There has to be a simple explanation for this.
I have a parent <div> tag containing a number of child divs that need to be hidden depending on their class. Problem is, I can't even seem to get a handle to my parent div. What on earth is the problem here? I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I call an executable to run on a separate machine within a program on my own machine (win xp)? My objective is to write a program which will call another executable on a separate computer(all with win xp) with parameters determined at run-time, then repeat for several more computers, and then collect the res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the implications of performing a shallow copy on an array in order to resize it? If my understanding of deep and shallow copying is correct my question is an impossible one.
If you have an array (a[10]) and perform a shallow copy (b[20]) wouldn't this be impossible as the data in b wouldn't be contiguous?
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to avoid an open Silverlight ComboBox DropDown to be on top of everything I have a ComboBox which I managed to keep its DropDown open after LostFocus. It's populated with a number of CheckBoxes. Whenever the user toggles one of these CheckBoxes, the whole application is updated by calling a DataService. During t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reflect relationship beween subclasses in XML How can i define relationship between subclasses in XML, for example a class researcher has two subclass Paper and author .
A: Normally you would be using an XML schema to describe relationships in an XML file. But I seriously doubt you should make a model where ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Serving large files with PHP So I am trying to serve large files via a PHP script, they are not in a web accessible directory, so this is the best way I can figure to provide access to them.
The only way I could think of off the bat to serve this file is by loading it into memory (fopen, fread, ect.), setting the he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: SugarCRM: Deprecated SOAP API calls? Is it true that most of the web methods available in SugarCRM's SOAP API are now deprecated and replaced by set_entry() and get_entry() ?
For example, if I want to create a new lead should I use create_lead() or should I stick to set_entry() on "Leads" instead?
A: Not exactly, v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Preventing to execute a JavaScript function more than once I am using JavaScript, jQuery and PHP. How do I limit the JavaScript function to execute once?
My MainJQuery file has Ajax. display.php execute for a while:
....
$.ajax({
type:'POST',
url: 'display.php',
data:'id='+id ,
success: function(da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: The same script using two js files? I admit, I don't know too much about javascript, mostly I just "steal and modify" from Javascript.com and Dynamic Drive.
I've run across a few scripts that call two .js files
<script type="text/javascript" src="lib/prototype.js">
</script>
<script type="text/javascript" src="s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you maximize server performance? I have been trying to get my head around to understanding performance and scalability and would like to know what developers/sysadmins are doing to juice their systems. To standardize the answers, it would help if you could take your best shot at responding to any of the follo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to check password before decrypting data I am creating a program that needs to store the user's data in encrypted form. The user enters a password before encryption and is required to supply the password again to retrieve the data. Decryption takes a while if there is a lot of data.
Now, I want to check that the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the difference between fill_parent and wrap_content? In Android, when layout out widgets, what's the difference between fill_parent (match_parent in API Level 8 and higher) and wrap_content?
Is there any documentation where you can point to? I'm interested in understanding it very well.
A: fill_parent (depre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "294"
} |
Q: Free streaming server for Voip server I need an open-source application which streams on demand (RTSP?) the prerecorded files. It should support all major codecs (G.711,g729...), and must be reasonably efficient.
Up until now Ive found only VLAN player suitable for this task. Any advice?
A: Well, I have an asterisk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS fixed repeated background problem I'm designing a site with a fixed repeated background but can't work out why it has one problem.
If you load the site in a small window, then scroll right, the background doesn't carry on and the background colour show's instead.
Any ideas?
Site is: http://new.focalpix.co.uk/
CS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to assign a new class attribute via __dict__? I want to assign a class attribute via a string object - but how?
Example:
class test(object):
pass
a = test()
test.value = 5
a.value
# -> 5
test.__dict__['value']
# -> 5
# BUT:
attr_name = 'next_value'
test.__dict__[attr_name] = 10
# -> 'dictproxy' object does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: iPhone - UIViewController not rotating when device orientation changes I have got my own custom UIViewController, which contains a UIScrollView with an UIImageView as it's subview. I would like to make the image to auto rotate when device orientation changes, but it doesn't seem to be working...
In the header file,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Fluent NHibernate question Let's say you have two tables, "Users" and "UserRoles". Here's how the two tables are structured (table - columns):
Users - UserID (int)
UserRoles - UserID (int), Role (string)
What I want is for my "User" class in my domain to have an IList of roles. How do I construct my Fluent NHibern... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why does contentEditable element reject the Enter key? I'm using an application that embeds IE control to show content. I change that content to contain a <div contentEditable="True">Hello World</div> element. This works well and I can edit the content of this div, but pressing Enter is rejected with a beep.
When I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Java: How do you style Swing components? I'm writing my first Java project.
I was wondering if it's possible to style the Swing components (set a background color, remove the borders from the buttons, etc.)
A: If it's as simple as just changing the font, the background, the borders etc. Swing can do all these by de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: save check box name and value into a table please i need come help i have a form of check boxes i want to save the name and value of the boxes that registered user selects into a table ,now i have registered users information saved in a table ,how the table that saves the registered users selection is to be created... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is a matched substring returning "undefined" in JavaScript? I came across a strange behaviour when doing some regular expressions in JavaScript today (Firefox 3 on Windows Vista).
var str = "format_%A";
var format = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(str);
console.log(format); // ["format_%A", "%A"]
console... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C# Distinct on IEnumerable with custom IEqualityComparer Here's what I'm trying to do. I'm querying an XML file using LINQ to XML, which gives me an IEnumerable<T> object, where T is my "Village" class, filled with the results of this query. Some results are duplicated, so I would like to perform a Distinct() on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: What is the different between API functions AllocConsole and AttachConsole(-1)? Could you please explain me, what is the different between API functions AllocConsole and AttachConsole(-1) ? I mean if AttachConsole gets ATTACH_PARENT_PROCESS(DWORD)-1.
A: I don't think there's a function called CreateConsole, but the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can I start with a string and instantiate an object of that string? I am currently working with LINQ and C#.
I have a DropDownList of the tables in my LINQ to SQL model.
I want the user to be able to select a LINQ table name from the DropDown. In code I want to create an instance of that LINQ class and then run a Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you ensure that you as programmer have written quality C code? I m looking to write some quality C code.
Can someone point me to some articles , websites..whatever
I need something with examples.
I have already seen and read K&R C book.
But times have changed, some one must have more to say on quality C Code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you get the logical xor of two variables in Python? How do you get the logical xor of two variables in Python?
For example, I have two variables that I expect to be strings. I want to test that only one of them contains a True value (is not None or the empty string):
str1 = raw_input("Enter string one:")
str2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "923"
} |
Q: Designing Websites In Browser (gasp!) I'm interested in people's opinions on the pros and cons, or downright "hell no's" on designing websites in the browser, and moving away from Photoshop, Fireworks, etc.
I've been designing a relaunch for my website, and trying it out in the browser, and I'm not looking back.
Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to catch arbitrary exception in Haskell? How to catch exceptions in Haskell?
A: I have figured it out after reading this paper: An Extensible Dynamically-Typed Hierarchy of Exceptions
handle (\(SomeException e) -> return $ "caught: " ++ show e) undefined
| {
"language": "en",
"url": "https://stackoverflow.com/questions/432859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I ignore case in a regex? I have an ASP.NET RegularExpressionValidator that checks file extensions. Is there a quick way I can tell it to ignore the case of the extension without having to explicitly add the upper case variants to my validation expression?
ValidationExpression="([^.]+[.](jpg|jpeg|gif|png|wpf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Bi-Directionnal Replication With SQL Server Is there a way to make a bi-directionnal Replication with SQL Server ?
(BDD 1) Table 1 <=> (BDD 2) Table 1
Thanks.
A: There are a few solutions that might suit your need.
*
*Merge replication
*Peer to peer transactional replication
*Database mirroring
Each of them h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What would be a good way to add "friendly" column names to a LINQ to SQL model? I have a LINQ to SQL model setup - however in my app there are certain places where I want "friendly" column names for example:
"NameFirst" to be "First Name"
"AgencyName" to be "Agency"
Just looking for suggestions on where the best pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does browsing speed depend on the browser? Is browsing speed depends on browser (like IE,firefox)?
If it depends on browser which browser is best and works fast?
And if we clear the cache in browser will it slow down the browsing speed?
thanks.
A: Some links to browser speed tests:
js speed
lifehacker
A: http://ww... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Significant new inventions in computing since 1980 This question arose from comments about different kinds of progress in computing over the last 50 years or so.
I was asked by some of the other participants to raise it as a question to the whole forum.
The basic idea here is not to bash the current state of things ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "561"
} |
Q: Data driven design problem - data counting I want to provide about 10 different 'statistics' to my users. Each stat represents the count returned by a different query of my database. Each stat/query is specific to the current user. What is going to be the most efficient way to achieve this? Am I right to think that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Actions on page reload/refresh in JavaScript What I want to do is trigger a function from an extension/GM Script once a page in FireFox reloads/refreshes...
Picture this:
*
*I goto a webpage that asks for a username and password.
*My code populates these values and submits the credentials
*The webpage reloads a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Will HTML 5 validation be worth the candle? It's widely considered that the best reason to validate one's HTML is to ensure that all browsers will treat it consistently and predictably.
The HTML 5 draft, however, contains two specifications in one. First an author spec, describing the elements and attributes that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: .NET: Why aren't Enum's Range/Value Checked? This has always bugged me. Perhaps someone with some hardcore knowledge of .NET internals can explain it to me.
Suppose I define an enum as follows:
public enum Foo
{
Eenie = 1,
Meenie = 2,
Miney = 3,
Moe = 4
}
Now, also suppose that somewhere in my code, I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: SMS from web application I just want to send SMS from my web application in PHP.
Can anyone tell me how to do this?
What all things I need to do for this?
A: Hi my name is Jarod and I work for Twilio.com so I am a little biased. But with that said, it is incredibly easy to send an SMS from your PHP web application ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Deleting item from many to many reference table? I have two tables "Group" and "Customer" and of course two entities "Group" and "Customer".
And i have another table which is referencing both "CustomerGroupMember" table.
I use CustomerGroupMember table for many-to-many mapping.
Customer.hbm.xml
<!--Many to many-->
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "NOT IN" clause in LINQ to Entities Is there anyway I can create a not in clause like I would have in SQL Server in Linq to Entities?
A: I have the following extension methods:
public static bool IsIn<T>(this T keyObject, params T[] collection)
{
return collection.Contains(keyObject);
}
pub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Silverlight: Make DeepZoom to load tiles from local source? I am trying to make a map application using DeepZoom.
It already works by loading tile images from the server.
The problem is, the loading speed is not good enough, there is always a small lag when new tiles are being downloaded.
My idea is to download the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Servlet/JSP URLs when forwarding requests My web app has a servlet called admin which when navigated to checks if the user is logged in and if the are directs to the the admin section, but if they aren't it directs them to a JSP page with a sign-in form. The name of the JSP doesn't appear in the URL, it stays as /a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Identifying unique hits with JavaScript Could you suggest an efficient way to identify a unique user with JavaScript (e.g. calculate a hash to send to the server-side)?
EDIT: The point is that I can't "intrude" into the browser (e.g. send cookies). And IPs are also not the option. And it has to be a client-side solu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are possible causes of a sudden drop in google serps for some (not all) queries? A site I manage has seen a sudden drop in visits from google.
It used to have about 300-500 daily visits until a week ago. They were 10% from a strong, competitive query; 80% were long tail queries.
Now I lost both, and visits drop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't I get the right answer in this SQLzoo tutorial? Problem 2b goes as follows:
2b. For each subject show the first year that the prize was awarded.
nobel(yr, subject, winner)
My solution was this:
SELECT DISTINCT subject, yr
FROM nobel
ORDER BY yr ASC;
Why isn't this working?
A: You could do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it feasible to convert a desktop based MFC C++ application to a web app I have a very large app, 1.5 million lines of C++, which is currently MFC based using the Document/View architecture. The application includes a lot of 3d vector graphics, spreadsheets, and very many dialogs and Windows. Within the constrai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: NHibernate Mapping/Design advice - join tables I have a design issue that I would appreciate some input on.
I would like to make an calendar event system based on the following 4 tables:
tb_events
id,
date,
summary,
tb_group
id,
name,
parent,
lineage,
tb_course
id,
name,
tb_staff
id,
name,
email,
The event class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hyperlinks within "about" text for iphone application I'm on the final stretch of my first simple iPhone application. I'm building an "about" view, with credits/info/etc.
I am failing on the simplest thing: how can I embed hyperlinks into the text? I'm current using a UIView with a UILabel for the text.
I've looked ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Adobe AIR app fit screen(maximize) by itself Is there a way to make an Adobe AIR app
fit screen(maximize) by itself when it's
launched?
A: From Abhilash :
Just call the maximize(); function in the Application creation
Complete function.
Source :
http://groups.google.com/group/flex_india/browse_thread/thread/afd5a97... | {
"language": "en",
"url": "https://stackoverflow.com/questions/432993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What tablespace are Oracle sequences stored in? The app my colleagues and I maintain has an Oracle database at the back-end. We're looking at occasionally running the app in a 'restricted' mode with one of the database tablespaces set to read-only. We can easily move the necessary tables and indexes over to separa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Adding a Business Layer to ADO .NET Entity Framework I'm working on my first .NET project (.NET 3.5, ADO.NET and C#). We've built our entity models and are trying to build a clean business objects layer.
We've got our basic entity model and we want to add certain business-level semantics to the default data accesso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: OpenID authentication goes into strange error loop (Ruby on Rails, ruby-openid, open_id_authentication) I've been using OpenID for my site for a while, and everything has been working fine. However, recently I've been seeing some strange errors in the error logs. Apparently, everything works fine for the user, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Automatic .toString() when calling a method? I got the code of a former employee. There are many calls to methods like:
foo(val,...);
where
void foo(String s,...) {
...
}
and val is an int.
Of course, I get an error.
As a workaround I pass ""+val to foo. I wonder if there is a better way.
A: String.valueOf(val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you get your users to report bugs using the appropriate channels? We have got a setup where users can either use a web-based form or send e-mail to a particular e-mail address so that they can report a bug. If they do this, a record is created in the bug tracking system, and the appropriate developers are no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Post your short extension functions goodies for jQuery In a similar vain to the c# extension topic on SO It would be great if we could pull together a whole host of useful jQuery function extensions.
Please Note the idea is to have short snippets of code not full blown well known plugins or ui widgets
A: you can us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I get a list of all currently loaded assemblies?
How do I get a list of all currently
loaded assemblies?
Closed as a duplicate of How do you loop through currently loaded assemblies?
A: Assembly[] asms = AppDomain.CurrentDomain.GetAssemblies();
| {
"language": "en",
"url": "https://stackoverflow.com/questions/433049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: .NET winforms application controls turn to red x's I've deployed a C#.net 2.0 application to a Windows XP SP2 machine and during certain events a lot of the form controls turn to red X's. (Buttons, labels, etc...). I've pasted one of the procedures below that causes the problem. Since I can't reproduce it on the dev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do CMS's show pages at directories or at plain filenames? If all CMS's (Drupal, MediaWiki) are just a collection of PHP or ASP in the background, then how do they display pages at www.example.com/directory/ or www.example.com/File_name without extensions or anything?
Is this some .HTACCESS configuration? Python?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WSE client project keeps reverting WebServicesClientProtocol to SoapHttpClientProtocol Despite enabling WSE 3.0 on client projects in Visual Studio 2005, web references I make always end up with service proxies derived from SoapHttpClientProtocol. I have to manually change the inheritance to WebServicesClientProtoco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the best mechanism for testing applets? I'm trying to effectively build a functional test suite for an applet, and I'm trying to find a good framework for it.
In the past, when I wanted to design a test suite that would serve as both functional and load testing on an application, it has always been a web-bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Good tool to visualise database schema? Are there any good tools for visualising a pre-existing database schema? I'm using MySQL if it matters.
I'm currently using MySQL Workbench to process an SQL create script dump, but it's clunky, slow and a manual process to drag all the tables about (which would be okay if it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "148"
} |
Q: How does Google read SWFAddress deep paths? SWFAddress claims that it is search-engine friendly, but how is one supposed to feed the deep-links into search engines like Google? Because in all my SWFAddress-powered websites, not a single deep-link shows up in Google.
Tried and failed methods:
*
*In the hidden-HTML... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automate the import of an IIF into Quickbooks I need to be able to import an IIF file into a QuickBooks 2008 application, via a .NET application. I do not know the first thing about Quickbook automation.
Where should I look?
A: IIF files are deprecated in favour of a more fully featured API.
See question 20 here - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you clean the Seaside URLs? So, if you download a fresh Seaside image and run WAKom startOn: 80, then your fresh seaside respons on localhost/seaside/
This /seaside-folder annoys me, as I want to publish on seasidehosting.
So! How do I remove this part of the URL?
I want my app to be reachable under myapp.sea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mocking ConfigurationCollection How can I Mock ConfigurationCollection with Rhino Mocks.
I need to create an Expected ConfigurationCollection which contains 1 element in order to test if me Configuration contains that element.
Thanks.
Note : My ConfigurationCollection inherits from IEnumerable.
public interface ICap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get a book graphic and description from the Amazon Book API? This URL sends an ISBN number to Amazon and gets back a small bit of XML including author, title, and publisher.
However, I also want to get small, medium and large graphic and book descriptions of the title.
Problem: I can find no REST URL exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Exactly how "fast" are modern CPUs? When I used to program embedded systems and early 8/16-bit PCs (6502, 68K, 8086) I had a pretty good handle on exacly how long (in nanoseconds or microseconds) each instruction took to execute. Depending on family, one (or four) cycles equated to one "memory fetch", and without ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Overflow in C# expressions Ok? In what way(s) would be an overflow in an expression be desirable in the following cases:
*
*Calculating a hash value
*Calculating a check sum
?
A: So long as you're expecting that operations may overflow, and that the definition of what you're trying to do allows for overflow ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recommendations of a high volume log event viewer in a Java environment I am in a situation where I would like to accept a LOT of log events controlled by me - notably the logging agent I am preparing for slf4j - and then analyze them interactively.
I am not as such interested in a facility that presents formatted l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to make git mark a deleted and a new file as a file move? I've moved a file manually and then I've modified it. According to Git, it is a new file and a removed file. Is there any way to force Git into treating it as a file move?
A: The other answers already cover that you can simply git add NEW && git rm OLD i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "721"
} |
Q: Writing web based/desktop application I want to create a simple program similar to http://www.basecamphq.com/ that allows you to track progression and completion on projects that will work across a computer network or by the web (really which ever is the easiest to accomplish)
The program would be relatively simple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to tell if any form from my app is in foreground I'd like my compact framework application to show a notification bubble ONLY when it's running "in the background". The application has several forms which may or may not be visible at any time. I'd like the notification handler (which runs on background separat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate PDF from Rails The Ruby On Rails Wiki lists a couple of libraries that facilitate PDF generation in Rails. I need to print out address labels (in letter format, thus 12-15 addresses per page) and cannot decide which one to use. Any recommendations?
A: Prawn with Prawnto for sure.
The DSL is a real treat, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Can I access constants in settings.py from templates in Django? I have some stuff in settings.py that I'd like to be able to access from a template, but I can't figure out how to do it. I already tried
{{CONSTANT_NAME}}
but that doesn't seem to work. Is this possible?
A: The example above from bchhun is nice excep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "433"
} |
Q: What happens to an STL iterator after erasing it in VS, UNIX/Linux? Please consider the following scenario:
map(T,S*) & GetMap(); //Forward decleration
map(T, S*) T2pS = GetMap();
for(map(T, S*)::iterator it = T2pS.begin(); it != T2pS.end(); ++it)
{
if(it->second != NULL)
{
delete it->second;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to embed a text file in a .NET assembly? I would like to embed a text file in an assembly so that I can load the text without having to read it from disk, and so that everything I need is contained within the exe. (So that it's more portable)
Is there a way to do this? I assume something with the resource files... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "131"
} |
Q: Something higher in the call stack making a call When a caller is higher in the stack, what does this mean? For example, lets say I start a program, a form loads up (we'll call this a), then this form calls another form (b). The called form will be at the top of the stack, so if this form called form a, will this be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Starting any Emacs buffer with a .c extension with a template I write a lot of short throwaway programs, and one of the things I find myself doing repeatedly is typing out code like
#include <stdio.h>
#include <stdlib.h>
int main(void){
}
To save some tendon hits I was wondering if it was possible to insert a sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: I'm confused about HTTP caching I've been thinking about batch reads and writes in a RESTful environment, and I think I've come to the realization that I have broader questions about HTTP caching. (Below I use commas (",") to delimit multiple record IDs, but that detail is not particular to the discussion.)
I start... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Ruby: Math functions for Time Values How do I add/subtract/etc. time values in Ruby? For example, how would I add the following times?
00:00:59 + 00:01:43 + 00:20:15 = ?
A: Use ActiveSupport, which has a ton of built-in date extensions.
require 'active_support/core_ext'
t1 = "#{Date.today} 00:00:59".to_time
t2 = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Quickest Method to Reverse in String in C#.net I'm currently writing a quick solution for Euler Problem #4 where one must find the largest palindromic number from the product of two 3-digit numbers.
To identify if a number is palindromic, you would obviously compare a reverse of the number with the original.
Since C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Divorcing ASP.NET & SQL SERVER what alternative do you suggest? I have been developing in asp.net since its existence (also classic asp before that) and also I have been using SQL server as my back-end database.
After serious consideration, I now want to change the language I use. Considering the OOP capabilities o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there any Spy++ equivalent for linux/x window? Spy++ is a tool for windows that let the user spy on windows attributes, child windows and the message that it will process. It is handy utility to debugging UI related code.
A: Back then, i tested my middle mouse button using a tool called xev. It creates a new win... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: QNX c++ thread question I have a question concerning this code which I want to run on QNX:
class ConcreteThread : public Thread
{
public:
ConcreteThread(int test)
{
testNumber = test;
}
void *start_routine()
{
for(int i = 0; i < 10; i++)
{
sleep(1);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I declare an array when I don't know the length until run time? I originally had an array[1..1000] that was defined as a global variable.
But now I need that to be n, not 1000 and I don't find out n until later.
I know what n is before I fill the array up but I need it to be global therefore need a way to def... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Updating live server from VCS I run all my Django sites as SCGI daemons. I won't get into the fundamentals of why I do this but this means that when a site is running, there is a set of processes running from the following command:
/websites/website-name/manage.py runfcgi method=threaded host=127.0.0.1 port=3036 pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to get good feedback during a web app's closed beta? If only email is available then the users don't seem to engage.
A feedback box within the app feels like a step in the right direction, but doesn't offer any ability to build community.
Uservoice and tenderapp both look like they could work wel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add a custom inline admin widget in Django? This is easy for non-inlines. Just override the following in the your admin.py AdminOptions:
def formfield_for_dbfield(self, db_field, **kwargs):
if db_field.name == 'photo':
kwargs['widget'] = AdminImageWidget()
return db_field.formfield(**kwa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: AS3: Detect long key presses I have an interface that needs to react to "long key presses". That means 2 different actions for the same key based on how long the key has been down:
PRESS LEFT CURSOR: action A
PRESS & HOLD LEFT CURSOR: action B
Well, it's proving harder that I thought. The main problem is that both K... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to deal with compiler optimization problems I'm having an annoying problem with my iPhone app. Whenever I set the optimization level to something other than "None", I get computation errors. This only happens in when building for the iPhone SDK (the iPhone Simulator is always fine).
I wouldn't mind disabling o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: mocking superclass protected variable using jmockit I couldnt able to mock the protected varibale defined in the superclass.i could able to mock the protected method in superclass but couldnt to mock the protected variable in to the subclass ,wherein am writing the testcase for subclass,Please if anybody out there h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I use the membership provider when using MVC and a forum database? I want to use an existing user and user group table that the forums use. I would prefer not to have to add any additional tables (other than what the forum already has).
I will be using MS SQL.
The forums are PHP which is why I want the .net s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Self-referencing updates in HQL I have the following query in HQL:
update ProjectFile pf1
set pf1.validUntil.id =123
where pf1 = (
select pf from ProjectVersion pv, ProjectFile as pf
where pf.validFrom.sequence <= pv.sequence
and pf.validUntil.sequence >= pv.sequence
and pf.state <> 12
and pf.projectVersion.proje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Calibrating Development Schedules Are there any online repositories of completed real-world projects with their timescales that I can use to callibrate my own development time estimates?
A: If such a repository existed, how would you expect to correlate your project to find matches?
To expand; every software develo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/433272",
"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.