text
stringlengths
8
267k
meta
dict
Q: Opening separate windows with Start I am tring to open several instance of IE with the start command in a batch file. For example I want to open www.google.com and www.yahoo.com at the same time in separate windows. Any help would be appreciated. Regards, Aaron A: $>start iexplore http://google.com $>start iexplore...
{ "language": "en", "url": "https://stackoverflow.com/questions/364964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check server connection i want to check my server connection to know if its available or not to inform the user.. so how to send a pkg or msg to the server (it's not SQL server; it's a server contains some serviecs) ... thnx in adcvance .. A: With all the possibilities for firewalls blocking ICMP packets or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Algorithm for finding the smallest power of two that's greater or equal to a given value I need to find the smallest power of two that's greater or equal to a given value. So far, I have this: int value = 3221; // 3221 is just an example, could be any number int result = 1; while (result < value) result <<= 1; It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Are there languages compatible with .NET that don't support unsigned types? Let's say that I'm writing a library in C# and I don't know who is going to consume it. The public interface of the library has some unsigned types - uint, ushort. Apparently those types are not CLS-compliant and, theoretically speaking, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/364986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Smarty benchmark, anyone? I am considering Smarty as my web app templating solution, and I am now concerned with its performance against plain PHP. The Smarty site says it should be the same, however, I was not able to find anyone doing real benchmarking to prove the statement right or wrong. Did anyone do some ben...
{ "language": "en", "url": "https://stackoverflow.com/questions/364989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: ASP.NET MVC: How to use static HTML pages in MVC applications? In the app I am working on, I want to allow the user to upload static HTML pages to replace the default "user profile" MVC View page. Is this possible? That is, the user uploaded html pages will totally run out of MVC, and it can include its own CSS link...
{ "language": "en", "url": "https://stackoverflow.com/questions/365001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How long does it take to get a code-signing certificate from Comodo? I'm looking at buying a code-signing certificate from Comodo (they seem to be the cheapest). Can someone who has done this tell me how long it takes to issue the certificate once you submit your business documents? A: took us about 1 business day,...
{ "language": "en", "url": "https://stackoverflow.com/questions/365003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Connecting to my Home Version Control Repository remotely? I have set up a version control system using TortoiseSVN at my home to manage my pet projects, school projects etc...and it works locally. Now I need to be able to access my code repository remotely, like from school, so that I will be able to update the sou...
{ "language": "en", "url": "https://stackoverflow.com/questions/365006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Where can I get material for learning EBNF? Extended Backus–Naur Form: EBNF I'm very new to parsing concepts. Where can I get sufficiently easy to read and follow material for writing a grammar for the boost::spirit library, which uses a grammar similar to EBNF? Currently I am looking into EBNF from Wikipedia. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/365012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to know if the local Area Connection is available I'm using Windows XP and I want to know if the local area is available or not? And if I'm using another OS would that affect on my code? A: Use the following code using System.Net.NetworkInformation; //(Add reference of System.Net.dll) public partial class Form1...
{ "language": "en", "url": "https://stackoverflow.com/questions/365015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Distributed development team - Tools Needed I have a team of developers distributed Globally over different time zones. what are the best tools to achieve maximum productivity in such a team? I am looking for: * *Source Control *Bug Tracking *Build Management *Any other thing that may help Thanks A: For the...
{ "language": "en", "url": "https://stackoverflow.com/questions/365016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: A little help with DOM manip and GreaseMonkey I'm not a JS guy so I'm kinda stumbling around in the dark. Basically, I wanted something that would add a link to a twitter search for @replies to a particular user while on that person's page. Two things I am trying to figure out: * *how to extract the user name fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/365028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Template syntax I was reading a book on templates and found the following piece of code: template <template <class> class CreationPolicy> class WidgetManager : public CreationPolicy<Widget> { ... void DoSomething() { Gadget* pW = CreationPolicy<Gadget>().Create(); ... } }; I didn't get the nested templates specifie...
{ "language": "en", "url": "https://stackoverflow.com/questions/365029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL question: excluding records I have a database (NexusDB (supposedly SQL-92 compliant)) which contains and Item table, a Category table, and a many-to-many ItemCategory table, which is just a pair of keys. As you might expect, Items are assigned to multiple categories. I am wanting to all the end user to select ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Interesting C++ Abstract Function why this is happen ? When u create abstract class in c++ Ex: Class A (which has a pure virtual function) after that class B is inherited from class A And if class A has constructor called A() suppose i created an Object of class B then the compiler initializes the base class f...
{ "language": "en", "url": "https://stackoverflow.com/questions/365048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Detect windows logout in Python How can I detect, or be notified, when windows is logging out in python? Edit: Martin v. Löwis' answer is good, and works for a full logout but it does not work for a 'fast user switching' event like pressing win+L which is what I really need it for. Edit: im not using a gui this is r...
{ "language": "en", "url": "https://stackoverflow.com/questions/365058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to save history within UpdatePanel? I created an admin page for a web application, and it's mostly ajax. Almost all the events in the page update one of the UpdatePanels on the page. How can I save each UpdatePanel state in the user's history so when the user pushes the browser "back" button they wont get redire...
{ "language": "en", "url": "https://stackoverflow.com/questions/365060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Filtering on linked table in Axapta/Dynamics Ax I have a form in Axapta/Dynamics Ax (EmplTable) which has two data sources (EmplTable and HRMVirtualNetworkTable) where the second data source (HRMVirtualNetworkTable) is linked to the first on with "Delayed" link type. Is there a way to set an filter on the records, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/365071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Range on integer fields in Axapta/Dynamics Ax Is there a way, in Axapta/Dynamics Ax, to create an Extended Data Type of type integer which only allows enering values in a specified range (i.e., if the extended data type is meant for storing years, I should be able to set a range like 1900-2100), or do I have to mana...
{ "language": "en", "url": "https://stackoverflow.com/questions/365076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can you change a field label in the Django Admin application? As the title suggests. I want to be able to change the label of a single field in the admin application. I'm aware of the Form.field attribute, but how do I get my Model or ModelAdmin to pass along that information? A: from django.db import models class...
{ "language": "en", "url": "https://stackoverflow.com/questions/365082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: How To Project a Line Number Into Linq Query Results How can I project the row number onto the linq query result set. Instead of say: field1, field2, field3 field1, field2, field3 I would like: 1, field1, field2, field3 2, field1, field2, field3 Here is my attempt at this: public List<ScoreWithRank> GetHighScoresWit...
{ "language": "en", "url": "https://stackoverflow.com/questions/365086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: How to set dropdown's firsl Item -Select- and remaining Items from a column of table? I m using a dropdown to display "Location" field of a table. I want to set first item of dropdowm as "-Select Location-". I can't set tables first record as "Select" because table is stroed in xml format. And table file is generate...
{ "language": "en", "url": "https://stackoverflow.com/questions/365087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Window "on desktop" I've been using Rainlendar for some time and I noticed that it has an option to put the window "on desktop". It's like a bottomMost window (as against topmost). How could I do this on a WPF app? Thanks A: This is what I used so the window is always "on bottom": using System; using System....
{ "language": "en", "url": "https://stackoverflow.com/questions/365094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Authentication for a browser-based application dependent on the client machine How do you make the authentication for a browser-based application dependent on the client machine? Say the admin can login only from this machine. Assumptions: There is complete control over the network and all machines (client and serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/365095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between a Postback and a Callback I keep on hearing this words 'callback' and 'postback' tossed around. What is the difference between two ? Is postback very specific to the ASP.NET pages ? A: A lot of this discussion is ASP.NET gobbledygook language.... The answer is YES. Postback is a "term" specific ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "118" }
Q: How to profile PostgreSQL Database? I want to profile (keep an Eye on) all the activities that goes on in a Database which is in PostgreSQL. Is there any such utility which will help me do this? A: Well, if you're looking at what's going on, regarding selects, updates, deletes, and so on, there are a few views in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/365103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Why are destructors required in C++? When a pointer goes out of scope, its memory is freed, so why are destructors created in c++? A: First, you mistakenly state that the memory is freed when the pointer goes out of scope. With raw pointers that is false, the memory is lost, and any resource held by the pointed obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/365104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to access USB (Pen Drive) Firmware Number from Delphi or VB6? I want to access/read the Firmware Number of a Pendrive attached on a USB Port of a PC. How can I do this? A: After hunting around for a little while I found the following links which may point you in the right direction. * *Alan Macek *USB-IF De...
{ "language": "en", "url": "https://stackoverflow.com/questions/365107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I set the background color of Excel cells using VBA? As part of a VBA program, I have to set the background colors of certain cells to green, yellow or red, based on their values (basically a health monitor where green is okay, yellow is borderline and red is dangerous). I know how to set the values of those ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Best way to debug a Windows CGI I have a Windows CGI created with Delphi 2007 using CGIExpert that I need to debug. Is there any simply way to run it from within the IDE while passing parameters to it? I tried setting the Host Application to iexplore.exe (Run|Parameters) and entering some text on the Parameters fiel...
{ "language": "en", "url": "https://stackoverflow.com/questions/365129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create a client jar in websphere without having the server running? I have a requirement for my R&D which seems to be tricky. I want to create a client jar for an EJB application. Consider that I have an EJB application and its jars with me. I just need to create a client jar for that EJB application. To cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/365146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Parse YAML Files in C++ I want a simple tutorial to show me how to load a yaml file and parse the data. Expat style would be great but any solution that actually shows me the data in some form would be useful. So far I ran multiple tests in the yaml-0.1.1 source code for C and I either get an error, no output whatso...
{ "language": "en", "url": "https://stackoverflow.com/questions/365155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How can we protect the vulnerable online? Recently the company I work for was asked to pitch for creation of a forum targetted at children as part of a website solution. I think that at least we should reccommend * *Human moderation by a trained individual to protect these kids *Code alarm / suspicious analysis ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySql- on duplicate key insert with string added How to insert from one table to another and on duplicate key append string to new row? If i got table with values: a b c and want insert tablevith value: a i want append string like 'x' so i will get table with values: a b c xa A: INSERT INTO aatest SELECT IF(COUNT(...
{ "language": "en", "url": "https://stackoverflow.com/questions/365163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Faster Insert Oracle Hash Cluster Table Since I kicked off the process of inserting 7M rows from one table into two others, I'm wondering now if there's a faster way to do this. The process is expected to finish in an hour, that's 24h of processing. Here's how it goes: The data from this table RAW (word VARCHAR2(400...
{ "language": "en", "url": "https://stackoverflow.com/questions/365168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I use UpdatePanel in MasterPage to wrap nested pages? Can I use Update panel in masterpage to wrap nested pages so that when browsing from one page to the other client only gets a partial refresh (MasterPage doesn't get reloaded). If so - how? Do I Just put an update panel around the ContentPlaceholder in the Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/365183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to get time difference in minutes in PHP How to calculate minute difference between two date-times in PHP? A: function date_getFullTimeDifference( $start, $end ) { $uts['start'] = strtotime( $start ); $uts['end'] = strtotime( $end ); if( $uts['start']!==-1 && $uts['end']!==-1 )...
{ "language": "en", "url": "https://stackoverflow.com/questions/365191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "334" }
Q: Getting this BST template to work hI, I'm trying to get this code from Larry Nyhoff's book to compile in Bloodshed. It's actually been taken word for word from the author's website, though I declared it on .cpp instead of .h (the .h file ain't working with the tester application). http://cs.calvin.edu/activities/boo...
{ "language": "en", "url": "https://stackoverflow.com/questions/365198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Challenges in converting a web product to desktop version I have a web based product and am looking to convert that into a product that can be hosted within a firewall (or) hosted locally by the clients. Some of the challenges i foresee are: * *prevention of piracy *support *maintaining patches and versions (re...
{ "language": "en", "url": "https://stackoverflow.com/questions/365199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Events in UserControl I am new to UserControls, and while developing my own control I found a problem with showing events of my control in the property grid at design time. If I have some events in my control I want to see them in Property grid and if I double-click that I want to have a handler, in the same way Mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/365204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Code generator (.net) Do you have any experience with T4 and T4 Editor? Can you compare it to CodeSmith or MyGeneration? What code generators do you use? What do you recommend? I want to use it for generatig of SPs. Is there anything else you find code generation useful? A: As a code generation engine, T4 is as cap...
{ "language": "en", "url": "https://stackoverflow.com/questions/365208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sp_start_job wait for job to finish Possible Duplicate: Executing SQL Server Agent Job from a stored procedure and returning job result Is there a way to determine when a sql agent job as finished once it has been started with sp_start_job? A: This article describes an SP to launch a sql agent job and wait. -- o...
{ "language": "en", "url": "https://stackoverflow.com/questions/365219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: LinqToSql overriding insert with inner classes C# I have a base recipe class and I am using a datacontext. I overrode the insert method for the recipe in the datacontext and am trying to insert into its children. Nomatter what I do I cannot get the child to insert.Currently, just the recipe inserts and nothing happe...
{ "language": "en", "url": "https://stackoverflow.com/questions/365222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Disable usb storage devices Is there a way to programmatically disable usb storage devices from working while still keeping usb ports functional for other types of devices like keyboards and mice? A: Taken from here, not tested: Directions for Use: 1.) Take the following blue text, copy it, and paste it into a te...
{ "language": "en", "url": "https://stackoverflow.com/questions/365223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: In what ways do you make use of C# Lambda Expressions? Pour in your posts. I'll start with a couple, let us see how much we can collect. To provide inline event handlers like button.Click += (sender,args) => { }; To find items in a collection var dogs= animals.Where(animal => animal.Type == "dog"); For iterating ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Advice Using Pivot Table in Oracle i need a report and i should use pivot table for it.Report will be group by categories .It is not good to use case when statement because there are many categories.u can think Northwind Database as sample and All Categories will be shown as Columns and Report will show customers pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/365238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When an ASP.NET System.Web.HttpResponse.End() is called, the current thread is aborted? when a System.Web.HttpResponse.End() is called a System.Thread.Abort is being fired, which i'm guessing is (or fires) an exception? I've got some logging and this is being listed in the log file... A first chance exception of ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/365249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How can I quickly find the first line of a file that matches a regex? I want to search for a line in a file, using regex, inside a Perl script. Assuming it is in a system with grep installed, is it better to: * *call the external grep through an open() command *open() the file directly and use a while loop and a...
{ "language": "en", "url": "https://stackoverflow.com/questions/365259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ok , global variable is condemned, singleton is despised, what's the alternative? For desktop application that is. This is just a general question that maybe only need general answers. A: I wouldn't care if singleton or global variables are not recommended. If I feel like that is the most logical way of implementin...
{ "language": "en", "url": "https://stackoverflow.com/questions/365261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Microsoft (SQL) server licensing We're planning a browser application (xbap) which is going to talk to WCF services. These WCF services get information from a SQL database. Each of our clients has his own database on this server. The clients need to get reports from SQL Reporting Services. A client can have multiple...
{ "language": "en", "url": "https://stackoverflow.com/questions/365262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can Agile Development compensate for losing three testers mid-project? We have to let go 3 of our software test contractors due to budget constraints, in the middle of a project that had adopted agile development practices. The management attitude is to throw equal number of full time bodies to compensate for this. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript Core Source Code As we all know that javascript is an open source language and we are using Mozilla FireFox 3 and in this browser the mozilla foundation has released a newer version of the javascript but i am still unable to figure out that really where is the javascript source code in the FireFox 3 brows...
{ "language": "en", "url": "https://stackoverflow.com/questions/365272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Are there any API wrapper of Robocopy? Robocopy is the best reliable and feature rich way to batch copy files on Windows. However, it is a command line tool. I am looking for a library/API that I could do the same in my program. I tried to use Process.Start(), but then I have to capture and to parse stdout for progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/365278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to avoid image cutoff with rotate? When you rotate an image using canvas, it'll get cut off - how do I avoid this? I already made the canvas element bigger then the image, but it's still cutting off the edges. Example: <html> <head> <title>test</title> <script type="text/javascript"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Flash (or Silverlight) on the iPhone I'm interested in developing applications on the iPhone and being a .NET & ActionScript developer I'm a bit scared from the learning curve of Objective-C Cocoa Touch programming. I know that Adobe has Flash player ready for iPhone and I think that Apple doesn't want it just for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Find Items that are Not [Serializable] I was wondering if anyone knows of a quick way or if anyone has written a reflection tool to tell which objects in a solution are not marked as serializable. I'm switching a site over to a StateServer and i need to have all objects marked as serializable. I don't want to miss...
{ "language": "en", "url": "https://stackoverflow.com/questions/365291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where can I find a deliberately insecure open source web application? As a developer, I've learned that I usually gain a better understanding of best/worst practices through experience. The area of web application security isn't really somewhere where my organization can afford to let developers learn through trial...
{ "language": "en", "url": "https://stackoverflow.com/questions/365309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Is Silverlight 2.0 a viable game development platform? I've coded some smaller projects using Silverlight 2.0, which is fairly impressive. Does Silverlight 2.0 have what it takes to be a game development platform for the web? (Are the framerates high enough, will there be 3D engines developed, and many more questio...
{ "language": "en", "url": "https://stackoverflow.com/questions/365311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: XML to CSV Using XSLT I have the following XML document: <projects> <project> <name>Shockwave</name> <language>Ruby</language> <owner>Brian May</owner> <state>New</state> <startDate>31/10/2008 0:00:00</startDate> </project> <project> <name>Other</name> <language>Erlang</language> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: 3D Engine Comparison I am currently investigating several free/open source OpenGL based 3D engines, and was wondering if you guys could provide some feedback on these engines and how they are to work with in a real world project. The engines being compared are (in no particular order): Crystal Space Panda3D Irrlicht...
{ "language": "en", "url": "https://stackoverflow.com/questions/365316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: PDF generation in C# We currently send an email notification in plain text or html format. Our environment is C#/.NET/SQL Server. I'd like to know if anyone recommends a particular solution. I see two ways of doing this: * *dynamically convert current email to pdf using a third party library and sending the pdf...
{ "language": "en", "url": "https://stackoverflow.com/questions/365339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling fellow code nerds - Alternatives to Nested Loops? It is not uncommon for me (or likely anyone else) to have a list of objects I need to iterate through and then interact with a list of properties. I use a nested loop, like this: IList<T> listOfObjects; IList<TProperty> listOfProperties; foreach (T dataObjec...
{ "language": "en", "url": "https://stackoverflow.com/questions/365352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Grabbing A Page from WordPress * *In WordPress, how do I hide a Page? *How do I then reimplement it as a DIV, let's say, on another Page? Context I'm trying to get some year-end tax write-offs here for my freelance business, and so I'm donating WordPress sites to churches. Now, unfortunately I'm finding that se...
{ "language": "en", "url": "https://stackoverflow.com/questions/365353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are event callbacks with (object, EventArgs) parameters a holdover from 1.1 and WinForms? So I have started playing around with FxCop lately and one thing I've noticed is it insists that any method attached to an event should be in the form void Callback(object sender, EventArgs args) { ...} and to be attached with...
{ "language": "en", "url": "https://stackoverflow.com/questions/365354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why are networking UI's so technical and unintuitive? Even though I am an experienced programmer and engineer, I find that I always run into tedious problems when dealing with networks. Rarely do installations of routers etc work out of the box, and you find yourself trying to learn all kinds of acronyms like WPA, U...
{ "language": "en", "url": "https://stackoverflow.com/questions/365366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Proper way to stop TcpListener I am currently using TcpListener to address incoming connections, each of which are given a thread for handling the communication and then shutdown that single connection. Code looks as follows: TcpListener listener = new TcpListener(IPAddress.Any, Port); System.Console.WriteLine("Serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/365370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: CSS: two columns I can't figure out how to achieve the following layout with CSS (probably because I don't actually know CSS). I have a bunch of divs like this: <div class="right"> <p>1</p> </div> <div class="left"> <p>2</p> </div> <div class="left"> <p>3</p> </div> <div class="left"> <p>4</p> </div> <div class="...
{ "language": "en", "url": "https://stackoverflow.com/questions/365371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flex HTTPservice and POST, Sending Files? I use a basic Post to send data to a Django server. The data consists of a base64 encoded 640*380 PNG image dynamically created by the flex component. <mx:HTTPService id="formSend" showBusyCursor="true" useProxy="false" url="http://127.0.0.1/form/" method="POST" re...
{ "language": "en", "url": "https://stackoverflow.com/questions/365376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is a good way to display dynamic data in WPF? I am struggling with the best way to handle a WPF application that has dynamic data updates. Should I use the rich data binding provided by WPF or not? I will simplify my problem domain as much as possible in the discussion below, and briefly mention some solutions...
{ "language": "en", "url": "https://stackoverflow.com/questions/365378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Large primary key: 1+ billion rows MySQL + InnoDB? I was wondering if InnoDB would be the best way to format the table? The table contains one field, primary key, and the table will get 816k rows a day (est.). This will get very large very quick! I'm working on a file storage way (would this be faster)? The table is...
{ "language": "en", "url": "https://stackoverflow.com/questions/365380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Canvas rotate from bottom center image angle? How do you rotate an image with the canvas html5 element from the bottom center angle? <html> <head> <title>test</title> <script type="text/javascript"> function startup() { var canvas = document.getElementById('canvas'); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: run a function in another function in N times I have ask this kind of question before, but it seems my previous question is a bit misleading due to my poor English. I'm asking again to make clear. I am really confused about it. Thanks in advance. Suppose I have a function A for generating the state of a cell in a ce...
{ "language": "en", "url": "https://stackoverflow.com/questions/365384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Refactoring: When do you know it's time and when do you do it? When do you know it's time to refactor/review some piece of code ? And better yet, when do you do it? Probably like others, I've found myself knowing that something needs a refactor/review but deadlines and management left no time for that. I'd also like...
{ "language": "en", "url": "https://stackoverflow.com/questions/365387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: shell script for replacing some files with symlinks Some servers only support ftp to upload files. When I export the a project from my subversion repository to my windows machine, all (linux) symlinks are replaces by placeholder-files: link ../www_public/images after uploading the all exported files I now use fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/365388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using VB to automate IE "save target as" I'm trying to use an excel VB macro to download excel files from a membership password-protected site. I am using the "InternetExplorer" object to open a browser window, log-in and browse to the correct page, then scanning for the links I want in the page. Using the Workbooks...
{ "language": "en", "url": "https://stackoverflow.com/questions/365391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to truncate matrix using NumPy (Python) just a quick question, if I have a matrix has n rows and m columns, how can I cut off the 4 sides of the matrix and return a new matrix? (the new matrix would have n-2 rows m-2 columns). Thanks in advance A: A more general answer is: a[[slice(1, -1) for _ in a.shape]] A...
{ "language": "en", "url": "https://stackoverflow.com/questions/365395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I fix the sound in my iPhone app for iPhone OS 2.2? The sound for my iPhone app worked fine when I was running iPhone OS 2.0. I updated to OS 2.2 and now the sound only works with headphones. How can I make the sounds work for both headphones and the speaker again? A: Try toggling the Ring/Silent switch a...
{ "language": "en", "url": "https://stackoverflow.com/questions/365414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Learn C Debugging and Best Practices I've written an Apache module in C. Under certain conditions, I can get it to segfault, but I have no idea as to why. At this point, it could be my code, it could be the way I'm compiling the program, or it could be a bug in the OS library (the segfault happens during a ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/365424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: boost spirit extracting first word and store it in a vector I have problems with Boost.Spirit parsing a string. The string looks like name1 has this and that.\n name 2 has this and that.\n na me has this and that.\n and I have to extract the names. The text "has this and that" is always the same but the name c...
{ "language": "en", "url": "https://stackoverflow.com/questions/365427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a simple & extendable Data Class for ASP.NET? I've worked with a few of these in the past, but I'm looking for a good, reliable and extensible data class for ASP.NET 3.5, that I can adopt and extend for future projects. I'm not looking for LinQ, and I don't want anything which won't be a source-code level s...
{ "language": "en", "url": "https://stackoverflow.com/questions/365442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to setup Django on XMPP on Windows XP Greetings! I'd like to investigate Django but I'm running Windows XP. I've installed XMPP and I currently have Python 2.6 installed (is it true that 2.5 is the only version that will work with XMPP?). What else do I need to get up and running? Any tips, recommended IDEs, e...
{ "language": "en", "url": "https://stackoverflow.com/questions/365453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I detect if a program is running from within valgrind? Is there a way to identify at run-time of an executable is being run from within valgrind? I have a set of C++ unit tests, and one of them expects std::vector::reserve to throw std::bad_alloc. When I run this under valgrind, it bails out completely, pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/365458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: select the tag options using value I want to select an option in select tag through the value. - javascript var selectbox=document.getElementById("Lstrtemplate"); var TemplateName=selectbox.options[selectbox.selectedIndex].text; Now i am having the option text in TemplateName, using this i want to update an anoth...
{ "language": "en", "url": "https://stackoverflow.com/questions/365460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ActionLink CS1026: ) expected I get the above error whenever I try and use ActionLink ? I've only just started playing around with MVC and don't really understand what it's problem is with the code (below): <%= Html.ActionLink("Lists", "Index", "Lists"); %> This just seems to be a parsing issue but it only happens ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: C++ Problem Stuffing 8 bits into a char This is weird. It is a trivial problem: A std::string with bits with length multiple of 8, the first 8 is: "10011100". //Convert each 8 bits of encoded string to bytes unsigned char c = 0; for(size_t i = 0; i < encoded.size(); i += 8) { for(size_t k = 0; k < 8; k++) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Undo/Redo files in Visual Studio Why VS does not have support for undo/redo files? A: It would reproduce the functionality of a revision control system (such as Subversion or CVS), but without some of the benefits of those systems (such as tags and branches). That's probably why it isn't there (or in many IDEs). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .NET: ArrayList vs List What is the difference between ArrayList and List in VB.NET A: ArrayLists are even more space inefficient when used on 64bit to store primitive elements because of the 64bit wide memory references as opposed to 32bit references on 32bit machines, and boxing. See this for more details: http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/365482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Parse email content with Regular Expressions Everyday I receive thousands of emails and I want to parse the content/body of these emails to load them into a database. My problem is that nowadays I am parsing the email body manually and I would like to change the logic to a Regular Expression in C#. Here is the body ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Questions every good .NET developer should be able to answer? My company is about to hire .NET developers. We work on a variety of .NET platforms: ASP.NET, Compact Framework, Windowsforms, Web Services. I'd like to compile a list/catalog of good questions, a kind of minimum standard to see if the applicants are expe...
{ "language": "en", "url": "https://stackoverflow.com/questions/365489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "246" }
Q: Network Security I have been a .net developer for the past three yrs. Just curious to know about the network security field. What kind of work does the developers working in these area do? I really have not much idea about network security but what my understanding is these people are involved in securing network, p...
{ "language": "en", "url": "https://stackoverflow.com/questions/365495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to keep a php script from timing out because of a long mysql query I have an update query being run by a cron task that's timing out. The query takes, on average, five minutes to execute when executed in navicat. The code looks roughly like this. It's quite simple: // $db is a mysqli link set_time_limit (0); /...
{ "language": "en", "url": "https://stackoverflow.com/questions/365496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is it possible to do streaming WiFi Communications on the iPhone? I am looking to develop an iPhone application that will require point-to-point WiFi communications on an iPhone. I would like to use the WiFi interface and have the application stream between the phone and a WiFi device. Does anyone have some experi...
{ "language": "en", "url": "https://stackoverflow.com/questions/365510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to add two numbers without using the + operator? A friend and I are going back and forth with brain-teasers and I have no idea how to solve this one. My assumption is that it's possible with some bitwise operators, but not sure. A: In C, with bitwise operators: #include<stdio.h> int add(int x...
{ "language": "en", "url": "https://stackoverflow.com/questions/365522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Map RSS entries to HTML body w. non-exact search How would you solve this problem? You're scraping HTML of blogs. Some of the HTML of a blog is blog posts, some of it is formatting, sidebars, etc. You want to be able to tell what text in the HTML belongs to which post (i.e. a permalink) if any. I know what you're th...
{ "language": "en", "url": "https://stackoverflow.com/questions/365525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rotating an image in all browsers (canvas in IE?) I finally got to work with canvas only to find out that it is not implemented in IE. I tried explore canvas from google to use it in Internet Explorer, but it's not working for my code (http://uptowar.com/test.php - little bug though that it is not removing the old i...
{ "language": "en", "url": "https://stackoverflow.com/questions/365532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: diagonal movement in a flash animation using as3 i am trying to produce clouds effect in my flash animation using as3 i am able to generate clouds through action script but the real problem is how to make them be generated at one end of the screen and travel diagonally to the other end... any thoughts? A: This is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a satellite assembly? What is a satellite assembly, and when should they be used? A: A definition from MSDN says something like this: "A .NET Framework assembly containing resources specific to a given language. Using satellite assemblies, you can place the resources for different languages in different ass...
{ "language": "en", "url": "https://stackoverflow.com/questions/365569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Strange File Not Found errors with mmioOpen Ive been playing around with XAudio2 but have encountered some strange problems with the mmioOpen function For some reason it seems to fail with MMIOERR_FILENOTFOUND, even though the file is there, in fact the file is in the same directory as other files I'm loading which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/365579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET Ajax Calendar I am using MS AJAX ASP.NET Components (Calendar Extender) and I'm finding this problem. Some weekdays are not being displayed.... I uploaded a picture so you can view exactly how it is being displayed... The one on the right (calnder) in the picture is taken from microsoft's sample. Have you go...
{ "language": "en", "url": "https://stackoverflow.com/questions/365583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flex famous 2048 security violation error, cross domain I thought 2048 security violation error were mean to happen when trying to access other domains. I got: "Security sandbox violation: http://127.0.0.1/site_media/main.swf cannot load data from 127.0.0.1:80", isn it the same domain? what is the solution ? on do...
{ "language": "en", "url": "https://stackoverflow.com/questions/365591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }