text stringlengths 8 267k | meta dict |
|---|---|
Q: Can you use SIMBL to develop a plug-in for the iPhone's Safari? Can you use SIMBL to develop a plug-in for the iPhone's Safari?
A: No, you cannot.
A: As is clear in Apple's terms of use with the iPhone SDK, no non-native code can be run by any application. This means, among other things NO PLUGINS. At all. Not for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to insert a record and return the newly created ID using a single SqlCommand? I'm using an SqlCommand object to insert a record into a table with an autogenerated primary key. How can I write the command text so that I get the newly created ID when I use the ExecuteScalar() method?
A: INSERT INTO YourTable(val1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Some Basic PHP Questions I just had some basic php questions to further my understanding as I learn, that I could not find easy answers to
*
*I have a php ajax application that generates a table of mysql rows. I would like to know if there is a way to get php to generate neat html, as it seems neat enough as I ec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Silverlight 2.0 - scroll vertically, wrap horizontally In silverlight 2.0. I have some content that i want to scroll vertically and wrap horizontally. In the controls I have a dock panel. The DockPanel's last child, which fills it, is a ScrollViewer
<UserControl x:Class="MyProject.MyControl"
xmlns="http://schema... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use of Greater Than Symbol in XML I had created the xml document with xml version="1.0".
In that document I need to use the greater than symbol > and less than symbol <.
How should I include those symbols? It's not working.
> and < are not working for me.
Is there any special encoder for this?
A: You can try ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Comparing Infinities in Java What does the following expression return in Java?
Math.max(Float.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);
I saw this question in a website and the answer is Double.POSITIVE_INFINITY. I'm not sure about this answer as how can we compare 2 infinities? Can someone clarify this? Tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: jQuery datepicker- 2 inputs/textboxes and restricting range I am using the jQuery Datepicker widget with two input boxes, one for the "From" date and the second with the "To" date. I am using the jQuery Datepicker functional demo as a basis for getting the two input boxes to work with each other, but I need to be ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Creating a strip of selectable letters for a form I wish to display a list of letters from a through z on a form.
Each letter needs to be clickable with that value being passed as a click argument.
Aside from creating 26 letters and using the click event of each letter does anyone know of a quick way to do this?
I k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CComPtr CoCreateInstance() fails I have a COM .dll registered successfully with regsvr32 but somehow CoCreateInstance() fails to create one of its interfaces. Is there a freeware tool which can determine the reason for the failure?
A: First of all, check the return value of the CoCreateInstance() call. Second, you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transform a Direct3D Mesh I tried to write a TransformMesh function. The function accepts a Mesh object and a Matrix object. The idea is to transform the mesh using the matrix. To do this, I locked the vertex buffer, and called Vector3::TransformCoordinate on each vertex. It did not produce expected results. The res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to initialize a struct in accordance with C programming language standards I want to initialize a struct element, split in declaration and initialization. This is what I have:
typedef struct MY_TYPE {
bool flag;
short int value;
double stuff;
} MY_TYPE;
void function(void) {
MY_TYPE a;
...
a = { tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "589"
} |
Q: PHPMailer error(s) function register_contact ($person = array()) {
$nogood = false;
foreach ($person as $val) {
if (strlen($val)==0) {
$nogood = true;
$status = "There was an error sending the registration please fill in all fields";
}
}
if (!$nogood) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to call the correct overloaded function at runtime? How do I call the correct overloaded function given a reference to an object based on the actual type of the object. For example...
class Test
{
object o1 = new object();
object o2 = new string("ABCD");
MyToString(o1);
MyToString(o2);//I want th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to uninstall a Windows Service when there is no executable for it left on the system? How do I uninstall a Windows Service when there is no executable for it left on the system? I can not run installutil -u since there is not executable left on the system. I can still see an entry for the service in the Services... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "187"
} |
Q: Best version control for a one man web app? I'm just learning how to do things, and want to start using some sort of version control for a web app.
What's most appropriate for deploying a python or php web app on my own? I'm using linux and have a linux server.
Thanks!
A: Nowadays, I would certainly go with a distr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I add HTML links in C# TextBox? How can I put a link in a C# TextBox? I have tried to put HTML tags in the box but instead of showing a link it shows the entire HTML tag. Can this be done with a TextBox?
A: Use the RichTextBox, no need to build your own, it cames with VS
A: I would try using an editable d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Media on Windows CE using Compact Framework I have the following requirements:
I need a api that works on CE (x86) + .NET Compact Framework to play videos (Similar to CorePlayer API... Just free)?
Is their anything else available or must I use CorePlayer?
A: You could use the MediaPlayer with COM interop. Have a lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How does Perl decide to treat a scalar as a string or a number? Consider the following code and its output:
Code
#!/usr/bin/perl -w
use strict;
use Data::Dumper;
my $HOURS_PER_DAY = 24.0 * 1.0;
my $BSA = 1.7 * 1.0;
my $MCG_PER_MG = 1000.0 * 1.0;
my $HOURS_DURATION = 20.0 * $HOURS_PER_DAY;
my $dummy = $HOURS_PER_D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to hide the scroll bar on an HTML textarea element? Is it possible to hide the scroll bar on an HTML textarea element using CSS or any other means ?
A: style="overflow:hidden"
Not sure why you'd want to do that, though.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/330895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Java webservices client slow when compared to dotnet client we have DotNet webservice which is being called by two clients , one a dotnet client and other a javaclient
The problem is java client is taking longer time in processing the results when compared to dotnet client and affecting the performance greatly , i'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to quickly parse a list of strings If I want to split a list of words separated by a delimiter character, I can use
>>> 'abc,foo,bar'.split(',')
['abc', 'foo', 'bar']
But how to easily and quickly do the same thing if I also want to handle quoted-strings which can contain the delimiter character ?
In: 'abc,"a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Is running tests with JUnit 3.x vs JUnit 4.x still a best practice? I haven't looked at this in a while, but if I recall correctly both ant and maven still rely on JUnit 3 for unit tests (as of maven 2.09 the default POM file still has JUnit 3.81).
Does it still make sense to stick to JUnit 3 instead of using the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Confirmation Dialogue How could I best implement the following scenario? I have a "Next Period..." button which allows the user to close the current accounting period and advance the current period. I would like to do a server side rights check on the first click of the button, and give the user an alert if they d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Min, Max and Count on HQL Does hibernate HQL queries support using select min, max, count and other sql functions?
like:
select min(p.age) from person p
Thanks
A: thats how I am using max in Hibernate :
public long getNextId(){
long appId;
try{
Session session = HibernateUtil.getAdmSessio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Other examples of magical calculations I have seen this topic here about John Carmack's magical way to calculate square root, which refers to this article: http://www.codemaestro.com/reviews/9. This surprised me a lot, I just didn't ever realized that calculating sqrt could be so faster.
I was just wondering what o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Using Ninject in a plugin like architecture I'm learning DI, and made my first project recently.
In this project I've implement the repository pattern. I have the interfaces and the concrete implementations. I wonder if is possible to build the implementation of my interfaces as "plugins", dlls that my program will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Access VBA: Is it possible to reset error handling? I am using in the first part of my program
On Error GoTo start
Suppose in my second part I am again using
On Error Resume Next
This second error trap will not get activated as the first one will still be active. Is there any way to de-activate the first error handl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Anyone know whether there is a 5-star rating control for asp.net mvc? I require a star rating control (which allows partial rating like 4.5) for my application built on asp.net mvc.
Any pointers in this direction will be helpful?
A: Rogie, over at Komodomedia, has spent far too long on this topic writing 3 articl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: BlackBerry - How to add content to the Home Screen? In the Windows Mobile world you can create a so-called Today plugin that adds content to the phone's main screen -- the one where you see the number of missed calls, unread sms and upcoming events. Is it possible to do something similar on the BlackBerry? I'd lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Relationships and indexes I have an MS SQL server application where I have defined my relationships and primary keys.
However do I need to further define indexes on relationship fields which are sometimes not used in joins and just as part of a where clause?
I am working on the assumption that defining a relatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Removing leading 0? Is there a simple way to remove a leading zero (as in 01 becoming 1)?
A: $str = "01";
echo intval($str);
A: if you use the trim functions, you might mistakenly remove some other character, like by triming "12" your will have "2".
use the intval() function. this function will convert your strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why choose Subversion over its competitors? I personally used Mercurial and Subversion in a limited way and I just can't see why 95% of the people will chose SVN over something else. Is it just a monopoly case or is there a lot of good hidden in SVN that other systems don't have?
A: CVS used to be the default (it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Where should I store my log file so a user has write permissions to it? I currently store my log file in the Program Files\My App folder but some users don't have permission to write here if they are not a power user or administrator. Is there a common location for this type of log file?
Update:
I'm currently using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use data from Zend_Db_Table in a Zend_Form I have create a form class for editing deleting and add users to a database. If I want to edit a user how can I simply supply the information of the user to the form.
I use a Zend_Db_Table to get the data from the database.
This is the userForm class:
class UsersForm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which events do/do not fire when a page is returned from the asp.net cache? I have an App which users have to log into.
Once logged in, they may perform a search against our database.
Their Identity can affect the search results.
I wish to use Cache pages of the results. VaryByParam sounds good for this.
However I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 'Proper' collection to use to obtain items in O(1) time in C# .NET? Something I do often if I'm storing a bunch of string values and I want to be able to find them in O(1) time later is:
foreach (String value in someStringCollection)
{
someDictionary.Add(value, String.Empty);
}
This way, I can comfortably perfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: undefined method in rails I'm new to ruby and started to create my *nd toy app.
I:
*
*Created controller 'questions'
*Created model 'question'
*Created controller action 'new'
*Added 'New.html.erb' file
in erb file I use form_for helper and and new controller action where I instantiate
@question instance va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/330993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Localize Images in ASP.NET A couple of years ago, we had a graphic designer revamp our website. His results looked great, but he unfortunately introduced a new unsupported font by the web browser.
At first I was like, "What!?!"... since most of our content is dynamic and there was no real way to pre-make all of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Change default date time format on a single database in SQL Server I need to change the date format from US (mm/dd/YYYY) to UK (dd/mm/YYYY) on a single database on a SQL server machine.
How can this be done?
I've seen statements that do this for the whole system, and ones that do it for the session, but I can't chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to map a string to Uri type using the Entity Framework? My database contains a column of type string, that represents a URL. I'm now wondering how its possible to map this string to a Uri object using the Entity Framework.
Any ideas?
A: Use a partial class, w/ a custom property:
public partial class MyClass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WinForms: Textbox Leave event doesn't get fired after going to main menu I have a TextBox control on my Form. I use the Leave event on the control to process user input. It works fine if the user clicks on some other control on the form, but the even doesn't get fired when the user goes straight to the main menu. An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Asp.net + JIT? What is default type of JIT compiler is used in .Net (visual studio)
out of (Pre-JIT,Econo-JIT,Normal-JIT)?
A: As far as I know default JIT is Pre-JIT but ASP.NET Does Not Support Pre-Just-In-Time (JIT) Compilation Through Native Image Generator.
A little bit of background on the various JIT types:
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Obsolete attribute causes property to be ignored by XmlSerialization I'm refactoring some objects that are serialized to XML but need to keep a few properties for backwards compatibility, I've got a method that converts the old object into the new one for me and nulls the obsolete property. I want to use the Obsolet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: How can I make a user control's form portable to other pages I have a user control that will be used in several pages (as is the custom with user controls) that contains a form.
I was thinking on how to guarantee its functionality.
First I wanted to have a single controller with a single method accept the values for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using C++ DLLs with different compiler versions This question is related to "How to make consistent dll binaries across VS versions ?"
*
*We have applications and DLLs built
with VC6 and a new application built
with VC9. The VC9-app has to use
DLLs compiled with VC6, most of
which are written in C and one in
C++.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you configure SWFUpload to work with an ASP.NET C# WebService? I'm trying to use SWFUpload with an ASP.NET Web Forms project. I need to get at Request.Files[0] But I can't do that in my WebService!
Anyone know a way around this?
Thanks in advance.
A: From what I can tell SWFUpload is a JS/Flash front-end co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to resize html canvas element? I have a canvas element defined statically in the html with a width and height. If I attempt to use JavaScript to resize it dynamically (setting a new width and height - either on the attributes of the canvas or via the style properties) I get the following error in Firefox:
uncau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: How do you get nano/pico running on OpenSolaris? We're setting up an OpenSolaris server on Amazon's EC2 service. However, vi/vim doesn't work properly, and pkg doesn't have nano/pico.
Is there any other text-editor maybe?
A: Sounds like you may just need to set an appropriate termtype to get vi working. Look into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When is anonymous namespace data initialized? I have been using anonymous namespaces to store local data and functions and wanted to know when the data is initialized? Is it when the application starts in the same way as static data or is it compiler dependent? For example:
// foo.cpp
#include "foo.h"
namespace {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get user information within a stateless session bean I'm working on an existing j2ee app and am required to remove some vendor specific method calls from the code.
The daos behind a session facade make calls into the ejb container to get the user's id and password - in order to connect to the database. The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: URL rewriting problems with ASP .NET 2 on IIS7 and Vista I've got a website running under ASP .NET 2/IIS7/Vista. I have a URL rewriting module which allows me to have extensionless URLs. To get this to work I have configured the system.webServer section of the config file such that all requests are forwarded to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Speed up NHibernate Calls to Oracle? Are there any optimizations to consider when connecting to Oracle with NHibernate? My calls to Oracle are taking an extremely long time. If I run the NHibernate query (copied from my output window in Visual Studio) directly against Oracle, it comes right back in under a second. H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: parsing html
A: Obviously the template engine you are using eats away the part in curly braces.
Try something like:
$foot = "{literal}<script type=\"text/javascript\">if(document.getElementById){loadEvents();}</script>{/literal}";
A: It looks like you're using a template engine like Smarty, which tries to parse a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: rowindex on gridview control - VS 2008 With a gridview control bound to a sql data source, i want to display a column named ID. The ID should display the row number for each row. How would I go about binding this to rowindex instead of the ID column from the database?
A: For that I would use the ROW_NUMBER() functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems with itemRollOver and itemRollOut events on List component I have set the itemRollOver and itemRollOut event listeners on a List component, but whenever I roll the mouse over a list item, both the over and out events of the same list item fire in succession right after each other. My list uses a custom item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to choose a single model and persist that choice? I have a simple model called Party with a corresponding table called parties. There's also a controller with all the usual CRUD actions and so on. This model is used in a website and only one admin user is allowed to edit the parties - everyone else is allowed to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Network Outage Causes Stored Procedure Querying Across DB Link to Hang Forever A number of stored procedures I support query remote databases over a WAN. The network occasionally goes down, but the worst that ever happened was the procedures failed and would have to be restarted.
The last couple weeks it's taken a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySql Index Fill Factor? How do you specify the Fill Factor when creating an index in MySql?
A: You don't.
http://dev.mysql.com/doc/refman/5.0/en/create-index.html
However, it is an 'accepted' feature request for version 6.x:
http://bugs.mysql.com/bug.php?id=18178
So, don't hold your breath on seeing it any time so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: A J2ME lisp? It seems that programming ON a mobile device (instead of FOR a mobile device) could be easier if a lisp existed that run on J2ME.
Do you know any (preferably opensource) lisp/smalltalk apps?
I searched the web and I couldn't find a working J2ME lisp.
Is it so difficult to port it to J2ME?
Thanks
A: M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a way to conditionally run Visual Studio Post Build Steps What we are looking for is: while compiling the same configuration, say Release|Win32, is there a way to only do the postbuild steps sometimes. Like, if I am on a dev machine do all the post-build steps or if I am on a build server then don't do them... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Report Viewer (SSRS 2005) Not rendering correctly with update to .Net 3.5 I'm having an issue with the SSRS 2005 report viewer no longer rendering correctly in the browser. We updated the application that calls the report to use the .Net 3.5 framework and are calling the report from the app via a URL to the report s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass array from Asp.net server side to Javascript function on client side How do I pass an array I have created on the server side onto the client side for manipulation by Javascript?
Any pseudo code will help
A: You'll need to embed it as a javascript array declaration into the page. There are a number of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does C++ allow default return types for functions? In C the following horror is valid:
myFunc()
{
return 42; // return type defaults to int.
}
But, what about in C++? I can't find a reference to it either way...
My compiler (Codegear C++Builder 2007) currently accepts it without warning, but I've had comments th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to stop Visual Studio 2008 from failing to build on CSS errors? I have an external stylesheet that has specific IE-hacks. Every so often my site will fail to build due to these hacks (it is the hash-hack; for example #margin-top:-2px;). This is the error:
Unexpected character sequence. Expected a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does SQL Server CheckSum calculate a CRC? If not how can I get MS SQL to calculate a CRC on an arbitrary varchar column? Does SQL Server CheckSum calculate a CRC? If not how can I get SQL Server to calculate a CRC on an arbitrary varchar column?
A: I apologize for the crudity of the model, but this seems to do a co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: JavaScript edit-inplace-holders which work with Wiki sources I'd like to dynamicly parse in text wiki-content.
I found JsWiki but its in beta form, and looks like with no community even developers). Any other?
A: You could use the Ra-Ajax InPlaceEdit for such things if you're on ASP.NET. It doesn't have automated b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I update the contents of a placeholder with a generated image in Rails? I have a div tag in the view that I'd like to update with a graph that I generate via Gruff.
I have the following controller action which does this at the end
send_data g.to_blob, :disposition=>'inline', :type=>'image/png', :filename=>'to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does my custom drag and drop script fail? I am currently trying to code my own JS drag and drop script (out of sheer curiosity and boredom, I know it would be much easier with a framework). My aim is a fully working Firefox3 version , IE can wait for now.
I just got stuck on a weird bug. When I drag the div for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Transfering ASP Classic Pages from Windows to Linux Has anyone tried a solution to host ASP classic pages on something else than IIS/Windows? I'm wondering if it would be a good idea to try one of the solutions for that problem. I know about Sun Java System Active Server Pages (or Chilisoft) but haven't tried it. Is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best method to write an email poller I am working on an email polling solution, for a multi-user system. So users can send emails on their respective ids and it would be polled and inserted to a db.
There are two options that I am considering:
*
*Perl/Unix based email pollers..
*A java based poller.
What would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cocoa Threadsafe Mutable Collection Access I'm creating a KVC/KVO-compliant mutable array on one of my objects the recommended way:
@interface Factory {
NSMutableArray *widgets;
}
- (NSArray *)widgets;
- (void)insertObject:(id)obj inWidgetsAtIndex:(NSUInteger)idx;
- (void)removeObjectFromWidgetsAtIndex:(NSUInteg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unit test WPF Bindings I am trying to unit test my WPF databindings using the test suit provided by Microsoft Team System. I would like to be able to test the bindings without showing the window because most of my tests will be for user controls and not actually on a window. Is this possible or is there a better w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to take a Java Web-application offline? We develop Java Web-aps (Websphere, DB2) which display graphical and databased information. We would also like to offer the same application offline (distribution via CD/DVD) with online data-update. We have tried a number of alternatives in the past, but nothing has been ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I use DBD::Proxy with DBIx::Class? I need to get a database connection through a firewall, and also limit what queries can be run. DBD::Proxy seems to be the perfect solution for this. However, I'm currently using DBIx::Class, and can't figure out how to hook them together.
In particular, DBD::Proxy doesn't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Displaying a custom form on a new item event in SharePoint 3 document libraries? Which is the best way to display a custom form for each new document being added to a specific document library?
I want the user to have some control over some actions that adding the document will cause - specifically, tasks created fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I append onto pipes? So my question is if I can somehow send data to my program and then send the same data AND its result to another program without having to create a temporary file (in my case ouputdata.txt).
Preferably using linux pipes/bash.
I currently do the following:
cat inputdata.txt | ./MyProg > ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: c# gridview row click When I click on a row in my GridView, I want to go to a other page with the ID I get from the database.
In my RowCreated event I have the following line:
e.Row.Attributes.Add(
"onClick",
ClientScript.GetPostBackClientHyperlink(
this.grdSearchResults, "Select$" + e.Row.RowIn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Encoding problem classic ASP I have a problem with classic ASP. The encoding is wrong when I send data with XMLHttp.send. The response is a PDF file, but the “ÆØÅ” gets wrong, the “Ø” is read as “øy” for example. It’s like it’s a converting mistake from UTF-8 to ISO-8859-1, but it should be ISO-8859-1 now. I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to get Server 2008 to *appear* as Vista for installers? I have a tool that I want to install on my main development box (Windows Server 2008). The installer tells me that it requires Vista. Of course I'm not saying Server 2008 is Vista, but I figure something that installs on Vista should be able to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to pixelate/blur an image using ImageMagick? I want to pixelate and/or blur an image.
I've found the command for the blurring:
$convert image.jpg -blur 18,5 newimage.jpg
to work but I cannot blur the image any more.
And how do I pixelate the image? I couldn't find a sound example around the net.
Thx
A: This w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Allow custom text representation of data in MXML I have an actionscript class called Dimension, which allows a client to specify a dimension using a value and a unit such as "CM" or "Inches". I want to use an instance of this class as a property in MXML, so a user can write
<DimensionView value="2cm"/>
How do I mak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a better way of customizing SOAP headers in C# In the past I have needed to create custom SOAP headers in a C# project that was using an imported WSDL web reference. I found a way to do it but I was never happy with it and I have sense wondered if there was a better way. What I did was create a header that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to choose a databindable grid control I recently started working with ASP.NET 3.5, having previously worked with C# and WinForms (mostly .NET 1.1) for about 6 years.
My head spins every time I need allow the user to view, add/remove or edit a list of items. This is due to the similarities, and differences, of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How To: Use DataRelation to perform a join on two DataTables in a DataSet? How do I perform a join between two DataTables in a Dataset?
I created a DataRelation between two tables….then what?
I'm looking at one explanation on how to do it (http://www.emmet-gray.com/Articles/DataTableJoins.htm) which involves copying... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: time.h drop-in replacement : time_t for values (year < 1970) and (year > 2038) in ANSI-C or C99 I have a piece of code in ANSI C which uses the time.h library and time_h structures to (amongst other date-related calculations) work out the interval between two given dates. This works fine but this limits my code to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can a wpf application be deployed without compiling the xaml? Is it possible to deploy a WPF windows application in such a way that the xaml files can be manipulated at run-time? If possible, I would imagine this would work similar to an asp.net application that can deploy the .aspx pages as content, which are then... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Server Error in '/' Application. No parameterless constructor defined for this object The callstack shows the following:
[MissingMethodException: No parameterless constructor defined for this object.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I use the "Post/Redirect/Get" a.k.a. "Redirect after Post" with asp.net Doing a refresh after certain action in asp.net seems to make them happen again even when that action doesn't make sense (think double delete). The web way to deal with this situation is to redirect after a post to get a clean version of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I make TortoiseSVN ignore empty directories that have been removed from the repo? I've got some directories that have been moved or renamed. The Linux command line SVN client ignores these directories. The TortoiseSVN plugin for Explorer shows them. If I delete them and update, they come back.
All of the file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change diacritic characters to non-diacritic ones I've found a answer how to remove diacritic characters on stackoverflow, but could you please tell me if it is possible to change diacritic characters to non-diacritic ones?
Oh.. and I think about .NET (or other if not possible)
A: It might also be worthwhile... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Serializing objects for asynchronous messaging I'm considering using AMQP (using qpid) to enable a mixture of Python and Java services communicate with each other. Basic text messaging seems simple enough but, as with every other messaging technology I've investigated, that's where it seems to stop. Except for build... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the .NET equivalent of CreateEnhMetaFile and PlayEnhMetaFile? I'm porting some C++ code to VB.NET which creates a print job consisting of several pages. Every page has a template of graphical objects (text, lines, curves, etc) which stays the same on each page, and overlaid on top of that is the different da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone Xcode project.pbxproj + Subversion = code signing issue? Try to commit my first iPhone application to Subversion found that there's "code signing identity" section in my xcode project.pbxproj file.
CODE_SIGN_IDENTITY = "iPhone Developer: my username here...;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Devel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you use MapReduce/Hadoop? I'm looking for some general information about how other people are using Hadoop or other MapReduce-like technologies. In general, I am curious to whether you are writing MR applications to process existing data sets (like web server log files), or are you writing applications that g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Worst Case Time Complexity for an algorithm What is the Worst Case Time Complexity t(n) :-
I'm reading this book about algorithms and as an example
how to get the T(n) for .... like the selection Sort Algorithm
Like if I'm dealing with the selectionSort(A[0..n-1])
//sorts a given array by selection sort
//input: An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Silverlight Async Timeout Error Calling through to my Silverlight Enabled WCF-Service in my silverlight application, occasionally users get timeouts. Whats the easiest way to boost the time allowed by the service client for a response?
The exact exception thrown is: System.TimeoutException: [HttpRequestTimedOutWitho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Table tags for form display are bad... but what about survey questions like rt type? Is it bad design to use table tags when displaying forms in html?
The accepted answer to this question in short: YES...
...but what about something like this:
I can't really think of different & better solution. The example is from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Controlling drop down lists in Windows SharePoint Services 3.0 Form I have created a form in a WSS 3.0 site. There are a number of drop-down lists on the form. Is there a way to control the values in one drop-down based on a selected value in a previous drop down?
A: On post-back you should be able to access the pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XP Batch scripting - zipping with rinrar looping through a directory *.csv I have read numerous articles now and it's not clear and there's lots of versions and this that and the other and I have been piecing things together and have got so far, my problem is the 'rar' command doesn't seem to accept my substition va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How many columns are too many for a SQL Server 2005 table? I have a request to allow a dynamic table to have 1000 columns(randomly selected by my end users). This seems like a bad idea to me. It's a customizable table so it will have a mixture of varchar(200) and float columns(float best matches the applications c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.