text
stringlengths
8
267k
meta
dict
Q: Where to find Paint.NET multithreading white paper? Like I wrote elsewhere, I seem to be sure that a white paper by Rick Brewster about multithreading used in Paint.NET once existed. I am not able to find any reference to this white paper again however. Does it (still) exist? And if so, where? EDIT: Found out in co...
{ "language": "en", "url": "https://stackoverflow.com/questions/449883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are there cases where a singleton is the best option? There is a lot of discussion on this site about why singletons should be avoided but are there any cases where a singleton makes sense and is the best option? An example where I think that a singleton is the best option is when implementing an Identity Map where ...
{ "language": "en", "url": "https://stackoverflow.com/questions/449885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sending E-mail using C# I need to send email via my C# app. I come from a VB 6 background and had a lot of bad experiences with the MAPI control. First of all, MAPI did not support HTML emails and second, all the emails were sent to my default mail outbox. So I still needed to click on send receive. If I needed to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/449887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: MVC View Problem I have an mvc application running on IIS 7.0 on windows vista.The appication is redirecting to the proper controller and action.But i am getting an error saying view is not found in the path, when the view is present at the particular path. Route is as shown below. routes.MapRoute( "Default", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/449894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I 'drop' a PHP request without replying? I am not completely sure that this is possible from within PHP or even the HTTP protocol in depth. Is it possible to receive PHP script to run when it is requested but then the script drops the connection? Without replying? Hopefully my question makes sense. (I am using A...
{ "language": "en", "url": "https://stackoverflow.com/questions/449895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Communicating with the web through a C# app? Although i can grasp the concepts of the .Net framework and windows apps, i want to create an app that will involve me simulating website clicks and getting data/response times from that page. I have not had any experience with web yet as im only a junior, could someone e...
{ "language": "en", "url": "https://stackoverflow.com/questions/449910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to tell if my Java component is in an Applet? I have a Component which I am using both in a standalone Java application as well as in a Java applet. How can I figure out from within the Component whether my component is in an applet? Also, once I figure out that I'm running in an Applet, how can I get access to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/449915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Single-page display, multi-page print problem A web page displays the following:- * *Bob *Fred *John However when the user (that would be me) prints the web page I want multiple repeats of this output with slight variations to be printed on separate pages :- * *Bob *Fred *John >page break here< * *B...
{ "language": "en", "url": "https://stackoverflow.com/questions/449917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is it possible to parameterize a query inside pl sql? The stored procedures being written here currently concats the parameters to the queries: SELECT * FROM Names WHERE Name = ' || prmName || ' ORDER BY ' || prmSortField Is it possible to parameterize this query inside the stored procedure? Possibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/449922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error: failed to open database with message 'not an error'.' I am making an app with many database operations. Since SQLite caches data, in my applicationDidReceiveMemoryWarning method, I am closing the database and opening it aga...
{ "language": "en", "url": "https://stackoverflow.com/questions/449933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there already some std::vector based set/map implementation? For small sets or maps, it's usually much faster to just use a sorted vector, instead of the tree-based set/map - especially for something like 5-10 elements. LLVM has some classes in that spirit, but no real adapter that would provide a std::map like i...
{ "language": "en", "url": "https://stackoverflow.com/questions/449940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What is the rationale behind the behavior of constructor pointer in JavaScript? Considering the simplistic scenario: function Base() {} function Child() {} Child.prototype = new Base; I wonder why would an instance of Child have constructor property set to Base and not to Child? A: It's all tied to how inheritanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/449941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any BDD success stories out there? Having written a small article on BDD, I got questions from people asking whether there are any cases of large-scale use of BDD (and specifically NBehave). So my question goes to the community: do you have a project that used BDD successfully? If so, what benefits did you get, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/449944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: WinForms/WebForms controls' default case musings Why does the WinForms default name for controls start with lowercase, but is uppercase for WebForms? What's the likely rationale for this? A: Probably lost to the depths of time, and an artifact of different teams working on different designers. This next note doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/449945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem in storing into ms-access as unicode I have one JSP page which has one text field. I'm entering some kannada characters. I'm able to encode it in UTF-8 format and I'm passing this value to another JSP. In an alert box, I'm getting the correct characters, but when I store into MS-access by using JDBC-ODBC dri...
{ "language": "en", "url": "https://stackoverflow.com/questions/449951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Team Build, copy file target issue I have this team build target setup to after compile <Target Name="AfterCompile"> <Copy SourceFiles="$(SolutionRoot)\Development_VS2008\MyCompanyName.SharePoint.12" DestinationFolder="c:\testing"></Copy> </Target> I want the folder structure copied from source to destinati...
{ "language": "en", "url": "https://stackoverflow.com/questions/449952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Upgrading from MVC Preview 3 to Beta/RC We have a web app that is using MVC Preview 3. I'm new to the project and relatively new to ASP.NET MVC itself - soon we will be looking to upgrade to either the Beta or RC version. * *Are there any major difference between preview 3 and Beta version that would require exte...
{ "language": "en", "url": "https://stackoverflow.com/questions/449962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get params inside a Ruby gem It there a way to read the params inside a class of a gem I tried require "cgi" and require "action_pack" but no chance... Any clues ? Thanx A: Be more precise. The params of what? A submitted form? If yes, you could do that: require "cgi" ... cgi = CGI.new h = cgi.params login = h...
{ "language": "en", "url": "https://stackoverflow.com/questions/449963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IDE for C application development that you admire most I am looking for a good Integrated development environment for developing applictaions in C language for both windows and linux. IDE should have: * *good interface, *easy file management, *auto filling and *any advanced options. Tell me which IDE you m...
{ "language": "en", "url": "https://stackoverflow.com/questions/449964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Implementing an ADO.NET layer Are there any tutorials or how-to's that explain how to implement an ADO.NET layer? That would include implementing a Connection class, etcetera. I need to do this because I am querying an old proprietary system and I want to wrap the old APIs properly. A: See "Building a Custom Data ...
{ "language": "en", "url": "https://stackoverflow.com/questions/449969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running Cruise Control .NET as a Service I've been configuring and testing CCNet for a little while now using Virtual PC to host it. Everything went well and it was decided to transfer the configuration to a server location - which went as well as could be expected. A few tweaks and kicks and i had it running as bef...
{ "language": "en", "url": "https://stackoverflow.com/questions/449970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can a piece of code, if reusable and applicable to different contexts be classified a pattern? What constitutes a pattern ? If i have a template/code that is reusable and can be applied to other similar situations, can it be called a pattern ? The following is what i have created. It is a binary approach to handling...
{ "language": "en", "url": "https://stackoverflow.com/questions/449978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Confusing evaluation of $args in PowerShell The $args variable should, by definition, contain all arguments passed to a script function. However if I construct a pipeline inside my function, the $args variable evaluates to null. Anyone knows why? See this example: function test { 1..3 | % { echo "args inside pipelin...
{ "language": "en", "url": "https://stackoverflow.com/questions/449981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Create RPM package from ANT script under Windows I need to create an RPM package from an ANT script that runs on a Windows computer. This package must contain the result classes from the build plus some other, additional resources. I guess there should be some program somewhere that can be invoked from the command ...
{ "language": "en", "url": "https://stackoverflow.com/questions/449983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: VB.NET FileSystemWatcher Multiple Change Events I have the following code: Imports System.IO Public Class Blah Public Sub New() InitializeComponent() Dim watcher As New FileSystemWatcher("C:\") watcher.EnableRaisingEvents = True AddHandler watcher.Changed, AddressOf watcher_C...
{ "language": "en", "url": "https://stackoverflow.com/questions/449993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Free compression library for C# which supports 7zip (LZMA) I have a program (written in C#) that reads/writes its data directly (direct file access without server) to firebird database files. For a better exchange I want to (un)compress them on import/export for a better exchange over the internet without the need o...
{ "language": "en", "url": "https://stackoverflow.com/questions/449998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: highlighting the selected button in a buttonbar(flex) highlighting the selected button in a buttonbar how to do it? A: ToggleButtonBar does this for you
{ "language": "en", "url": "https://stackoverflow.com/questions/450006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get serial number of USB-Stick in C# How do I get the internal serial number of a USB-Stick or USB-HardDrive in C#? A: A solution using Win32 is described here Edit: the original link seems to have gone missing. The above is a cached copy, and the author also wrote some sample code in VB.Net which is still o...
{ "language": "en", "url": "https://stackoverflow.com/questions/450009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Serialize a FileStream for transport See also this question: Can I pass a System.Net.MailMessage to a WCF service? I'd like to add attachments to the mail being sent. Attachments are either files on the local disc, or dynamically created Streams. A WCF contract can contain a Stream, but only when all arguments are o...
{ "language": "en", "url": "https://stackoverflow.com/questions/450014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting the .NET framework setting for In my web.config I have the standard element; <compilation debug="true" defaultLanguage="c#"> I know I could use [Conditional("DEBUG")] on methods, or use some pre-compiler if statement like #if DEBUG, but what I am looking for is the built-in .NET framework setting that lets...
{ "language": "en", "url": "https://stackoverflow.com/questions/450017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: .net runtime tries to use the wrong version of an assembly I have an application which references the assembly "Microsoft.Xna.Framework, Version=2.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d". I have created an installer project that installs this assembly in the GAC (by running the XNA redist installer)...
{ "language": "en", "url": "https://stackoverflow.com/questions/450018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I change extended latin characters to their unaccented ASCII equivalents? I need a generic transliteration or substitution regex that will map extended latin characters to similar looking ASCII characters, and all other extended characters to '' (empty string) so that... * *é becomes e *ê becomes e *á b...
{ "language": "en", "url": "https://stackoverflow.com/questions/450026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Uninstalling an MSI file from the command line without using msiexec msiexec is command prompt software that installs an MSI program. But I have found that you can install an MSI file from the command line by just typing in the name of the MSI file on the command line. But in order to uninstall the MSI file, it seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/450027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Dynamic CSS rebrand and overriding in .Net I've been tasked with putting a mechanism in place to change the css colours in a .Net site dynamically. The purpose is to ensure that when our internal application sites are built and deployed to our UAT servers that the UI of the site is identifiably different from the li...
{ "language": "en", "url": "https://stackoverflow.com/questions/450032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Playing sound notifications using Javascript? How can I do that, so whenever a user clicks a link we play a sound? Using javascript and jquery here. A: JavaScript Sound Manager: http://www.schillmania.com/projects/soundmanager2/ A: $('a').click(function(){ $('embed').remove(); $('body').append('<embed src=...
{ "language": "en", "url": "https://stackoverflow.com/questions/450033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: How to programmatically get DLL dependencies How can I get the list of all DLL dependencies of a given DLL or EXE file? In other words, I'd like to do the same as the "Dependency walker" tool, but programmatically. What is the Windows (ideally .NET) API for that? A: NOTE: Based on the comments from the post below,...
{ "language": "en", "url": "https://stackoverflow.com/questions/450039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Why is this OpenGL ES code slow on iPhone? I've slightly modified the iPhone SDK's GLSprite example while learning OpenGL ES and it turns out to be quite slow. Even in the simulator (on the hw worst) so I must be doing something wrong since it's only 400 textured triangles. const GLfloat spriteVertices[] = { 0.0f...
{ "language": "en", "url": "https://stackoverflow.com/questions/450042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Executing a manual failover (no witness, high protection mode) I can execute a fail-over if both the primary and the mirror partners are available, but I can't figure out how to do a manual fail-over when the principal is switched off or unplugged from the network (i.e. fails). I tried using: ALTER DATABASE myMirror...
{ "language": "en", "url": "https://stackoverflow.com/questions/450048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to copy a recursive directory structure in TFS Team Build? Is it possible to copy a directory in a team build target? A: <Copy SourceFiles="@(SourceItemGroup)" DestinationFolder="$(YourDir\SubDir\%(RecursiveDir)" /> A: I've found the easiest way (if you want to be a bit more stringent about what to include/ e...
{ "language": "en", "url": "https://stackoverflow.com/questions/450050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: zlib + masm Can zlib be used with masm without all the c runtime libraries such as msvcrt.dll and many others? If so, can you tell me how? A: zlib does include optimised assembler for various processors and assemblers including masm. But that assembler is only for the innermost parts of zlib. It's not, in other w...
{ "language": "en", "url": "https://stackoverflow.com/questions/450051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any way to draw a control on some other control in C#? I would like to draw a control on some other control in it's overriden paint event. By drawing I mean real drawing, not placing the control inside the other control. Is there any nice way to do that? A: Try the static methods on the ControlPaint class....
{ "language": "en", "url": "https://stackoverflow.com/questions/450055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to display gridview or table instead of listbox which appears when autocomplete is enabled? I want to develop YUI auto-complete like auto-complete in my program in c#.net (VS2005). It a windows application. Is it possible to show search result in gridview or table when characters are entered in textbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/450058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I set the selected item in a comboBox to match my string using C#? I have a string "test1" and my comboBox contains test1, test2, and test3. How do I set the selected item to "test1"? That is, how do I match my string to one of the comboBox items? I was thinking of the line below, but this doesn't work. combo...
{ "language": "en", "url": "https://stackoverflow.com/questions/450059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "231" }
Q: Detect which monitor shows the Window I do have main application JFrame window which can include different components. I open a self implemented OnScreenKeyboard when the user select a editable textfield. The OSK is also a JFrame window. When the user drag the main window to another monitor, the OSK should also be s...
{ "language": "en", "url": "https://stackoverflow.com/questions/450069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to count the number of digits assembly code? assume that i have a program written in assembly language which takes an input sentence from the user ( combination of digits and letters) and on the next line will display the number of small letters in the sentence. Also display the number of digits in the sentence....
{ "language": "en", "url": "https://stackoverflow.com/questions/450083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Conceptual overview of WCF security model? I'm working with WCF at the moment and attempting to implement a custom security model based around an API key and signature (similar to how Facebook/Flickr/OAuth etc. work). There are a while bunch of classes like ServiceAuthorizationManager, SecurityToken, SecurityTokenVa...
{ "language": "en", "url": "https://stackoverflow.com/questions/450089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I work around SQL Server - Inline Table Value Function execution plan variation based on parameters? Here is the situation: I have a table value function with a datetime parameter ,lest's say tdf(p_date) , that filters about two million rows selecting those with column date smaller than p_date and computes s...
{ "language": "en", "url": "https://stackoverflow.com/questions/450091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Hiding Elements referring to my previous question I came accross to another problem. The div I am showing includes links in it. When I click on them, the div disappears as expected but not as desired.. (we want it to disappear whenever we click on anywhere on page... but the links inside them) the code currently be...
{ "language": "en", "url": "https://stackoverflow.com/questions/450093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: View sessions in Visual Studio when debugging a asp.net application Is there a way to view ongoing sessions in Visual studio while debugging a asp.net application? And if there is, can you kill the sessions somehow? I need this cause I need to check what, and how to fix, the problems that occurs when a session indee...
{ "language": "en", "url": "https://stackoverflow.com/questions/450103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling batch files with make and making changes persistent I'm programming with Visual C++ Express on the command line using makefiles (GNU Make). For this to work, I have to call the Visual Studio batch file vsvars32.bat to set up the environment. This has to be done everytime I open a new cmd.exe, before using ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/450105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Find out if pipe's read end is currently blocking I'm trying to find out if a child process is waiting for user input (without parsing its output). Is it possible, in C on Unix, to determine if a pipe's read end currently has a read() call blocking? The thing is, I have no control over the programs exec'd in the chi...
{ "language": "en", "url": "https://stackoverflow.com/questions/450106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does compiling a VCC .sln run in the background with no stdout? I'm trying to compile a project from the command line, like this: devenv.exe myproj.sln /build release It looks like the code compiles well, but that's not all I need: I want to be able to capture the output (e.g. warnings, errors) from the compile...
{ "language": "en", "url": "https://stackoverflow.com/questions/450107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regular Expression to extract src attribute from img tag I am trying to write a pattern for extracting the path for files found in img tags in HTML. String string = "<img src=\"file:/C:/Documents and Settings/elundqvist/My Documents/My Pictures/import dialog step 1.JPG\" border=\"0\" />"; My Pattern: src\\s*=\\s*\"...
{ "language": "en", "url": "https://stackoverflow.com/questions/450108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How do I popup the compose / create mail dialog using the user's default email client? The use case is simple. At a certain point of time, I need to be able to show the user his familiar compose email dialog (Outlook or other) with * *fields like from, to, Subject already filled up with certain application deter...
{ "language": "en", "url": "https://stackoverflow.com/questions/450115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: User-friendly wiki for end-users/customers Currently our team is using MoinMoin as a wiki for IT and it's so nice. We want to promote to use wiki for end-users because some of them are interested. On the wiki we'll share and edit requirements of aplications, for instance. I think MoinMoin is not the more user-friend...
{ "language": "en", "url": "https://stackoverflow.com/questions/450124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++ Custom GUI Button Question I am designing a graphical application for which I've decided to write my own menu. I would like this menu to be platform independent. For the time being, my menu will mostly consist of a number of buttons. My issue involves the handling of events when a button is clicked. My dilem...
{ "language": "en", "url": "https://stackoverflow.com/questions/450136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting back control of a domain taken by the "Domain Registry of America" scam One of my clients ended up getting sucked into the "Domain Registry of America" scam letters that they send out and has now effectively lost the domain to them. My clients name is still the registrant, admin and technical contact but all...
{ "language": "en", "url": "https://stackoverflow.com/questions/450141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Equivalent of CType in C# to convert Dropdownlist which is in EditItemTemplate of Gridview I am using a Gridview to display some data. In EditItemTemplate of gridview I am using DropDownList for one of the column of gridview. DataSource of gridview is a table "UserEntries". And Datasource of Dropdown is another tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/450142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programatically configure individual WCF operations with different WCF configurations I am just getting started with WCF and would like to set up a distributable networked system as follows: (but am not sure if it is possible.) I have a .net client that has business logic. It will need various data from various sour...
{ "language": "en", "url": "https://stackoverflow.com/questions/450151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: smartphones and buttons The .net compact framework on smartphones doesn't know the button component, the reasons are unknown to me. My question is: how do people usually get over this problem? I have know smartphone near me to check out, only a pda phone, which of course has touch screen and supports the button comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/450153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Query a database from a search with empty values I am using asp .net web form search in c#, for example with fields: - name - fruit I want to write a sproc that can search name or fruit. If I knew that both would have values, I would pass two parameters into the sproc and would write: Select * from myTable where nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/450159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you achieve field level security in ASP.Net? I have an .aspx form with 20 fields that must be disable based on a users role and a status of a order record. Currently the application has 5 roles and 3 status, so I have 300 different possible conditions that I have to account for. My first thought is to store...
{ "language": "en", "url": "https://stackoverflow.com/questions/450160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Java/XSLT: Cannot find a matching 1-argument function I get the following error: javax.servlet.ServletException: Cannot find a matching 1-argument function named {http://exslt.org/dynamic}evaluate() at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841) at org.apache.jasper.runt...
{ "language": "en", "url": "https://stackoverflow.com/questions/450165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Programmatically set DLL search path in VBA macro The problem * *I have a word template which uses VBA's Declare statement to link to a dll, whose path can be determined within the VBA macro *I want to delploy this to the users %APPDATA%\Microsoft\Word\STARTUP directory *I DON'T want to permanently change the u...
{ "language": "en", "url": "https://stackoverflow.com/questions/450177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: A priority queue which allows efficient priority update? UPDATE: Here's my implementation of Hashed Timing Wheels. Please let me know if you have an idea to improve the performance and concurrency. (20-Jan-2009) // Sample usage: public static void main(String[] args) throws Exception { Timer timer = new HashedW...
{ "language": "en", "url": "https://stackoverflow.com/questions/450180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Apache Roller Weblogger software I am creating a blog using Apache Roller Weblogger software, am very new to this.. I am deploying it on the Tomcat, and m using the PostgreSQL database.. I did all the configuration in the roller-custom.properties.. If i give the url http://localhost:8080/roller/ in the browser I am ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sending form without mail client everubody! can you help me with my trouble? I'm trying to create form for filling resume. User should not use mail client to submit form. How can I realize this idea on javascript or PHP? A: First: You need a server based script. Without any server interaction, no mail can be sent....
{ "language": "en", "url": "https://stackoverflow.com/questions/450186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Seam JNDI injection How do you inject a JNDI value in Seam? I read that you can use @Resource or @JndiInject, but it is not working. A: If you don't need to have an EJB as a Seam component, just use the standard InitialContext().lookup("something"). If you want to use an EJB that can be accessed from JNDI and to be...
{ "language": "en", "url": "https://stackoverflow.com/questions/450195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What free CRMs are available for my website? Searched hard but all I found was a page listing "commercial open source" CRMs, i.e. what you have to pay for. On the lookout for free CRMs so I don't have to build one! A: I was looking the same in these days. Looks like SugarCRM being a great choice. I played a lot yes...
{ "language": "en", "url": "https://stackoverflow.com/questions/450204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Need help in resolving error in predicates for And operator in LINQ I got into problem of predicate And operator. Code is : SQLDBDataContext sqlDS = new SQLDBDataContext(); Expression<Func<User,bool>> pred = null; //delcare the predicate to start with. if (Request["Name"] != null && ! Request["Name"].Equals(string....
{ "language": "en", "url": "https://stackoverflow.com/questions/450206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Lightweight Portable Editors I'm looking for free lightweight editors that can be run directly from a flash drive, without any install. I would like editors that support as many languages as possible, I have notepad++ but I don't particularly care for it. Edit: Forgot to mention I'm looking for editors for windows. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to check if a file can be created inside given directory on MS XP/Vista? I have a code that creates file(s) in user-specified directory. User can point to a directory in which he can't create files, but he can rename it. I have created directory for test purposes, let's call it C:\foo. I have following permiss...
{ "language": "en", "url": "https://stackoverflow.com/questions/450210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Object-level transaction management pattern I'm trying to find out the best way to handle transactions at object level (not database level). Short example: 4 objects A, B, C and D. A starts a transaction and calls methods in B and C. Whithin this transaction C is also calling D. The methods being called aren't suppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/450215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I pass a parameter to this function? I have the following code: [replyAllBtn addTarget:self.target action:@selector(ReplyAll:) forControlEvents:UIControlEventTouchUpInside]; - (void)replyAll:(NSInteger)tid { // some code } How can I send a parameter to the ReplyAll function? A: The replyAll method should...
{ "language": "en", "url": "https://stackoverflow.com/questions/450222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: JSTL Exception while comparing a string I have the next code in a JSTL file: <c:choose> <c:when test="${application.lodging eq 'F'}"><bean:message key="courseapplication.lodgingF"/></c:when> <c:when test="${application.lodging eq 'H'}"><bean:message key="courseapplication.lodgingH"/></c:when> <c:when te...
{ "language": "en", "url": "https://stackoverflow.com/questions/450226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generic List - moving an item within the list So I have a generic list, and an oldIndex and a newIndex value. I want to move the item at oldIndex, to newIndex...as simply as possible. Any suggestions? Note The item should be end up between the items at (newIndex - 1) and newIndex before it was removed. A: I created...
{ "language": "en", "url": "https://stackoverflow.com/questions/450233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "193" }
Q: To underscore or to not to underscore, that is the question Are there any problems with not prefixing private fields with an underscore in C# if the binary version is going to be consumed by other framework languages? For example since C# is case-sensitive you can call a field "foo" and the public property "Foo" and...
{ "language": "en", "url": "https://stackoverflow.com/questions/450238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "166" }
Q: Executing command line programs from within python I'm building a web application that will is going to manipulate (pad, mix, merge etc) sound files and I've found that sox does exactly what I want. Sox is a linux command line program and I'm feeling a little uncomfortable with having the python web app starting new...
{ "language": "en", "url": "https://stackoverflow.com/questions/450285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "335" }
Q: How to set Python Path on Windows Vista? I am installing active python, django. I don't know how to set the python path in vista environment system. First of all will it work in vista? A: Temporary Change To change the python path temporarily (i.e., for one interactive session), just append to sys.path like this: >...
{ "language": "en", "url": "https://stackoverflow.com/questions/450290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: GWT label widget receiving focus when pressing tab key Current solution: * *user clicks on label and it is switched with a textarea to allow edit *user can leave edit with tab / enter and textarea is switched back to a label The problem is the user has to click on the label with a mouse to get into edit mode. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Deleting lines from wx.TextCtrl I am using a wx.TextCtrl to output text from a network daemon. As the output is quite verbose, the size of text in the TextCtrl can become huge (BTW is there any limitation on the size of the contents of a TextCtrl?) I would like to delete the top N lines from the TextCtrl when TextCt...
{ "language": "en", "url": "https://stackoverflow.com/questions/450306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do Google Maps do their panoramas? How do Google Maps do their panoramas in Street View? Yeah, I know its Flash, but how do they skew bitmaps with Correct Texture Mapping? Are they doing it on the pixel-level like most Flash 3D engines?, or just applying some tricky transformation to the Bitmaps in the Movieclip...
{ "language": "en", "url": "https://stackoverflow.com/questions/450307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Tracking users referral (PHP / MySQL) Greetings, Is there any script that keep track users referral and set cookie on users referred so whenever they leave site and come back, it still will be count as referred by person.. thanks. A: //To set the cookie if($refered) { setcookie('sitenameReferal', 'REFERER'); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: html element ignores CSS left+right properties? I've noticed that the <input> element in HTML ignores the CSS pair of "left" and "right" properties. Same for the pair "top" and "bottom". See the sample code below: <html> <head> <style><!-- #someid { position: absolute; le...
{ "language": "en", "url": "https://stackoverflow.com/questions/450316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Japanese Encoding subject in Outlook 07 I am trying to read and process Japanese emails. I have set my regional and language options to East Asian and languages for non-Unicode in the XP control panel. I have to process .pst files and preserve the true metadata and I am having trouble with the subject line and somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/450328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: F# keyword 'Some' F# keyword 'Some' - what does it mean? A: Can check out Discriminated Unions in F# for more info on DUs in general and the option type (Some, None) in particular. As a previous answer says, Some is just a union-case of the option<'a> type, which is a particularly common/useful example of an alge...
{ "language": "en", "url": "https://stackoverflow.com/questions/450335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Silverlight and Obfuscation I am fairly new with silverlight and I really find it cool. I have a question about how it runs the code client-side tho.. Say for example, I have a site that calculates a certain amount based on user inputted amounts. This of course I would love to do client-side. The catch though, is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/450341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to unit-test a file writing method with Visual Studio's built-in automated tests? * *I use Visual Studio 2008 Professional automated tests. I have a function that writes to a file. I want to unit test the file writing function. I have read somewhere that I would have to mock a file somehow. I don't know how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/450350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Always get this error when I use upload images - Using Zend Framework Warning: include_once(Zend/Http/Client.php) [function.include-once]: failed to open stream: No such file or directory in /home/hotbuzz/public_html/include/Zend/Loader.php on line 83 Warning: include_once() [function.include]: Failed opening 'Zend...
{ "language": "en", "url": "https://stackoverflow.com/questions/450352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where is the ASP.NET MVC AJAX documentation? Does anyone know where you can find online documentation for the AJAX used in ASP.NET MVC Framework Beta? I can't seem to find it. I've been looking at the quickstarts for some information and googling for it but seems to be very difficult to find. It seems somewhat limit...
{ "language": "en", "url": "https://stackoverflow.com/questions/450367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Databinding in C# and .NET I am pretty new to C# and .NET and I'm strugling a little with the whole concept of databinding. What I am asking for is a quick rundown of the concept, or even better, point me towards sources on the net (preferred) or in print that can help me get my head around the idea. EDIT: I do my d...
{ "language": "en", "url": "https://stackoverflow.com/questions/450373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Upgrading a WinForms app to WPF I have a side project that I wrote a few years ago in WinForms. To better help me learn WPF, I would like to rewrite it in WPF. Ideally, I would like to just modify the current project that I have and rewrite the UI in WPF instead of creating a new project. I'm having some problems do...
{ "language": "en", "url": "https://stackoverflow.com/questions/450377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Login to the page with HttpWebRequest How can I login to the this page http://www.bhmobile.ba/portal/index by using HttpWebRequest? Login button is "Pošalji" (upper left corner). HTML source of login page: <table id="maintable" border="0" cellspacing="0" cellpadding="0" style="height:100%; width:100%"> <tr> <t...
{ "language": "en", "url": "https://stackoverflow.com/questions/450380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to overlap two controls I have a Circle and a Line control. Circle control's OnPaint draws a circle and Line control's one draws a line. These two controls are contained in another control (DrawingControl). I need to put a Line over a Circle, but Circle's background deletes the Line. I tried enabling transparenc...
{ "language": "en", "url": "https://stackoverflow.com/questions/450381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating a simple 'spider' I have researched on spidering and think that it is a little too complex for quite a simple app I am trying to make. Some data on a web page is not available to view in the source as it is just being displayed by the browser. If I wanted to get a value from a specific web page that I was ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where can I find documentation on functions available in the Ruby Shoe GUI Toolkit? Is there any documentation that discribes all the available functions and objects in shoe? update: 2008.01.21 I am looking for a list of all the methods that can be called against an animate object. For example I only figured out ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/450392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why is my django view returning a zero obejct list? I might be lazy or am blind! but the following code is returning ZERO! items, while very well i know there is some items in the list, View: def post_answer(request, quest_id=None): answer_list = Answer.objects.filter (questionis__pk=quest_id).select_related() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/450396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to edit additional data in HABTM tables? How do I update additional data in HABTM tables. For Example: I have movies, people and HABTM movies_people tables, but there is additional persontype_id field in movies_people table which indicates role of this person in that particular movie. How do I add/change this va...
{ "language": "en", "url": "https://stackoverflow.com/questions/450408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is modulus different in different programming languages? Perl print 2 % -18; --> -16 Tcl puts [expr {2 % -18}] --> -16 but VBScript wscript.echo 2 mod -18 --> 2 Why the difference? A: Wikipedia's "Modulo operation" page explains it quite well. I won't try to do any better here, as I'm likely to make a sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/450410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Visual Studio: breakpoint excluding calls from a specific function I want to set a breakpoint in unmanaged C++, in Visual Studio 2005, but I would like to ignore this breakpoint if the call stack is in a specific function. Is there a way to do this? A: If you have a commercial edition of Visual Studio, you should b...
{ "language": "en", "url": "https://stackoverflow.com/questions/450415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }