text
stringlengths
8
267k
meta
dict
Q: Input handling in WinForm What is the best way to block certain input keys from being used in a TextBox with out blocking special keystrokes such as Ctrl-V/Ctrl-C? For example, only allowing the user to enter a subset of characters or numerics such as A or B or C and nothing else. A: I used the Masked Textbox cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/294611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does any IDE have a vi keybindings options? One of the reasons I usually don't use an IDE for development is that I'm so used to vi keybindings that I usually end up messing up my text and putting in lots of ":w"s, and I can't use vi's powerful regex replace mechanism. Are there any IDEs that allow you to configure...
{ "language": "en", "url": "https://stackoverflow.com/questions/294613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: setting up local server in sql server 2005 I would like to set up a localhost server to test my site on in sql server 2005. I just installed sql server 2005 and I have never set up a database in this before. There is a login screen and I tried everything and it will not let me log into anything. What are the steps I...
{ "language": "en", "url": "https://stackoverflow.com/questions/294615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Triangle problem I am trying to resolve Euler Problem 18 -> http://projecteuler.net/index.php?section=problems&id=18 I am trying to do this with c++ (I am relearning it and euler problems make for good learning/searching material) #include <iostream> using namespace std; long long unsigned countNums(short,short,sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/294616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# How do I catch an exception and check if it contains a string? I'm getting an exception which says "Access Denied" when the users permissions are sufficient, how do I catch an exception and check for "Access Denied" so that I can show the user a friendlier "Sorry Access Denied" message? Thanks Beginner :-) A: If...
{ "language": "en", "url": "https://stackoverflow.com/questions/294622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is WCF's performance like compared to other solutions for high volume programs? What is WCF performance like compared to other solutions such as ASMX or even a custom module? Example: An online multi-player video game based on AJAX with JSON with data always going back and forth with the browser and server wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/294646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why did I get an error with my XmlSerializer? I made a couple of changes to my working application and started getting the following error at this line of code. Dim Deserializer As New Serialization.XmlSerializer(GetType(Groups)) And here is the error. BindingFailure was detected Message: The assembly with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Algorithm to match preferred partners into groups of three What's a good algorithm to solve this problem? I have three groups of people - group A, group B, and group C. There are the same number of people in each group. They each have a list of people in the other groups that they're willing to work with. I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What is the best way to insert into and update a single row table in MySQL? I have a MySQL table that will only have one row. What should my statement be for the first time I insert to this row, and for subsequent updates? I tried an insert where the primary key equals 1, but this doesn't account for the first time ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to set the font size in Emacs? I also want to save the font size in my .emacs file. A: Firefox and other programs allow you to increase and decrease the font size with C-+ and C--. I set up my .emacs so that I have that same ability by adding these lines of code: (global-set-key [C-kp-add] 'text-scale-increase)...
{ "language": "en", "url": "https://stackoverflow.com/questions/294664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "378" }
Q: How to improve performance of an Abstract Factory when all the time appears to be spent in memory allocation The application de-serializes a stream into dynamically allocated objects and then keeps base type pointers in a linked list (i.e. abstract factory). It's too slow. Profiling says all the time is spent in o...
{ "language": "en", "url": "https://stackoverflow.com/questions/294680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make an incoming call on my mobile trigger an action on my pc I have a specific scenario in mind, but I will ask this generally: Is there a way to make my mobile phone trigger an action on my computer? I am thinking that with a smart phone it must be possible to link the phone and the personal computer with b...
{ "language": "en", "url": "https://stackoverflow.com/questions/294688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How do I validate site markup [HTML/CSS] behind a firewall? I am designing a web site but it is behind a firewall and such services like http://validator.w3.org/ will not work. Are there any free apps I could run on Windows or Mac OS X that will validate html and css? A: Note that the (X)HTML validator also has Val...
{ "language": "en", "url": "https://stackoverflow.com/questions/294694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the best way to cache an archive file? We have a project page which consists of users' files, multimedia stuff, etc and we want to allow the user to export all this out into a single zip file. We're using unix and mysql to store all of these currently and our primary goal is to minimize load/performance time ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strip Images, CSS and JS from servlet-mapping I am using the following servlet-mapping in my web.xml file: <servlet> <servlet-name>PostController</servlet-name> <servlet-class>com.webcodei.controller.PostController</servlet-class> </servlet> <servlet-mapping> <servlet-name>PostController</servlet-name> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does ASP.NET MVC communicate w/ an AJAX enabled webpage? How does the data go from the MVC to the browser and back again? Does it use Microsoft's own technology like ASMX or WCF or something completely different? This sounds like MVC is using a ASMX Web Service they are using but I can't seem to find any doc...
{ "language": "en", "url": "https://stackoverflow.com/questions/294700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL query to get greatest distinct date - kind of I have two tables: articles and articletags articles: id, author, date_time, article_text articletags: id, tag (article.id == articletags.id in a many-to-many relationship) I am after the last time that something was published under each tag. To put it another way,...
{ "language": "en", "url": "https://stackoverflow.com/questions/294705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: With Multiple IPs in Domain Handle, how are Failing IPs handled? I am trying to coordinate the move of a site from its current server to a new one. My original plan was to migrate the data to the new machine, which is already in place and the migration scripts tested successfully. I was planning to configure the ori...
{ "language": "en", "url": "https://stackoverflow.com/questions/294707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flattening one-to-many relationship in Django I have a few model classes with basic one-to-many relationships. For example, a book has many recipes, and each recipe has many ingredients: class Book(models.Model): name = models.CharField(max_length=64) class Recipe(models.Model): book = models.ForeignKey(Bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/294712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Debugging .NET code with MS's Symbol Server - VS does not show variable's values When I debug my ASP.NET web site code using the Microsoft debug symbol's for .NET .. I keep getting this silly 'result' for most of the variables when I'm debugging .NET framework code (which of course is provided by the Microsoft Symbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/294738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Oracle - Using Package I have read some PL SQL programming books, and they recommend me to group procedures, functions, cursors, and so on in a package. Packages provide modularity and information hiding, which is the OO design. However, I'm just familiar with stand alone procedures. Would anyone kindly provide some...
{ "language": "en", "url": "https://stackoverflow.com/questions/294741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What event fires every time a TDbGrid's selected location is changed? I've got a TDbGrid in my project, and I'm trying to have an event go off every time I change the selected row. Any change in row already updates all the data-aware controls linked to the same DataSource, but there are other changes to be made too...
{ "language": "en", "url": "https://stackoverflow.com/questions/294748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does anyone know of an Eclipse(WSAD/RAD) plugin for a Maven2 POM classpath container I am trying to find a simple single purpose plugin that will maintain the Eclipse classpath based on the Maven2 POM dependencies. I know about m2eclipse and q4e. Unfortunately, I'm currently using RAD (Rational Application Developer...
{ "language": "en", "url": "https://stackoverflow.com/questions/294752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trigger to alert delete and insert How can we create a trigger to send an email on any insert or delete action on a table.It should send an email and also it should have the location of the server and the database. Please, let me know. A: You need to setup dbmail in SqlServer 2005 (if you haven't already). Inside t...
{ "language": "en", "url": "https://stackoverflow.com/questions/294758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you show animated gifs with .NET Compact Framework I would like to display an animated gif on a .NET Compact Form. Currently I use a PictureBox control and toggle between .Visible = true and .Visible = false. After .Visible = true the gif is shown however it's not animated. How can I get the .NET Compact Fra...
{ "language": "en", "url": "https://stackoverflow.com/questions/294760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to distribute a python program extended with custom c modules? I've explored python for several years, but now I'm slowly learning how to work with c. Using the python documentation, I learned how to extend my python programs with some c, since this seemed like the logical way to start playing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Import XML into MySQL 5.1 Please excuse my lack of knowledge... I know there is a lot of documentation on the internet related to this but I still don't understand. My situation is this: I have an XML file that I need import and eventually replace daily with. <item> <model>AA311-Pink</model> <tit...
{ "language": "en", "url": "https://stackoverflow.com/questions/294771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Problem matching Code128A Barcodes generated with iTextSharp vs. Barcode.4NET First of all, I'm kinda new to the barcode formats and what I do know, I've learned from Wikipedia. We have some barcodes generated by an existing app that uses the Barcode.4NET library. The barcode is in Code 128A format. The code to gene...
{ "language": "en", "url": "https://stackoverflow.com/questions/294773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why WCF class Binding doesn't have member ReaderQuotas? I'm wondering why the class Binding in WCF doesn't have a property ReaderQuotas, while its subclasses BasicHttpBinding and WSHttpBinding does. This fact makes coding a little hard. For me, I use below code to extract binding information from MEX endpoint URI. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/294774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Window handle C#/.NET When working with window handles, is it good enough to use the plain IntPtr or should I subclass SafeHandle? Are there any significant pros/cons? Thanks. A: That depends :) If the handle is returned in such a way that you must eventually call a version of ::CloseHandle on them then you should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Shared secret with API in an Ajax Adobe AIR app I'm pretty new to developing AIR apps, so maybe this is a dumb question, but I can't seem to find any answers from google. Any help you can give me is greatly appreciated. I'm building an AIR app with Ajax using an api that is identical to flickr's Api, with a shared s...
{ "language": "en", "url": "https://stackoverflow.com/questions/294777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Function names as strings in Lisp? I have a big list of global variables that each have their own setup function. My goal is to go through this list, call each item's setup function, and generate some stats on the data loaded in the matching variable. However, what I'm trying now isn't working and I need help to mak...
{ "language": "en", "url": "https://stackoverflow.com/questions/294779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ASP.NET ModalPopup does not execute code Wwhen I click the button on the popup to insert data to database, it does nothing, WHYYYYY? <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BehaviorID="popup" TargetControlID="cmdTrigger" PopupControlID="pnlPopup" BackgroundCssClass="modalBackgrou...
{ "language": "en", "url": "https://stackoverflow.com/questions/294795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use a database with Clojure What methods to use a database from Clojure are there? I know from Clojure you can do anything you can with Java, but that means that I may end up using something overly complicated (like Hibernate) which clashes with Clojure simplicity. Any recommendations or comments? A: If you are ope...
{ "language": "en", "url": "https://stackoverflow.com/questions/294802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Why are file uploads via Silverlight 2 limited to only .TXT files? I have a Silverlight 2 app that sends a byte array to a Silverlight-enabled WCF service. However, (unless I try to upload a .txt file) the service's SaveFile() method is never reached and I get an error: "The remote server returned an error: NotFoun...
{ "language": "en", "url": "https://stackoverflow.com/questions/294805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Word VBA accessing contents of custom dictionary I need to check various codes in a Word document. These codes are usually a letter followed by a hyphen and 5 digits, eg M-81406. We need to check that these pre-defined codes have been typed in correctly (there is a pre-determined list of several thousand codes). We ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Embedding web browser window in Java Does anyone know a way to open up an instance of the operating system (Windows/Linux/Mac) browser within a Swing window that is integrated into a Java application. No other actions would be performed other than opening a given URL. Currently, we open a new browser window because ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Currency formatting on ComboBox items I have a ComboBox bound to an ObservableCollection of decimals. What is the correct way to apply our currency converter to the items? Edit: a) I have an existing currency converter that I must use b) .NET 3.0 Do I need to template the items? A: Your best bet if you have some c...
{ "language": "en", "url": "https://stackoverflow.com/questions/294822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What skills should a programmer have nowadays? I have been programming using PHP, Javascript and have been a designer for a few years in a company. I am thinking of leaving I am wondering what skills do I need to have nowadays to become successful. A: You seem to be inquisitive and interested in learning. That's qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/294825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Unit Testing and VB.NET Where can I find either literature or video demonstration of unit testing applications using VB.NET? As a novice/hobbyist programmer I would like to build a solid foundation in developing applications using the unit testing methodology. A: If it helps any, you may want to learn C# if you pla...
{ "language": "en", "url": "https://stackoverflow.com/questions/294826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does the 80/20 rule of time management apply to developers? Jeff's recent article linked to a time management example of the First Fit Decreasing algorithm, which talked about the Pareto principle (or, the 80/20 rule) of time management, that is, that 80% of the work we produce in 20% of our time. Now we've all hear...
{ "language": "en", "url": "https://stackoverflow.com/questions/294841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I use Read-Only properties defined in partial (Entity Framework) classes over ADO.Net Data Services I have objects that are defined by the Entity Framework that I have then added additional methods and properties to via partial classes. I think I understand most of the limitations around doing this, but want...
{ "language": "en", "url": "https://stackoverflow.com/questions/294849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: References Needed for Implementing an Interpreter in C/C++ I find myself attached to a project to integerate an interpreter into an existing application. The language to be interpreted is a derivative of Lisp, with application-specific builtins. Individual 'programs' will be run batch-style in the application. I'm s...
{ "language": "en", "url": "https://stackoverflow.com/questions/294852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Ribbon instances per Document I am using VSTO 3.0 and the ribbon designer gives me a ribbon that is apparently shared across documents. So if I have Document specific state( number of XML marked up tags say) that needs to show up in the ribbon( or a toggle button ) then all documents seem to share the ribbon instan...
{ "language": "en", "url": "https://stackoverflow.com/questions/294859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I format a number to a dollar amount in PHP How do you convert a number to a string showing dollars and cents? eg: 123.45 => '$123.45' 123.456 => '$123.46' 123 => '$123.00' .13 => '$0.13' .1 => '$0.10' 0 => '$0.00' A: If you just want something simple: '$' . number_format($mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/294865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: Models in the Zend Framework What are some of the ways you have implemented models in the Zend Framework? I have seen the basic class User extends Zend_Db_Table_Abstract and then putting calls to that in your controllers: $foo = new User; $foo->fetchAll() but what about more sophisticated uses? The Quickstart secti...
{ "language": "en", "url": "https://stackoverflow.com/questions/294875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Whats the best workflow for adding a new device to an adhoc provision? So we all need to deploy our applications to real iPhones for testing purposes. I'm sure you much like me have found a group of sucke^H^H^H^H^H testers to help you out with this process. Whenever you want to send a build out to a new person thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/294878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to put spacing between TBODY elements I have a table like this: <table> <tfoot> <tr><td>footer</td></tr> </tfoot> <tbody> <tr><td>Body 1</td></tr> <tr><td>Body 1</td></tr> <tr><td>Body 1</td></tr> </tbody> <tbody> <tr><td>Body 2</td></tr> <tr><t...
{ "language": "en", "url": "https://stackoverflow.com/questions/294885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "112" }
Q: ASP.NET MVC - User Input and Service/Repository - Where to do Validation? This might be too opinionated a question, but looking for help! I have been trying to refine my ASP.NET MVC program structure. I just started using it at preview 5 and it is my first foray into business application development -- so everyting...
{ "language": "en", "url": "https://stackoverflow.com/questions/294890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Are there white lists for Yahoo, Gmail, Hotmail and AOL? In my website (under development), the members can send messages to each other which are sent directly to their email, now I'm worried that some members can send spam to other members (I have a spam filter but it doesn't give 100% protection as you know), I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Form.Show not showing up in Taskbar in Vista I have a winform app that is hiding it's UI and waiting on a named pipe message before showing up On receiving the event the thread invokes into the main UI thread and then does the following Set the opacity to 100 ShowInTaskbar = true; BringToFront(); ON Windows Vista t...
{ "language": "en", "url": "https://stackoverflow.com/questions/294901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is a boolean 4 bytes in .NET? Why does a System.Boolean take 4 bytes? It just stores one state, either true or false, which could be stored in less space than 4 bytes. A: A bool is actually only 1 byte, but alignment may cause 4 bytes to be used on a 32-bit platform, or even 8 bytes on a 64-bit platform. For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Should I start using TDD on a project that doesn't use it already I have a project that I have been working on for a while, just one of those little pet projects that I would like to one day release to open source. Now I started the project about 12 months ago but I was only working on it lightly, I have just start...
{ "language": "en", "url": "https://stackoverflow.com/questions/294909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: JSF Upload component: alternate triggering I have a JSF form that needs to upload a file via an icon click (i.e. without showing the textfield/browse button of the file upload component). Is it possible to trigger the file-open dialog and uploading functionality of the upload component via some other component type...
{ "language": "en", "url": "https://stackoverflow.com/questions/294916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Outlook rendering problem, rendering text too large I'm trying to create a newsletter standard for our org and having problems with Outlook rendering the text too large. Here is the css section of the page body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; font-size: 75%; ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/294917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: lightweight instrumentation for winforms app I have a winforms app and i want to keep track of every time a user clicks certain buttons, etc as well as other actions. What is the best way for me to keep track of this information and then put it together so i can run metrics on most used features, etc. This is a win...
{ "language": "en", "url": "https://stackoverflow.com/questions/294922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does delete work with pointers to base class? Do you have to pass delete the same pointer that was returned by new, or can you pass it a pointer to one of the classes base types? For example: class Base { public: virtual ~Base(); ... }; class IFoo { public: virtual ~IFoo() {} virtual void DoSomethi...
{ "language": "en", "url": "https://stackoverflow.com/questions/294927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Anyone actually using Mosso Files (Amazon S3 competitor)? We have a bunch of data on S3 (images) but just started reading about Mosso Files (rackspace). Sometime this month they are going to add CDN capabilities so any file you upload is part of the limelight CDN. Anyone using this service, it's not as well documen...
{ "language": "en", "url": "https://stackoverflow.com/questions/294928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Visual Studio Team System 2008 & Domain Issues We have TFS installed in a US server. We need to login into VPN to access the TFS server. TFS is configured to use with company's domain user account. However my system is part of the domain. Hence I couldn't access the TFS. I have Visual Studio Team System Developer ed...
{ "language": "en", "url": "https://stackoverflow.com/questions/294931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generate unique ID to share with multiple tables SQL 2008 I have a couple of tables in a SQL 2008 server that I need to generate unique ID's for. I have looked at the "identity" column but the ID's really need to be unique and shared between all the tables. So if I have say (5) five tables of the flavour "asset i...
{ "language": "en", "url": "https://stackoverflow.com/questions/294933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Web page designers Are there any Web page designing software out there that allow me to drag and drop controls just like desktop applications. I found it quite difficult to design a web page using the designer in Visual Studio 2008 as it constrains me to a flow or grid layout. (I am not an accomplished designer but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Environment constants Is there an equivalant to Environment.NewLine in DotNet for a Tab character? A: Short answer is: no, tab does not change between platforms as newline might, so there is no need for one. Long answer is: technically, yes, you could use the one provided by VB in the Microsoft.VisualBasic.dll. I t...
{ "language": "en", "url": "https://stackoverflow.com/questions/294939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: JavaScript (or JS+PHP) Terminal Client Does anyone know of a JS-based terminal client? Either something that initiates an SSH connection with a remote host or even something that simply communicates with a remote PHP script to execute commands and retrieve output. Does such a thing exist? A: Check Anyterm, it uses ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I create an empty MDB from ADO I need to create an empty .mdb file, so that I can then run ADO commands on it (not ADO.NET). Is there a way to create an empty mdb using ADO? A: Here are some code snippets that work: string sADOProvider = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pycurl WRITEDATA WRITEFUNCTION collision/crash How do I turnoff WRITEFUNCTION and WRITEDATA? Using pycurl I have a class call curlUtil. In it I have pageAsString (self, URL) which returns a string. To do this I setopt WRITEFUNCTION. Now in downloadFile (self, URL, fn, overwrite=0) I do an open and self.c.Setopt (py...
{ "language": "en", "url": "https://stackoverflow.com/questions/294960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: chained msi's/Bootstrapper/prerequisite? I have a few component MSI packages that need to installed together to form the end application. The problem is: the components that make up the package can be updated and the component relaunched on the http file server. What approach should I take? The installer that I am ...
{ "language": "en", "url": "https://stackoverflow.com/questions/294961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I count bytecodes in Python so I can modify sys.setcheckinterval appropriately I have a port scanning application that uses work queues and threads. It uses simple TCP connections and spends a lot of time waiting for packets to come back (up to half a second). Thus the threads don't need to fully execute (i.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/294963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Real world MySQL/Postgres database schema examples and analysis tools I am doing analysis on schema evolution and have really fallen short of real world database schemas that have evolved a bit and stored in version control. Mediawiki (http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/maintenance/tables.sql) s...
{ "language": "en", "url": "https://stackoverflow.com/questions/294965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL : one foreign key references primary key in one of several tables I am working on an application that will be used as an extensible framework for other applications. One of the fundamental classes is called Node, and Nodes have Content. The SQL tables look like this: TABLE Node ( NodeId int, .... etc ) TABLE Nod...
{ "language": "en", "url": "https://stackoverflow.com/questions/294969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I gzip my web files As prescribed by Yahoo!, gzip'ng files would make your websites load faster. The problem? I don't know how :p A: http://www.webcodingtech.com/php/gzip-compression.php Or if you have Apache, try http://www.askapache.com/htaccess/apache-speed-compression.html Some hosting services have an o...
{ "language": "en", "url": "https://stackoverflow.com/questions/294976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to use printWhenExpression in JasperReports Can somebody tell me how to use the printWhenExpression of JasperReports? A: The other poster has done a good job of explaining the technical details of how to use it, so I'll try and explain the circumstances in which one might find it useful. Basically, it allows yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/294989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Using Stomp and Apache ActiveMQ as reliable syslog One of my programs requires a reliable way to log across unreliable network (ie internet). The sender or receiver may go offline any time and can come back later. But any message sent by client should not be missed. Obviously syslog does not fit the bill. I am explo...
{ "language": "en", "url": "https://stackoverflow.com/questions/294990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IoC, Mixing injections with parameters in the constructor? I am new to Inversion of Control (IoC), so I wanted to know the best strategy to handle the case where I want to pass data structures/parameters as well as injected objects into a class. A simple example: public class EmailSender { public EmailSender(st...
{ "language": "en", "url": "https://stackoverflow.com/questions/295005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In Oracle what does 'Buffer Gets' actually refer to? I'm dealing with an Oracle DBA at the moment, who has sent me some profiling he's done. One of the terms in his report is 'Buffer Gets', any idea what this actually means? My guess is bytes retrieved from a buffer, but I have no idea really. Here is some sample ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/295009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Using sprintf without a manually allocated buffer In the application that I am working on, the logging facility makes use of sprintf to format the text that gets written to file. So, something like: char buffer[512]; sprintf(buffer, ... ); This sometimes causes problems when the message that gets sent in becomes to...
{ "language": "en", "url": "https://stackoverflow.com/questions/295013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is it possible to pass parameters by reference using call_user_func_array()? When using call_user_func_array() I want to pass a parameter by reference. How would I do this. For example function toBeCalled( &$parameter ) { //...Do Something... } $changingVar = 'passThis'; $parameters = array( $changingVar ); c...
{ "language": "en", "url": "https://stackoverflow.com/questions/295016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: protobuf serialization of language specific data structures Using google's Protocul Buffers, I have a service already written in Java which has its own data structures already. I'd like to use pb to delivering messages and I'm looking for a way to serialize the existing data structures that I have in Java to pb. I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/295017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Array of zero length I am working on refactoring some old code and have found few structs containing zero length arrays (below). Warnings depressed by pragma, of course, but I've failed to create by "new" structures containing such structures (error 2233). Array 'byData' used as pointer, but why not to use pointer i...
{ "language": "en", "url": "https://stackoverflow.com/questions/295027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Inplace substitution from ConfigParser I have a very tricky situation (for my standards) in hand. I have a script that needs to read a script variable name from ConfigParser. For example, I need to read self.post.id from a .cfg file and use it as a variable in the script. How do I achieve this? I suppose I was uncl...
{ "language": "en", "url": "https://stackoverflow.com/questions/295028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Registering an event handler for a single list I have a sharepoint event handler which I want to activate for a single list, not all the lists in the site. How do I go about this? A: Got the answer. We need to run this code, maybe in a console app. I still didn't get how to remove the event handler once it has been...
{ "language": "en", "url": "https://stackoverflow.com/questions/295035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WPF TwoWay Bind to current source with Converter? Is there an issue with databinding in WPF when you bind to the current source (Path=".") and using a converter? The two way binding doesn't seem to work in this situation. I know I could change the path, but I want to be able to pass the "Name" value to the converter...
{ "language": "en", "url": "https://stackoverflow.com/questions/295042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I capture a PowerPoint VSTO Text Changed Event? I'm developing a PowerPoint C# VSTO add-in. I want to be able to capture a text changed event whenever the Title text of a slide is changed. How can I attach a custom event handler that will fire whenever the Title text is changed? A: Two things: 1) this is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/295043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to display image from sql server in ms access I have an MS sql server database. There is a table with one of the column of the "image" type. Now, the customer wants to read the data from an MS access. He wants to display the images in a form. I have never used access and have no idea of how to do simple things t...
{ "language": "en", "url": "https://stackoverflow.com/questions/295044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I determine the OS of the system from within a Lua script? Ok I need to determine the system's OS from a Lua script, but Lua as such has no API for this, so I use os.getenv() and query enviromental variables. On Windows checking the enviromental variable "OS" gives me the name of the system's OS, but is ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/295052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What did I do to break my xForms? I'm learning xForms, but apparently not well enough because I can't figure out why this code doesn't work. It parses in FF2 w/ the xForms extension but does not render the form controls. IE7 and X-Smiles give me different problems, but I'm not sure if those problems are becaause of...
{ "language": "en", "url": "https://stackoverflow.com/questions/295055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert a string to preexisting variable names How do I convert a string to the variable name in Python? For example, if the program contains a object named self.post that contains a variable named, I want to do something like: somefunction("self.post.id") = |Value of self.post.id| A: Note: do not use eval in any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/295058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Get the value from one window to another window - JavaScript Is it possible to get the value from the first page to the second page, BUT without FORM? Shall we use window.parent.document.getElementById("").value.. But this is working in popup window, but I need this for between two pages which redirecting from the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/295059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Embedding XULRunner application on Java My goal is to get Limewire(JAVA) and Songbird(XULRunner) to run together. I was thinking the best way is to run the XUL application(songbird) inside a JAVA swing panel. Is there another way? Would it be better or possible to have the GUI entirely in XUL, and then access my JAV...
{ "language": "en", "url": "https://stackoverflow.com/questions/295060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Creating a new module in Sitefinity I'm trying to create a new module for Sitefinity. I'm basing my module off the sample module linked to from the documentation. http://www.sitefinity.com/help/developer-manual/adding-modules-pluggable-explained.html What I want is a list of videos. On the left-hand side - the Comma...
{ "language": "en", "url": "https://stackoverflow.com/questions/295063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a "result server" that store performance test result, with good analysis tool? I need a "result server" that can store my raw test data (server cpu, memory usage, etc), create report template (e.g. user number vs response time), generate live-reports base on templates, and perform complicated analysis (such...
{ "language": "en", "url": "https://stackoverflow.com/questions/295065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing an array using COM? I am a COM object written in ATL that is used from a C++ application, and I want to pass an array of BYTEs between the two. My experience of COM/IDL so far is limited to passing simple types (BSTRs, LONGs, etc.). Is there a relatively easy way to have the COM object pass an array to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/295067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Have you ever noticed some JSP incompatibilities with WebSphere? When we write in a Javascript expression : expression < <%=variableJsp%> the double "<" seems to be a problem and the JSP is not interpreted ? Is it a fault of the other servers that should not accept this type of expression ? Or WebSphere that bugs...
{ "language": "en", "url": "https://stackoverflow.com/questions/295071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where is groovy.swing.factory.BindProxyFactory? When trying to use GraphicsBuilder, I get a java.lang.NoClassDefFoundError for groovy.swing.factory.BindProxyFactory. This is my environment: % java -version java version "1.6.0_10" Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java HotSpot(TM) Server VM (build ...
{ "language": "en", "url": "https://stackoverflow.com/questions/295073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS: font-size: inherit * 70%? Is there a way to specify the font size for a class to be, say, 70% of the inherited font size? I have a general "button" class that sets up my buttons with the appropriate borders, background, etc. I use it in multiple places, including one where the font size is fairly small and anot...
{ "language": "en", "url": "https://stackoverflow.com/questions/295085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: dotnet: ListChangedType.ItemDeleted is useless? The ListChanged event for an IBindingList fires a type ListChangedType.ItemDeleted when items are deleted, perhaps by a user deleting a row in a datagrid control bound to the list. The problem is that the NewIndex into the list is invalid in this event, it's been delet...
{ "language": "en", "url": "https://stackoverflow.com/questions/295091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Sorting and Filtering Records is there any known pattern/algorithm on how to perform sorting or filtering a list of records (from database) in the correct way? My current attempt involves usage of a form that provides some filtering and sorting options, and then append these criteria and sorting algorithm to my exis...
{ "language": "en", "url": "https://stackoverflow.com/questions/295094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I set a textbox's value using an anchor with jQuery? I have a textbox whose value I want to set based on the inner text of an anchor tag. In other words, when someone clicks on this anchor: <a href="javascript:void();" class="clickable">Blah</a> I want my textbox to populate with the text "Blah". Here is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/295095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Requesting memory for your application I am having a similar issue to this person. The primary difference being the application is NOT meant for a developer environment, and therefore I need to know how to optimize the space used by Sql Server (possibly per machine based on specs). I was intrigued by Ricardo C's an...
{ "language": "en", "url": "https://stackoverflow.com/questions/295100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Burn a Data Driven SWF to CD/DVD? I have a movie which is made up of a series of SWF files that read XML. Is there any way to burn it to a CD/DVD or at least convert it to a 'burnable' format such as AVI, MPEG, or ISO? Currently in order to burn it I have to so some funky screen capture stuff and recorded it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/295101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the difference between a field and a property? In C#, what makes a field different from a property, and when should a field be used instead of a property? A: When you want your private variable(field) to be accessible to object of your class from other classes you need to create properties for those variabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/295104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1468" }