text
stringlengths
8
267k
meta
dict
Q: how to set default location in browse tag Am doing project in j2ee.I use Browse button. I need to fetch images/files from a folder inside my project folder, everytime.I wish to set my project's folder name as a default location for my browse button.How to do that? am using tis following code in a jsp page: and call...
{ "language": "en", "url": "https://stackoverflow.com/questions/397237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Preview SVG using Javascript? Is there an easy way to render SVG inside a page using javascript? What I want to do is set up a big textarea where a user can type SVG and click a button that renders it on the page. A: You can use DOM to create an SVG element in your HTML. A: A code sample (typed, not verified): <t...
{ "language": "en", "url": "https://stackoverflow.com/questions/397238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get "extended properties" of Access DB Using OLEDB or ADO connection I am trying to access MS-Access DB extended properties like Author,Owner, Last Modified Date, Last Accessed Date etc. using vb.net. Please help me on this issue... A: You can access/create/modify different types of properties. at the datab...
{ "language": "en", "url": "https://stackoverflow.com/questions/397248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unicode Regex; Invalid XML characters The list of valid XML characters is well known, as defined by the spec it's: #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] My question is whether or not it's possible to make a PCRE regular expression for this (or its inverse) without actually hard-codi...
{ "language": "en", "url": "https://stackoverflow.com/questions/397250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: .NET Strings vs. Streams - Memory Profile and Characteristics I need to pull large Unicode textual strings (e.g. 200Mb) from a Database (nvarchar) and store in memory for processing. i.e. I need random access to all parts of the strings. Looking at this from strictly memory centric point of view, what are the pro’s ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: In-Process WMI Provider for a Windows Service in .NET How do you write an in-process WMI provider as part of Windows Service written in .NET? I've written a provider that uses the de-coupled hosting model as a standalone application, but can't figure out how to get a Windows Service that uses the Hosting Model = Man...
{ "language": "en", "url": "https://stackoverflow.com/questions/397256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Force TextBlock to wrap in WPF ListBox I have a WPF listbox which displays messages. It contains an avatar on the left side and the username and message stacked vertically to the right of the avatar. The layout is fine until the message text should word wrap, but instead I get a horizontal scroll bar on the listbox....
{ "language": "en", "url": "https://stackoverflow.com/questions/397257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: When to use pointers and when not to? I'm used to doing Java programming, where you never really have to think about pointers when programming. However, at the moment I'm writing a program in C++. When making classes that have members of other classes, when should I use pointers and when should I not? For example, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/397263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How do I change the FOV of the 3dsmax perspective window programmatically through Maxscript? I need to access the FOV property of the Perspective viewport. This is not the same as the FOV property associated with target and free cameras. To access the FOV property non-programmatically, right click on the viewport n...
{ "language": "en", "url": "https://stackoverflow.com/questions/397274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Custom date format in XML-Schema I am creating an xml schema, and I want to support a custom date format: Thu Dec 11 14:17:20 2008 Currently I'm using the following pattern type: <xs:simpleType name="Date_Type"> <xs:restriction base="xs:token"> <xs:pattern value="(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|...
{ "language": "en", "url": "https://stackoverflow.com/questions/397281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: To parse an XML file in java whose path is to be got dynamically I have a class Test in C:/proj/test_xml/Test.java. Given parser.parse("test.xml"); I need a way to parse test.xml whether it is in current directory, proj or in C:/ Also, the solution should not make use of java.io Thanks A: I'm not sure I've unders...
{ "language": "en", "url": "https://stackoverflow.com/questions/397283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I18N and L10N in WPF through XAML If anybody know how to do the Internationalization and localization in WPF through only XAML. I have already done through WPF .cs file by using Resource Manager class. I would greatly appericiate, if anybody can guide me and given me the code samples. Thanks in advance, Cheers... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Fast file/directory scan method for windows? I'm looking for a high performance method or library for scanning all files on disk or in a given directory and grabbing their basic stats - filename, size, and modification date. I've written a python program that uses os.walk along with os.path.getsize to get the file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do arrays in JavaScript work ? (ie without a starting dimension size) I was reading this post the other night about the inner workings of the Array, and learned a lot from the answers posted, especially from Jonathan Holland's one. So the reason you give a size to an array beforehand is so that space will need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/397301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to make Windows Flash games run on Linux? I have some educational flash games for Windows (legally bought), that I would like for my daughter to be able to use on her OLPC. I know that some users have been able to run them under Linux by using wine, but that is really not an option on the OLPC as they need the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/397302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make the "rolling" effect in Silverlight? I find that Resolution Randomizer (http://resolutionrandomizer.pop.us/ecard.aspx) is quite interesting. It has a rolling effect when you click the "Randomize" button. I'm really new to Silverlight and I wonder how it is implemented. I'd like to add some similar effec...
{ "language": "en", "url": "https://stackoverflow.com/questions/397311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Frame position in JavaScript I am having a frame-based webpage with 3 frames. A topliner, a navigation on the left side and a content frame on the bottom right side. Now, I want to show up a popup-menu when the user right-clicks on the content-frame. Because a div-container can not go out of the frame, my idea was, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQuery Plugin Website Is there a website that lists all of the publicly available JQuery plugins? Also, are these plugins usually open source or do some people charge you money to download them? A: A list of plug-ins is available at http://plugins.jquery.com/ A: JQuery plugins are uncompilable since they are stan...
{ "language": "en", "url": "https://stackoverflow.com/questions/397321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: remove regions in visual studio Ctrl M-L doesn't toggle all the regions in vb.net (2008) when there's a hierarchy between the regions. I don't like regions. Is there a way to expand ALL the regions or remove them permanently? A: In VB.Net, do a Search and Replace and select Use Hidden and Use Regex: Replace: ^.*\...
{ "language": "en", "url": "https://stackoverflow.com/questions/397332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using external GUI libraries to make user interfaces in Autodesk Maya I develop tools in Autodesk Maya. Many of the tools I build have simple windowed GUIs for the animators and modellers to use. These GUIs often contain what you'd normally expect to see in any basic window; labels, lists, menus, buttons, textfiel...
{ "language": "en", "url": "https://stackoverflow.com/questions/397337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Mutual recursion -- can someone help explain how this code works? I'm reading through "A Gentle Introduction to Haskell," and early on it uses this example, which works fine in GHC and horribly in my brain: initial = 0 next resp = resp process req = req+1 reqs ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using a UIImage as the application icon Is possible to set an image as an iPhone application unique icon in code instead of adding a PNG format image file and naming it Icon.png? A: a) No, not for developer applications. Also note that Apple's preload applications can demonstrably alter Default.png (see the Notes a...
{ "language": "en", "url": "https://stackoverflow.com/questions/397346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create SubDomains and redirect to them in ASP.NET? How do I create subdomains in ASP.NET? I have few links on my homepage(Home.aspx) Example: Link1 and Link2 I need to create two sub domains link1.example.com and link2.example.com and redirect to them. I will be using Response.Redirect for navigation. Quest...
{ "language": "en", "url": "https://stackoverflow.com/questions/397355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Develop multilingual windows application C# I am asking about the common techniques which are used in c# to support multilingual interface in windows forms A: Everything I said here: Internationalizing Desktop App within a couple years... What should we do now? applies to this question. A: I would also recommend t...
{ "language": "en", "url": "https://stackoverflow.com/questions/397356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to load control template in a resource dictionary in code for a calendar control I have a WPF calendar control and the template for the day has a property called cal.DayTemplate = I have created a dictionary file contaning my control template for the day of the calendar But I am not sure how to load it into th...
{ "language": "en", "url": "https://stackoverflow.com/questions/397369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Models, Factories and Repositories I'm porting our old Active-Record based API over to a new structure to make unit testing easier etc. We are using the repository pattern for our data access and StructureMap for dependency injection. I'm struggling a little now with how to structure everything. Using our 'Product' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to imitate shadow around the thumbnails by StretchDIBits? I am now writing a image viewer, It is used for view thumbnails. As it is ugly, I decide to draw shadow round thumbnail. There is background color. I am using StretchDIBits to draw a shadow image at the location of thumbnail. However it is really annoying...
{ "language": "en", "url": "https://stackoverflow.com/questions/397383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL finding subtotals EDIT: I'm told that making you guys read means I get less attention. My apologies. Here's a simpler version: Bill got $100 dollars worth of items from a store. He wants to return enough of the items to get exactly $30 dollars back. The store has a Point of Return system that will help him do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to unit test winforms applications Thanks to ASP.NET MVC framework, it became possible to unit test web applications. But how do you unit test windows forms applications? A: One way is to use Model View Presenter (MVP) Patterns for Winforms app. Pretty easy to adapt if you already worked with MVC Specifically,...
{ "language": "en", "url": "https://stackoverflow.com/questions/397386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do firefox extensions make use of the whole screen in 3D (eg. CoolIris)? I understand that Firefox addins can be created in Javascript and Chrome. How do they run advanced graphics applications such as CoolIris ? (source: cooliris.com) A: Cooliris uses native compiled code utilizing graphics acceleration on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/397390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Create an "all-in-one" function using DS in C# In my web app I use several asmx (Web Services) from the same provider, they have one for this, other for that, but all require a SOAP Header with Authentication. It is simple to add the Authentication: public static SoCredentialsHeader AttachCredentialHeader() { So...
{ "language": "en", "url": "https://stackoverflow.com/questions/397396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: virtual function call from base class Say we have: class Base { virtual void f() {g();}; virtual void g(){//Do some Base related code;} }; class Derived : public Base { virtual void f(){Base::f();} override; virtual void g(){/*Do some Derived related code*/} override; }; int main() { Bas...
{ "language": "en", "url": "https://stackoverflow.com/questions/397404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: Database design question I accumulated a quite a lot of data in a raw form (csv and binary) - 4GB per day for a few months to be precise. I decided to join the civilized world and use database to access the data and I wondered what would be the correct layout; the format is quite simple: a few rows for every time ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/397410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Highly Customizable App in C# (Like Apache Ofbiz) I have recently been exploring Apache Ofbiz and was impressed by its ability to customize most areas of the application: UI, workflow, entities. Is there any similar (not necessarily an ERP system) application developed in C#/.Net which offers a similar level of cus...
{ "language": "en", "url": "https://stackoverflow.com/questions/397412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Copying portions of a tdbgrid to clipboard? Is there any way to copy a selection of rows from a TDBGrid in Delphi 2007 to the clipboard easily? A: This method is from our internal library unit.. procedure BuildListFromDBGrid(DBGrid: TDBGrid; const FieldName: String; Strings :TStrings); var i: Integer; begin Str...
{ "language": "en", "url": "https://stackoverflow.com/questions/397413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Question about overzelaous implementation of IndexOf I have a priority queue implementation in C# that I want to add a .IndexOf method to. However, since the priority queue doesn't really concern itself with the order of the values themselves (that is, if I were to just grab all the values, disregarding their priori...
{ "language": "en", "url": "https://stackoverflow.com/questions/397415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I run GUI application without login window session? My goal is logout current session, then delete the running local user profile. And I have a service to delete the profile already. My problem is, the user has no idea about the background service and who may power off the machine or login again too soon. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/397417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When to use a scripting language? When should one use a scripting language over a more verbose, compiled language like C++. C# or Java? And to make the question a little more interesting, let's answer the questions like this: You should use a scripting language when... BLANK... When you need A use scripting language...
{ "language": "en", "url": "https://stackoverflow.com/questions/397418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Can any one provide me a sample of using CreateHatchBrush I want to draw a shadow around a thumbnail in my software. It seems CreateHatchBrush can help but I do not know how to use it, can anyone provide me a sample in C++? Many thanks! A: I don't have a sample, but some hints on general usage of brushes in Windows...
{ "language": "en", "url": "https://stackoverflow.com/questions/397420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When to use a functional programming language? In which situations should I choose to use a functional programming language over a more verbose object-oriented language like C++, C# or Java? I understand what functional programming is, what I don't really understand is for what types of problems is it a perfect solu...
{ "language": "en", "url": "https://stackoverflow.com/questions/397425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: XSD class generation nested tables problem Currently I'm having a problem with generating class files from a xsd with repeating elements. I’m using the custom tool ‘MsDatasetGenerator’ in VS2005 SP1 witch create a typed dataset from the xsd for c#. I’m trying to parse the xml by this schema <?xml version="1.0" e...
{ "language": "en", "url": "https://stackoverflow.com/questions/397426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using FTP with NSURL I want to write a cocoa application which downloads a file using ftp. I read about the NSURL class which has "NSURLHandle FTP Property Keys". I want to know how do I make use of these constants to provide username and password to the ftp site. A: NSURLHandle is deprecated and has been for a whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/397430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GUI Programming. Database and Tables syncronization I've worked on several desktop applications that used tables to group information from a database table. But keeping this information updated has made me hack different solutions like a working thread that updates a table executing a query every X seconds, or simpl...
{ "language": "en", "url": "https://stackoverflow.com/questions/397433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: List of classes in an assembly I've a DLL assembly, in which there are various classes. Each class has around 50-100 members and 4-5 functions. How can I create a list of all the classes and their respective members using a VB.NET program? I need to show to the user for performing an operation using a particular cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/397435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can one add an XML file in classpath at runtime in java? I am not sure if a URLClassLoader can be used. Also, only the relative path of the XML is known. Thank You. A: If you just mean read in an XML file that is already on the classpath, so that you can parse it using whatever library you prefer, the most comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/397440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reference project "readonly" in Visual Studio? I have two applications in two solutions in VS2008 that share a common dll, the dll-code is included as a project in the first applications solution. Is it possible to allow the second solution to reference the dll project "readonly"? I want whoever opens the second sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/397448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET/DataList: Client-side postback by clicking list elements I have a DataList control that displays a set of elements. Can anyone point me in the right direction on how I can add some client-side functionality for submitting/doing a postback when the user clicks an element in the list (e.g. anywhere in the tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/397449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java based Webmail solutions I need to provide email sending and receiving capabilities within my java web-application. Think of it as providing a lightweight IMAP client embedded within the application. Are there any good java based open-source libraries/projects/webmail solutions that provide similar functionalit...
{ "language": "en", "url": "https://stackoverflow.com/questions/397457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: asp:RangeValidator on DateTime with format dd/MMM/yyyy Is it possible to use the ASP.Net Range validator when the format string is dd/MMM/yyyy? A: Why don't you use Regular Expression validator? A: No. I think it should be a valid date (without the formatting) A: ASP.net auto detects the culture info of the clien...
{ "language": "en", "url": "https://stackoverflow.com/questions/397465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Html.Encode() doesn't encode a space In my asp.net-mvc website I have a field that usually has a string (from database) but can from time to time contain nothing. Because IE doesn't know how to handle the css "empty-cells" tag, empty table cells need to be filled with an &nbsp; I thought Html.Encode(" "); would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C++ associative array with arbitrary types for values What is the best way to have an associative array with arbitrary value types for each key in C++? Currently my plan is to create a "value" class with member variables of the types I will be expecting. For example: class Value { int iValue; Value(int v) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/397483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What's the best way for a VPC to access files on the host machine I am running Vista64 as the host for Win XP in Virtual PC 2007 SP1. I want to store my files on the host machine and just access them from the virtual pc. I access the files on the Host through a network share over the loopback adapter. Everyone ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/397485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there something like python's interactive REPL mode, but for Java? Is there something like python's interactive REPL mode, but for Java? So that I can, for example, type InetAddress.getAllByName( localHostName ) in a window, and immediately get results, without all this public static void nightmare() thing? A: J...
{ "language": "en", "url": "https://stackoverflow.com/questions/397488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: Railroad diagram generator fails with "NoMethodError" After making a few modifications to a rails app I am tinkering on, railroad stopped working. The verbose output gives some clues. I wonder if other folks have encountered this and if there are some pointers for fixing this problem. Is it a data modeling error? Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/397489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: silverlight mediaelement RTSP As far as I can see silverlight only supports streaming over http even in version 2, as I understand it mms is converted to http and therefore you cannot stream RSTP (I have tried to test this and get network errors unless I stream http). Does anyone know if RSTP is going to be supporte...
{ "language": "en", "url": "https://stackoverflow.com/questions/397494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I compare file creation time to the current time in Perl? i want to compare the current time and file creation time in Perl but both are in different format. localtime is in this format: 22116291110813630 and file creation time is Today, December 29, 2008, 2:38:37 PM How do i compare which one is greater ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to design interface for a game in Java We're a team of a designer and a programmer. Me, the programmer, is hopeless on design of all sorts, so the user interface of the game must be created by the designer. We were thinking of a main screen, where the character walks around, a small minimap in the top, an invent...
{ "language": "en", "url": "https://stackoverflow.com/questions/397500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .Net listbox / combobox I just wanted to check with you guys if you know what the maximum number of rows - in a combo / list is. I know that VB6 had a 32k limit - I couldn't find anything to confirm with a quick google search so I thought I'd throw it out to the experts. Cheers, Dave A: The maximum number of items...
{ "language": "en", "url": "https://stackoverflow.com/questions/397507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which Language I should use for real time application I am going to develop real time application which will receive stock market data and doing some processing then disseminates to client application. I decided to divide the calculations between the server and client the server will make the basic calculations then...
{ "language": "en", "url": "https://stackoverflow.com/questions/397511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: assigning a specific record in a ResultSet to a variable I want to retrieve a set of records from a database, do a rs.next() and then assign the result of this to a variable to pass to a method that will use this record, in the same way that I would without assigning it to a variable and passing it to a method is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/397524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding an invisible image watermark in C#? I want to insert multiple invisible watermarks into my JPEG pictures through C# code. That means that I need a .NET library that does this work and not some external batch application. Any suggestions? A: Storing "invisible" data in pictures is known as "steganography". A ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to bind RadioButtons to an enum? I've got an enum like this: public enum MyLovelyEnum { FirstSelection, TheOtherSelection, YetAnotherOne }; I got a property in my DataContext: public MyLovelyEnum VeryLovelyEnum { get; set; } And I got three RadioButtons in my WPF client. <RadioButton Margin="3">Fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/397556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "466" }
Q: how can I make a text entry field How can I make a text entry field that takes the input characters and displays it in another place, character by character as a the typest type them! A: Something like this: <input type="text" id="textField" /> <br /> <span id="textOutput"></span> <script type="text/javascript"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Search Engine Site Map Asp.Net If possible can anyone tell me how can I implement a search engine sitemap with asp.net. My website has content that expires frequently and new stuff comes in, that's why I wanted it updated whenever the search engine crawler comes to my site. I came across http://weblogs.asp.net/bler...
{ "language": "en", "url": "https://stackoverflow.com/questions/397562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drag and drop, editors How can I make a drag and drop editor like the one in wufoo.com form editor A: Usually client side applications are built using some sort of client-side framework. The more popular ones are (in no particular order): * *GWT *YUI *jQuery Start by checking those out, maybe try one or two tu...
{ "language": "en", "url": "https://stackoverflow.com/questions/397563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to give NSWindow a particular background color I am writing a cocoa application which has a NSWindow. I want to change the background color of the window to a specific color. But the window properties in the inspector only provide "Textured Window" alternative. How can I make the color of the window as desired? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Which Java exception should I use? Let's assume I'm a complete lazy bum and I don't want to invest the several dozen keystrokes needed for my own exception class (it's not utterly important which gets used, really). However, to pretend I'm following good practices here, I want a pre-existing one that best fits my s...
{ "language": "en", "url": "https://stackoverflow.com/questions/397581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to read source code of Rails sample project? Reading source code of sample projects, such as Beast and Bort, are recommended as a good way to learn rails. But I found myself getting lost in reading source code of these projects, cause the included plugins might bring in some strange code without any hint, such a...
{ "language": "en", "url": "https://stackoverflow.com/questions/397601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are there libraries to perform xslt transformation in erlang? I'm really new to erlang and I'm wondering how to manipulate xml. I've found erlsom but I need to do some simple transformation on a xml. I'm looking for an xslt (even 1.0) library, but I haven't found anything and reduced myself to do the transformations...
{ "language": "en", "url": "https://stackoverflow.com/questions/397604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I let users run a script with root permissions? Given the dangers of SUID shell scripts, is there a more secure way of giving passwordless access to scripts (bash, PHP) with root permissions in Linux? (Ubuntu 8.10) A: Be sure to review the "PREVENTING SHELL ESCAPES" section of the sudoers man page if you go...
{ "language": "en", "url": "https://stackoverflow.com/questions/397612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to debug "Unexpected debug information initialization error -- 'Failed to find a required export in the runtime.'" I'm getting this error message on all projects (including brand new empty templates) I'm trying to build with Visual Studio 2008: Unexpected debug information initialization error -- 'Failed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add date without exceeding a month I hope someone could help me on this. I want to add a month to a database date, but I want to prevent two jumping over month on those days at the end. For instance I may have: Jan 31 2009 And I want to get Feb 28 2009 and not March 2 2009 Next date would be March 28 2009 Jun 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/397631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FindBugs for .NET In Java is this nice tool called FindBugs. Is there something similar in .Net? A: Here is Wikipedia List and CodeRush is a nice tool to use for .NET. A: FxCop and StyleCop will advise on usage. For actual bugs, perhaps PEX? There was a PDC video, too. A: Try PVS-Studio is really great, can find ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: FastCGI, Lighttpd Interface Error/Operational Error I am getting an Interface Error/ Operational Error while running my Django application with FastCGI.On checking the access log ( of lighttpd) i find these errors pop up which are usually related to closing some db connection or the other. The browser displays one o...
{ "language": "en", "url": "https://stackoverflow.com/questions/397646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Duplication of properties in Data contract and BAL I have a Silverlight Project which passes data using the Data Contract to a WCF service. The WCF method then invokes a BAL class which again has the same properties. Is there any way to avoid this duplication of properties ? A: Chak, Depending on your situation t...
{ "language": "en", "url": "https://stackoverflow.com/questions/397652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: To add commas in file This is my first question in this forum... I have a file with numerous data fields (both numeric and characters) in the file. I want to delimit the file with set of delimiter length like 2,5,1,9,6 etc. (Alternatively: I have a list of field lengths such as 2,5,1,9,6, and I want to insert comma ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Handling a toggled onclick with JQuery I have a piece of text, that I wish to show truncated, but when clicked it will expand to show the rest. Clicking again should truncate it. I was trying to use the onclick event to handle this as follows (WARNING: Do not run following code without reading below...): <span id='b...
{ "language": "en", "url": "https://stackoverflow.com/questions/397677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SimpleModal resizing the container I have used SimpleModal. Now the problem is the resizing of the modal dialog. I have a confirm dialog, and it is basically small after pressing Yes. The second one is my.php and it contains large data. I am using the concept of appending an already existing model. How do I resize t...
{ "language": "en", "url": "https://stackoverflow.com/questions/397684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I display the binary representation of a float or double? I'd like to display the binary (or hexadecimal) representation of a floating point number. I know how to convert by hand (using the method here), but I'm interested in seeing code samples that do the same. Although I'm particularly interested in the C...
{ "language": "en", "url": "https://stackoverflow.com/questions/397692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Override the getFocus of an external page that loads in iframe I have multiple pages laoding in an iframe and one of them seems to be getting focus, since the page scrolls (by itself) to that spcific iframe. Is there a way to override this? A: iFrame onFocus event can be overridden to set the focus priority. But, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/397694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Live Search using ASP.NET MVC and AJAX I am looking to implement a live search in my MVC app similar to this site when you type in a question and results come up that are similar or like the search on http://www.krop.com/ I have the search code all working and results updated. I just need to know how to add the AJAX...
{ "language": "en", "url": "https://stackoverflow.com/questions/397704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is it possible to concatenate strings from multiple rows and tables into one result column? I am trying to write a MySQL query that retrieves one record from table "projects" that has a one-to-many relationship with table "tags". My application uses 4 tables to do this: Projects - the projects table Entities - entit...
{ "language": "en", "url": "https://stackoverflow.com/questions/397708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: NULL token in JavaCC I have strange problem with token < NULL: "null" > in my JavaCC parser. In expression like String IsNullClause(): { String res = ""; } { <IS> {res += " IS ";} [<NOT> {res += " NOT ";} ] <NULL> {res += " NULL ";} { return res; } } parser doesn't see NULL token and throw...
{ "language": "en", "url": "https://stackoverflow.com/questions/397713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Background Intelligent Transfer Service In C# Anyone successfully using this in c# or is there a better alternative to this? Also any good working project that I can look at and get a good feel? most projects i have come across is in C++ and was looking for a C# project A: I'm the PM for the BITS team at Microsoft ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: jQuery: invoke sub element of table cell Is it possible to add a jQuery function so that a click in a table cell will invoke a hidden <a href="javascript: ..." /> element (that is a descendant of the TD) ? I've tried with $('#table td').click(function() { $(this).find('a').click(); }); An other variants, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/397721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to programmatically rename movie and TV show files in an iTunes library, for XBMC compatibility? I have a collection of movies and TV shows in iTunes, and I'd like to rename them to an XBMC compatible naming convention without breaking the links in iTunes. All the necessary metadata (season number, show name, ep...
{ "language": "en", "url": "https://stackoverflow.com/questions/397723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding an image to NSPersistentDocument I have subclassed NSPersistentDocument class. I want to add an image to the document. I have an Image Well. How do I set it to a .jpg file? A: Load the JPEG file and set the resulting NSImage in a property of your document, using property syntax (self.image = [[[NSImage alloc...
{ "language": "en", "url": "https://stackoverflow.com/questions/397731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problem :globalization in C# using VS2005 I want to globalize my application. I have created a small form which asks the user their language. I have a number of problems : Problem 1: In program.cs new SplashScreen(_tempAL); new LangForm(_lang); Application.Run(new Form1(_tempAL, _lang)); I want the application not...
{ "language": "en", "url": "https://stackoverflow.com/questions/397736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 32 to 64 bit "Gotchas" in PHP Last weekend I changed webhosts for my website. The host server I was on was a 32-bit OS and the one I moved to is 64-bit. Unexpectedly, some of my PHP scripts started giving incorrect results. In my case the << and >> (bit shift) operations were the culprit. I ended up having to mask ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MSSqlSM studio reacts really slowly My Microsoft SQL Server Management Studio is slow. And by slow I mean >1minute to render a context menu-slow. All other things work perfectly fine. The connection to the database itself is not slow (my app works just fine and context menus don't need connection to the DB anyway I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/397741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET Windows Service with timer stops responding I have a windows service written in c#. It has a timer inside, which fires some functions on a regular basis. So the skeleton of my service: public partial class ArchiveService : ServiceBase { Timer tickTack; int interval = 10; ... protected override...
{ "language": "en", "url": "https://stackoverflow.com/questions/397744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Where should I put my first method I've a need to add method that will calculate a weighted sum of worker salary and his superior salary. I would like something like this: class CompanyFinanse { public decimal WeightedSumOfWorkerSalaryAndSuperior(Worker WorkerA, Worker Superior) { return Worke...
{ "language": "en", "url": "https://stackoverflow.com/questions/397753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Record a video of the screen using .NET technologies Is there a way to record the screen, either desktop or window, using .NET technologies? My goal is something free. I like the idea of small, low CPU usage, and simple, but I would consider other options if they created a better final product. In a nutshell, I know...
{ "language": "en", "url": "https://stackoverflow.com/questions/397754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How to subtract one bitmap from another in C#/.NET? I have two bitmaps, produced by different variations of an algorithm. I'd like to create a third bitmap by subtracting one from the other to show the differences. How can this be done in .NET? I've looked over the Graphics class and all its options, including the I...
{ "language": "en", "url": "https://stackoverflow.com/questions/397759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C#: What does the [string] indexer of Dictionary return? What does the [string] indexer of Dictionary return when the key doesn't exist in the Dictionary? I am new to C# and I can't seem to find a reference as good as the Javadocs. Do I get null, or do I get an exception? A: I think you can try a dict.ContainsKey(...
{ "language": "en", "url": "https://stackoverflow.com/questions/397760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How can I pad an argument with zeroes using the lisp format function? I am playing around with lisp's format function, but I have hit a snag because although I can get it to write the list of numbers aligned nicely, I can't seem to get it to zero pad it: (defun inc (a) (+ 1 a)) (dotimes (i 10) (format t "~3@:D ~:*...
{ "language": "en", "url": "https://stackoverflow.com/questions/397765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Lisp OODB with SQL backend - or good ORM Are there any good Lisp OODBs implemented on top of SQL databases, or good Lisp ORM solutions? I want the administrative features and IT-familiarity of a RDMS, but still get the power of OO. Any recommendations? The state of the art, at least in non-commercial solutions, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/397785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does \w match only English words in javascript regex? I'm trying to find URLs in some text, using javascript code. The problem is, the regular expression I'm using uses \w to match letters and digits inside the URL, but it doesn't match non-english characters (in my case - Hebrew letters). So what can I use ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/397788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I detect hosts on my LAN? To help users, I would like my code to discover Oracle databases on the LAN. I thought to do this by first detecting all hosts, then checking each host to see if it is listening on Oracle's default port. Any ideas how to go about this? Preferably in Java, but any language or algorith...
{ "language": "en", "url": "https://stackoverflow.com/questions/397789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I Invoke Ajax OnClick from Provider Web Part to Consumer Web Part I am attempting to manage an ajax connection by calling a button onclick method on a separate web part in order to force the partial postback on the consumer. Web part A (Provider) invokes the method on Web Part B (Consumer) Web Part A Type t...
{ "language": "en", "url": "https://stackoverflow.com/questions/397815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }