text
string
meta
dict
Q: Save CSS Related To Dreamweaver Document I find this incredibly annoying with Dreamweaver, everytime I go to save my document I have to tab into each css file and save them individually. Not a problem with one css file, but when you have 3 or 4 it is a pain in the ass. Is there anyway to save your dreamweaver docume...
{ "language": "en", "url": "https://stackoverflow.com/questions/221556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SWT - OS agnostic way to get monospaced font Is there a way in SWT to get a monospaced font simply, that works across various operating systems? For example. this works on Linux, but not Windows: Font mono = new Font(parent.getDisplay(), "Mono", 10, SWT.NONE); or do I need to have a method that tries loading var...
{ "language": "en", "url": "https://stackoverflow.com/questions/221568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: What code highlighting libs are there for Java? I'd like them to be easy to bundle, with few dependencies and easy to use. A: Do you want to highlight Java code or use a Java lib to highlight some other code? I use these two: https://jhighlight.dev.java.net/ (server-side) for xml and http://code.google.com/p/syntax...
{ "language": "en", "url": "https://stackoverflow.com/questions/221570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to disassociate a wireless interface with an access point? I'm trying to make a script that sleeps my wireless card in linux. For that I'm using the deepsleep command of iwpriv: iwpriv wlan0 deepsleep 1 The problem is that this command only works if the wireless card is disconnected and disassociated. When it's...
{ "language": "en", "url": "https://stackoverflow.com/questions/221578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Most efficient way to check for DBNull and then assign to a variable? This question comes up occasionally, but I haven't seen a satisfactory answer. A typical pattern is (row is a DataRow): if (row["value"] != DBNull.Value) { someObject.Member = row["value"]; } My first question is which is more efficient ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "152" }
Q: What is best practice for this problem (different properties for different categories)? I have some products that belongs to the some category. Each category can have different properties. For example, * *category cars has properties color, power, ... *category pets have properties weight, age, ... Number o...
{ "language": "en", "url": "https://stackoverflow.com/questions/221584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Geolocation API on the iPhone Does anyone know whether the iPhone supports or will soon support the W3C Geolocation specification? I'm looking to build an app for mobile users, but rather than spend the time developing apps for every different platform (iPhone, Android, etc...), I'd much prefer to create a web app t...
{ "language": "en", "url": "https://stackoverflow.com/questions/221592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: How to count how many objects will be returned by an ObjectQuery? I am building an ObjectQuery like this: string query = "select value obj from Entities.Class as obj " + "where obj.Property = @Value"; ObjectQuery<Class> oQuery = new ObjectQuery<Class>(query, EntityContext.Inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/221593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get a button that is inside an asp:UpdatePanel to update the whole page? I have a button inside an update panel that I would like to update the whole page. I have set ChildrenAsTriggers="false" and UpdateMode="Conditional". I have some sample code here that demonstrates my problem. <asp:UpdatePanel ID="myFi...
{ "language": "en", "url": "https://stackoverflow.com/questions/221595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Who is using BlogEngine.Net for their blog? Does it run well? Will it scale? :P I'm thinking about using BlogEngine.NET to launch my blog. I'm a C# programmer and was wondering was BlogEngine.NET has in the belly. Does it scale well? Is it caching properly? Is it memory intensive? Can you easily add/remove functiona...
{ "language": "en", "url": "https://stackoverflow.com/questions/221598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Creation timestamp and last update timestamp with Hibernate and MySQL For a certain Hibernate entity we have a requirement to store its creation time and the last time it was updated. How would you design this? * *What data types would you use in the database (assuming MySQL, possibly in a different timezone tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/221611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "302" }
Q: Websphere 6.1 and BASIC Authentication I have a sample file for BASIC page authentication that works perfectly in tomcat but it wont work at all in websphere. Any ideas what needs to be done differently in Websphere? Thanks Damien A: Damien, Please review Chapter 7 of the Websphere 6.1 Security Handbook titled "Sec...
{ "language": "en", "url": "https://stackoverflow.com/questions/221629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mixing log4cxx and log4net I have a c++ application which logs to some file using log4cxx (RollingFile appender). I want to log into the same file, at the same time, from another module written in c#; so i configured log4net to use the same file, but i can't get the new messages in. If i deactivate the c++ logging, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Normalizing a common ID type shared across tables This is a simplified version of the problem. We have customers who send us lots of data and then query it. We are required by them to have several "public" ids they can query our data by. (Most want to query our system via the id they send along with the data, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/221652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to automate the generation of HTML output in Enterprise Architect Enterprise Architect has a way to generate the documentation in HTML/RTF/etc. that you could publish, but you have to use its GUI to do that manually. When you have your *.eap files in a CVS/Subversion server, it would be useful to have a script t...
{ "language": "en", "url": "https://stackoverflow.com/questions/221654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: ASP.NET MVC CTP (first version) fails uninstalling The offending command that msi executes is: .\devenv.com /command "View.Toolbox" /setup This fails with Date execution prevention error. devenv.exe log contains a bunch of errors like this: <entry> <record>120</record> <time>2008/10/21 12:32:01.277</time>...
{ "language": "en", "url": "https://stackoverflow.com/questions/221669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What can be done to prevent spam in forum-like apps? Are there ways except CAPTCHAs for web apps like pastie.org or p.ramaze.net? CAPTCHAs take too long for a small paste for my taste. A: You could try Honeypot CAPTCHAs. Essentially, you hide some form fields using CSS. Your users will never fill out the fields bec...
{ "language": "en", "url": "https://stackoverflow.com/questions/221674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can you use "where" to require an attribute in c#? I want to make a generic class that accepts only serializable classes, can it be done with the where constraint? The concept I'm looking for is this: public class MyClass<T> where T : //[is serializable/has the serializable attribute] A: What I know; you can not d...
{ "language": "en", "url": "https://stackoverflow.com/questions/221687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: .NET 3.5 SP1 network shares allow exe application to run I could probably find this out from somewhere else but thought it would be a nice question to have on stack overflow. .NET 2.0 by default stopped managed exe's running from network shares despite the fact you can run unmanaged exe's. I have seen mention's tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/221689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does IEnumerable inherit from IEnumerable? This might be a old question: Why does IEnumerable<T> inherit from IEnumerable? This is how .NET do, but it brings a little trouble. Every time I write a class implements IEumerable<T>, I have to write two GetEnumerator() functions, one for IEnumerable<T> and the other ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: When attaching a file to an email, does it need to be stored on the server first? I have a function that automatically exports a table into a CSV file, then I try to attach that same file into a function that will email it. I have sent attachments using html mime mail before, but I was wondering if that created CSV ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best ways to deal with UTC and daylight saving times What are the best ways of dealing with UTC Conversion and daylight saving times conversion. What are the problems and their solutions. All in C# .Net 2.0. Also any existing problems with this in .Net 2.0. A: If you use UTC times you shouldn't worry about clients ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there any good Javascript graphics libraries? After staring at this 3D cube and these triangles for a while I started wondering if there's any good reliable Javascript graphics library with basic 3D support. Any suggestion? A: Flot is a pure Javascript plotting library for jQuery. A: Here are a few physics eng...
{ "language": "en", "url": "https://stackoverflow.com/questions/221710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Cannot start workling_starling_client in rails production environment I was using god to start and monitor my starling and workling daemons. Works awesome on development machine but "workling_starling_client" refuses to start on my production machine. A: I realized that by explicitly doing export RAILS_ENV=product...
{ "language": "en", "url": "https://stackoverflow.com/questions/221711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Most "large" companies prefer WISA over LAMP? Why? If this is true, I'd like to know why. Do we see a great percentage of secure and high traffic web applications built in LAMP? A: I believe it has more to do with the sense of security that a big company gives you than with support. The business model of most open...
{ "language": "en", "url": "https://stackoverflow.com/questions/221716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Bat file to run a .exe at the command prompt I want to create a .bat file so I can just click on it so it can run: svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localhost:8000/ServiceModelSamples/service Can someone help me with the structure of the .bat file? A: A bat file has no struc...
{ "language": "en", "url": "https://stackoverflow.com/questions/221730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "159" }
Q: DateTime "null" / uninitialized value? How do you deal with a DateTime that should be able to contain an uninitialized value (equivalent to null)? I have a class which might have a DateTime property value set or not. I was thinking of initializing the property holder to DateTime.MinValue, which then could easily be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "314" }
Q: Is it possible to set a timeout on a socket in Twisted? I realize I'm probably just dumb and missing something big and important, but I can't figure out how to specify a timeout in twisted using reactor.listenUDP. My goal is to be able to specify a timeout, and after said amount of time, if DatagramProtocol.datagram...
{ "language": "en", "url": "https://stackoverflow.com/questions/221745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I force ASP.NET Ajax to use a script from the FS and not WebResource.axd, or to reduce its HTTP requests? Here is a hum-dinger of a problem that I have not found an answer for. I am using the ASP.NET ajax control toolkit controls on a few pages, which by nature want to load script resources via WebResource.a...
{ "language": "en", "url": "https://stackoverflow.com/questions/221761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Database Table or XML I'm in the process of designing a small website and was curious when an XML file can/should be substituted for a database table. There are some cases where I think using a database table may be overkill and was just wondering if anyone else has come across making this decision. Thanks! A: I'd ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Unit Tests Visual Studio Can anbyody tell me how to include a certain folder when running unit tests in visual studio. In the folder are xml-files needed by the tests. I can't seem to find anymore where I need to add this folder. Thx, Lieven Cardoen aka Johlero A: If you click on properties on the XML file, you can...
{ "language": "en", "url": "https://stackoverflow.com/questions/221769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a MySQL command to convert a string to lowercase? I have a MySQL database of keywords that are presently mixed-case. However, I want to convert them all to lowercase. Is there an easy command to do this, either using MySQL or MySQL and PHP? A: You can use the functions LOWER() or LCASE(). These can be used...
{ "language": "en", "url": "https://stackoverflow.com/questions/221774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "130" }
Q: "A control is already associated with the element" exception We are migrating a web applicatin from vs05 to vs08. This application is using Telerik web controls. After I converted the project, and run, I get the exception: "A control is already associated with the element". I traced it down to a use control that has...
{ "language": "en", "url": "https://stackoverflow.com/questions/221781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UdpClient, Receive() right after Send() does not work? Consider the following code: client.Send(data, data.Length, endpoint); byte[] response = client.Receive(ref endpoint); While, according to WireShark (network sniffer), the remote host does reply with data, the application here just waits for data forever... it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MSBuild, example that filters entire solution of .cs files I want to learn MSBuild, was wondering if someone could get me started with a simple build script to filter out my vs.net 2008 project of all files with the .cs extension. * *how do I run the build? *where do you usually store the build also? A: You ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/221800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio (2008) 'Clean Solution' Option What does this option do? It is accessible from the Build menu. A: It deletes all the object code generated during previous compilation/build. It deletes all below kind of files:- *.obj - object code *.pdb - program debug databse file *.bsc - source browser databse *....
{ "language": "en", "url": "https://stackoverflow.com/questions/221803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: Finding min and max values in an array using vb.net I need to find the min and max value in an array. The .max function works but .min keeps showing zero. Public Class Program_2_Grade Dim max As Integer Dim min As Integer Dim average As Integer Dim average1 As Integer Dim grade As String Priv...
{ "language": "en", "url": "https://stackoverflow.com/questions/221804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Debugging backwards I have two questions : * *While doing source level debugging (using any debugger) does any debugger save state of some iteration/for-loop/any code executed and allow the user to go back to that previously executed code/data state at a later point of time during debugging? The need for this is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Mylyn type plugin for Visual Studio Mylyn is a task oriented plugin that allows for example to assign a set of files to a task. Is there a Mylyn type plugin for Visual Studio? A: The closest I've found is Tasktop, by the people that created Mylyn, but it's a standalone application that doesn't integrate with Visual...
{ "language": "en", "url": "https://stackoverflow.com/questions/221809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Source for Flash based RSS1/RSS2/ATOM/RDF reader? Does anyone know where to find a good, opensource RSS reader in Flash? I see lots that implement RSS or ATOM or RSS2, but none that do all of the different RSS style formats out there. I'd prefer to keep this in Flash, as I'm trying to keep this so it'll run with min...
{ "language": "en", "url": "https://stackoverflow.com/questions/221819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sybase Developer Asks: How To Create a Temporary Table in Oracle? I'm familiar with Sybase / SQL server, where I can create a temp. table like this: SELECT * INTO #temp FROM tab1 , tab2 WHERE tab1.key = tab2.fkey SELECT * FROM #temp WHERE field1 = 'value' #temp only exists for the duration of...
{ "language": "en", "url": "https://stackoverflow.com/questions/221822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Daylight saving changes affecting UTC conversion Basically I'm converting local dates stored in the database into UTC. But I've read somewhere that daylight saving rules have changed in 2007. So does the Date.ToUniversalTime() function still work correctly. Basically the dates before 2007(when the new rules came int...
{ "language": "en", "url": "https://stackoverflow.com/questions/221824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Alternatives to Access Are there any alternatives to MS Access? Requirements: * *Portable Database file *Integrated form development for data entry *No compiling necessary. Can be modified on the fly. Two more requirements: * *Available for Linux or Windows *Does not have to be free EDIT: Emphasised Integr...
{ "language": "en", "url": "https://stackoverflow.com/questions/221826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: VirtualPathProvider with ASP.Net MVC I have implemented VirtualPathProvider class so I can keep all my views in the database instead of FileSystem of web server. It seems MVC requests aspx page correctly from Database, but unable to request related codebehind .cs files and throws error as unable to load the code-beh...
{ "language": "en", "url": "https://stackoverflow.com/questions/221828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Set BufferedImage alpha mask in Java I have two BufferedImages I loaded in from pngs. The first contains an image, the second an alpha mask for the image. I want to create a combined image from the two, by applying the alpha mask. My google-fu fails me. I know how to load/save the images, I just need the bit where I...
{ "language": "en", "url": "https://stackoverflow.com/questions/221830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Hot Deploy a Java EAR to Minimize or Eliminate Downtime of an Application on a Server? I have heard that this is what JavaRebel does but is there any other good way to deploy a new version of an EAR while allowing users to remain active on the previous version? We use JBoss for the application server... A: It's no...
{ "language": "en", "url": "https://stackoverflow.com/questions/221846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Addendum to my question from yesterday: C# class from sql database This is my link: link text Thought about it and this was my additional question: Now If i am going against stored procedures, is there an easy way without using T4, LLCodeGen, Codesmith, subsonic, etc..to obtain the input/output params and types if i...
{ "language": "en", "url": "https://stackoverflow.com/questions/221847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework model update on a remote machine I'm building a web application that uses the Entity Framework. The files are located on a remote machine, the same is for the database and the web server. In visual studio (2k8sp1), the path to the project is: \\Server\Web\XXXX Now, I've generated the EF entities fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/221862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TFS 2008 checks out code automatically on edit I am working on a Visual Studio 2008 project that is already added to TFS server. I am not sure which settings and policies have been configured for the TFS (this is done by a separate dept, not developers) Every time I make an edit to a code file , the file is checked ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Java extendable enumeration Is there a way to write an enumeration that can be extended. I have several methods that I would like to always have available for my enumerations. For example I use an enumeration for my database fields. I include the actual field name in the database. public enum ORDERFIELDS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: C++: Get MAC address of network adapters on Vista? We are currently using the NetBios method, and it works ok under XP. Preliminary tests under Vista show that it also works, but there are caveats - NetBIOS has to be present, for instance, and from what I've been reading, the order of the adapters is bound to change...
{ "language": "en", "url": "https://stackoverflow.com/questions/221894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: javafx on client side Do the clients need something else than a proper jdk and javafx compliant browser to visit javafx applets? A: JavaFX is based on download able JARs. I think there are multiple runtimes, but all of them Require JRE 1.6. The JavaFX classes will be loaded by the WebStart or Applet Classloader, so...
{ "language": "en", "url": "https://stackoverflow.com/questions/221901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Oracle PL/SQL - Are NO_DATA_FOUND Exceptions bad for stored procedure performance? I'm writing a stored procedure that needs to have a lot of conditioning in it. With the general knowledge from C#.NET coding that exceptions can hurt performance, I've always avoided using them in PL/SQL as well. My conditioning in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: .net 3.5 SP1 Bootstrapper not found for Setup I am getting a warning when trying to include the .net 3.5 sp1 prerequisite for my setup project. The warning states Prerequisite could not found for bootstrapping. Any suggestions? Thanks A: I followed the directions in 2.3.1.1 Enable Samesite for the .NET Framework 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/221913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Should I turn on Perl warnings with the command-line switch or pragma? Is there a difference between the two examples below for beginning a Perl script? If so, when would I use one over the other? example 1: #!/usr/bin/perl use warnings; example 2: #!/usr/bin/perl -w A: Another distinction worth noting, is that...
{ "language": "en", "url": "https://stackoverflow.com/questions/221919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Use grep --exclude/--include syntax to not grep through certain files I'm looking for the string foo= in text files in a directory tree. It's on a common Linux machine, I have bash shell: grep -ircl "foo=" * In the directories are also many binary files which match "foo=". As these results are not relevant and slow...
{ "language": "en", "url": "https://stackoverflow.com/questions/221921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "908" }
Q: Creating a byte array from a stream What is the prefered method for creating a byte array from an input stream? Here is my current solution with .NET 3.5. Stream s; byte[] b; using (BinaryReader br = new BinaryReader(s)) { b = br.ReadBytes((int)s.Length); } Is it still a better idea to read and write chunks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1066" }
Q: How can I stop ASP.NET Menu controls from generating inline html style elements I have a master page that contains an ASP.NET server side Menu control (System.Web.UI.WebControls.Menu) I am using the CSSFriendly adapters from here http://www.asp.net/CSSAdapters/Menu.aspx and they do make the rendered HTML much cleane...
{ "language": "en", "url": "https://stackoverflow.com/questions/221930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: cross-domain hosted Silverlight app not loading in a https webpage I want to provide silverlight app to my customer while hosting the app at my own site for streamlined maintenance. * *my Silverlight .xap is hosted in, let say, domain me-supplier.com *i want to embed it in, let say, domain my-customer.com It w...
{ "language": "en", "url": "https://stackoverflow.com/questions/221938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a performance difference between asp.net mvc and web forms? Possible Duplicate: ASP.NET MVC Performance I know there is a learning curve, but what about performance? It seems to me that web forms would be less performant, but I havent tried MVC yet to know for sure. What is everyone else experiencing? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/221944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Operations on arbitrary value types This article describes a way, in C#, to allow the addition of arbitrary value types which have a + operator defined for them. In essence it allows the following code: public T Add(T val1, T val2) { return val1 + val2; } This code does not compile as there is no guarantee that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: User Interface design books/resources for programmers I'm going to make my monthly trip to the bookstore soon and I'm kind of interested in learning some user interface and/or design stuff - mostly web related, what are some good books I should look at? One that I've seen come up frequently in the past is Don't Make...
{ "language": "en", "url": "https://stackoverflow.com/questions/221966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Load testing WCF service (hosted on IIS) What tools are there that I can test out a WCF service? I am expecting allot of load so I want to have an idea how much a single server can handle. A: I wrote my own tool (WCFStorm). These are the features: General: ◦Dynamically invoke and test WCF Services ◦Dynamically inv...
{ "language": "en", "url": "https://stackoverflow.com/questions/221973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Returning a gif image from a method I am creating an application in java which will be the part of an external application. My application contains a viewport which shows some polygons and stuff like that. The external application needs to get the image of the viewport in gif format. For that it calls a method in an...
{ "language": "en", "url": "https://stackoverflow.com/questions/221976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to tell if Excel Application is in cell-edit mode? I'm writing an Excel Addin using COM Interop from .net. I have a command that pops up a dialog, and from the dialog I do some work like collecting data from the used range of several sheets. The problem is that if a cell is in edit mode, some of the calls that I...
{ "language": "en", "url": "https://stackoverflow.com/questions/221984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Add files to a VS.Net solution/project from Vim Pretty much what the title says. Is there a way to add files to a vsnet project from inside Vim? I work in a group of devs, and all of our code has solutions and projects as you would expect. I would like to use Vim, and was hoping for a way to maintain those project f...
{ "language": "en", "url": "https://stackoverflow.com/questions/221989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Front-End for MS Access migration? Background I work for a large organization which has thousands of MS Access applications floating around. I didn't write any of these - in fact, most of the original authors have long since left the company - but from time to time another Access app lands on my desk for support. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/221995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to display events in the calendar using Ruby? I am building a calendaring application in ruby on rails. I am using my own schema for storing events, but I don't know how to display events in calendar, and also how to add a calendar in my application. Will I have to write code to display calendar or can I use a...
{ "language": "en", "url": "https://stackoverflow.com/questions/221999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET MVC: PathInfo Limit? One of the limitations of ASP.NET 2.0 was that PathInfo was limited to 255 characters. Is that limit a problem in ASP.NET MVC urls, or is there any sort of length limit with ASP.NET MVC routing urls? A: As far as I know, the limit is imposed by the browser, not ASP.NET. For example, Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/222011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Guidelines for using the ASP.NET Wizard efficiently A web app our group has put together uses the ASP.NET Wizard control. Each step in the wizard contains a corresponding custom UserControl. The trouble is that as you go through the wizard steps, all the UserControls are loaded on each step, rather than just the on...
{ "language": "en", "url": "https://stackoverflow.com/questions/222013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Target Framework Mismatch When adding a reference to a project I sometimes see the message... "The Target Framework version for the project is higher than the current project Target Framework version. Would you like to add this reference to your project anyway?" I understand what the message is indicating but can an...
{ "language": "en", "url": "https://stackoverflow.com/questions/222015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: what is JMS good for? I'm looking for (simple) examples of problems for which JMS is a good solution, and also reasons why JMS is a good solution in these cases. In the past I've simply used the database as a means of passing messages from A to B when the message cannot necessarily be processed by B immediately. A h...
{ "language": "en", "url": "https://stackoverflow.com/questions/222017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: How to format numbers in JavaScript? How to format numbers in JavaScript? * *JavaScript culture sensitive currency formatting A: The best you have with JavaScript is toFixed() and toPrecision() functions on your numbers. var num = 10; var result = num.toFixed(2); // result will equal 10.00 num = 930.9805; resu...
{ "language": "en", "url": "https://stackoverflow.com/questions/222018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to use MySQL prepared statement caching? How do i take advantage of MySQL's ability to cache prepared statements? One reason to use prepared statements is that there is no need to send the prepared statement itself multiple times if the same prepared statement is to be used again. Class.forName("com.mysql.jdbc....
{ "language": "en", "url": "https://stackoverflow.com/questions/222019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SharePoint modification forms in state machine workflows I've been perplexed lately working on a SharePoint state machine workflow. I was hoping to add some modification forms to the workflow so that I could reassign a task while in its state. Unfortunately, modification forms don't seem to be documented for use w...
{ "language": "en", "url": "https://stackoverflow.com/questions/222026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to expose an EJB as a webservice that will later let me keep client compatibility when ejb changes? Lots of frameworks let me expose an ejb as a webservice. But then 2 months after publishing the initial service I need to change the ejb or any part of its interface. I still have clients that need to access the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/222028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Drag WPF Popup control the WPF Popup control is nice, but somewhat limited in my opinion. is there a way to "drag" a popup around when it is opened (like with the DragMove() method of windows)? can this be done without big problems or do i have to write a substitute for the popup class myself? thanks A: Building of...
{ "language": "en", "url": "https://stackoverflow.com/questions/222029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How do I create 7-Zip archives with .NET? How can I create 7-Zip archives from my C# console application? I need to be able to extract the archives using the regular, widely available 7-Zip program. Here are my results with the examples provided as answers to this question * *"Shelling out" to 7z.exe - this is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/222030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "114" }
Q: ASP.NET Tab Controls I'm currently attempting to create a tabbed interface in a web application, and based on my search, there aren't any 'built in' tab controls in ASP.NET. There are some in the ASP.NET AJAX downloadable toolkit, as well as a wealth of 'pay for use' third party Tab Controls. My question is: What ...
{ "language": "en", "url": "https://stackoverflow.com/questions/222040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the simplest way of adding one to a binary string in Perl? I have a variable that contains a 4 byte, network-order IPv4 address (this was created using pack and the integer representation). I have another variable, also a 4 byte network-order, subnet. I'm trying to add them together and add one to get the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/222043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I update a label that is in a ControlTemplate of a Toolbar in WPF? I have a ControlTemplate that is made up of a ToolBarTray and a ToolBar. In my ToolBar, I have several buttons and then a label. I want to be able to update the label in my toolbar with something like "1 of 10" My first thought is to prog...
{ "language": "en", "url": "https://stackoverflow.com/questions/222052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: BaseType of a Basetype this is my first question here so I hope I can articulate it well and hopefully it won't be too mind-numbingly easy. I have the following class SubSim which extends Sim, which is extending MainSim. In a completely separate class (and library as well) I need to check if an object being passed t...
{ "language": "en", "url": "https://stackoverflow.com/questions/222053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Webform_SaveScrollPositionSubmit is not defined Cut a short story even shorter, Have a asp.net page with MaintainScrollPositionOnPostback="true" in the page directive (And I tried setting the same to true in page_load), but I get the above javascript error (Webform_SaveScrollPositionSubmit is not defined) and im gu...
{ "language": "en", "url": "https://stackoverflow.com/questions/222058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the difference between creating a UNIQUE index as "index" or as "constraint" in SQL Server? When creating an index over a column that is going to be UNIQUE (but not the primary key of the table), SQL server let's me choose a few options: 1) I can choose for it to be a Constraint or an Index. I'm guessing this...
{ "language": "en", "url": "https://stackoverflow.com/questions/222065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to speed up WPF programs? I love programming with and for Windows Presentation Framework. Mostly I write browser-like apps using WPF and XAML. But what really annoys me is the slowness of WPF. A simple page with only a few controls loads fast enough, but as soon as a page is a teeny weeny bit more complex, like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/222070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Has Microsoft paid support been worth it to you? I saw this quote in this question: MS support is poor, except when you've paid for a support contract... then its very very good. – gbjbaanb This got me thinking. My company has had 2 support incidents with Microsoft a few months ago (before Stack Overflow wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/222072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Unknown token received from SQL Server I got this error when trying to run a query in SQL server query analyzer. What is the reason? A: If you're using cursors, then you've probably closed the cursor. Check out MSDN for more information (http://support.microsoft.com/kb/151693) If you're not using cursors, then it c...
{ "language": "en", "url": "https://stackoverflow.com/questions/222086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In C#, if 2 processes are reading and writing to the same file, what is the best way to avoid process locking exceptions? With the following file reading code: using (FileStream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.None)) { using (TextReader tr = new StreamReader(fileSt...
{ "language": "en", "url": "https://stackoverflow.com/questions/222089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How to run Eclipse launch configurations programmatically? I'm finding it difficult to phrase this question well, as there are quite a few generic terms (run, configuration, launch, etc.). Here goes: You can save run configurations in a .launch file. (in the Run Configuration Dialog, under the Common tab, Save as a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/222093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Any way to add some default assemblies to resolve types from in Unity / ObjectBuilder? I'm working on my 1st project using MS Unity IoC framework. If I have this in my unity configuration: <container name="TestBusiness"> <types> <type type="PFServer.DataAccess.TestDataAccess" /> Then I get the error: C...
{ "language": "en", "url": "https://stackoverflow.com/questions/222102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting the Java thread id and stack trace of run-away Java thread On my busiest production installation, on occasion I get a single thread that seems to get stuck in an infinite loop. I've not managed to figure out who is the culprit, after much research and debugging, but it seems like it should be possible. Her...
{ "language": "en", "url": "https://stackoverflow.com/questions/222108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: C++/CLI from MFC extension DLL I have an MFC application that uses several MFC extension DLL's. I want this app (and several other similar apps) to be able to access some parts of the .net framework. I wrote a C# library to do the .net work I want and was hoping to be able to write an MFC dll to hide all the C++/CLI...
{ "language": "en", "url": "https://stackoverflow.com/questions/222113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Garbage collection and runtime type information The fixnum question brought my mind to an other question I've wondered for a long time. Many online material about garbage collection does not tell about how runtime type information can be implemented. Therefore I know lots about all sorts of garbage collectors, but n...
{ "language": "en", "url": "https://stackoverflow.com/questions/222117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server 2005 - Error_Message() not showing full message I have encapsulated a backup database command in a Try/Catch and it appears that the error message is being lost somewhere. For example: BACKUP DATABASE NonExistantDB TO DISK = 'C:\TEMP\NonExistantDB.bak' ..gives error: Could not locate entry in sysdatabas...
{ "language": "en", "url": "https://stackoverflow.com/questions/222119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Data structure definitions / templates in RPG(LE) Say I have a data structure, such as d dog DS qualified d name 20 d breed 20 d birthdate 8 0 I can then define d poochie likeds(dog) and use...
{ "language": "en", "url": "https://stackoverflow.com/questions/222127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best approach with dynamic classes using Python globals() I'm working on a web application that will return a variable set of modules depending on user input. Each module is a Python class with a constructor that accepts a single parameter and has an '.html' property that contains the output. Pulling the class dynam...
{ "language": "en", "url": "https://stackoverflow.com/questions/222133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How far should you break up stylesheets? I'm building a new site for my company, and I'm at the stage where I've created the html mockup of the first page. I'm going to use this as a basis for the rest of the site. I'm thinking of organising my stylesheet better now I've got the design looking consistent cross-brows...
{ "language": "en", "url": "https://stackoverflow.com/questions/222139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How do I change the top value name in a text box on a Cognos Report? The default value for the first item in a drop down list is the name of the database field. I need to change it to a more user friendly name. How do I change the value? A: add a HTML Item onto the prompt page and add the following as an HTML item:...
{ "language": "en", "url": "https://stackoverflow.com/questions/222148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: .NET COM Interop Method Signature What interop signature would you use for the following COM method? I am interested particularly in the final two parameters, and whether to try to use MarshalAs with a SizeParamIndex or not. HRESULT GetOutputSetting( DWORD dwOutputNum, LPCWSTR pszName, WMT_ATTR_DATATYPE* ...
{ "language": "en", "url": "https://stackoverflow.com/questions/222161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why destructor is not called on exception? I expected A::~A() to be called in this program, but it isn't: #include <iostream> struct A { ~A() { std::cout << "~A()" << std::endl; } }; void f() { A a; throw "spam"; } int main() { f(); } However, if I change last line to int main() try { f(); } catch (...) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/222175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }