text
string
meta
dict
Q: Algorithm for unique find edges from polygon mesh I'm looking for a good algorithm that can give me the unique edges from a set of polygon data. In this case, the polygons are defined by two arrays. One array is the number of points per polygon, and the other array is a list of vertex indices. I have a version that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Data Mapper Pattern Up until now I've been using Active records in all my c# database driven applications. But now my application requires my persistence code being split from my business objects. I have read a lot of posts regarding Martin Fowler's data mapping pattern, but my knowledge of this pattern is still ver...
{ "language": "en", "url": "https://stackoverflow.com/questions/207758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Architectural comments for queueing with RabbitMQ? I basically need a queueing technology that will enable to queue messages. These messages will then later be transmitted as SMS texts. RabbitMQ seems to be quite a good fit after I glossed over the apis. My current architecture plans: * *clients queue messages i...
{ "language": "en", "url": "https://stackoverflow.com/questions/207761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there any IDE's that support Python 3 syntax? I recently saw an announcement and article outlining the release of the first Python 3.0 release candidate. I was wondering whether there were any commercial, free, open source etc. IDE's that support its syntax. A: Python 3 is just not that different from Python 2....
{ "language": "en", "url": "https://stackoverflow.com/questions/207763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to fill a vector with non-trivial initial values? I know how to fill an std::vector with non-trivial initial values, e.g. sequence numbers: void IndexArray( unsigned int length, std::vector<unsigned int>& v ) { v.resize(length); for ( unsigned int i = 0; i < length; ++i ) { v[i] = i; } } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What is the best rich textarea editor for jQuery? Something like this one on the Stackoverflow site would be nice! Or something non-jQuery that doesn't conflict with jQuery $() tags would be great. A: CLEditor is an open source jQuery plugin which provides a lightweight (just over 9K with icons), full featured, cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/207774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: How do you setup Eclipse to work on iPhone development (instead of Xcode)? Although I've been getting more and more familiar with Xcode while developing for the iPhone, there are times I just wished I had a better IDE, something like Eclipse. So I was wondering does anyone know how to migrate iPhone projects to Ecli...
{ "language": "en", "url": "https://stackoverflow.com/questions/207785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Stop password prompt on MAMP startup I develop using MAMP pro on my Mac. When I start MAMP it prompts me for a password if I use port 80. If I use a higher port it doesn't prompt me, but I have to append the port number in the URL ( eg dev.local:8888 ). Does anyone know how to make it not prompt for password when us...
{ "language": "en", "url": "https://stackoverflow.com/questions/207786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: using entity framework/nhibernate with sql2008 geography datatype I am using sql express 2008 and vs2008, writing in c#. I have a db table with a Geography column in it, into which I need to put gps data I collected. When I tried creating an Entity-Framework mapping for this table, it just ignored the column with so...
{ "language": "en", "url": "https://stackoverflow.com/questions/207789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.Net AJAX uses syntax like $get('myId'), is this standard Javascript or JQuery? It doesn't look like basic javascript but nor can I use JQuery commands like $('myId'). Is this or similar functions documented anywhere? For reason I don't want to go into, I am not able to use 3rd party libraries like JQuery but if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you recommend a Shockwave Flash (SWF) to "movie" conversion library for OS X? I've Googled this in various ways, and there's no shortage of software to do it. Since this is something I'm unlikely ever to do again, I'd prefer a free solution, but I'm also willing to pay if the best solution requires it. I'm a fai...
{ "language": "en", "url": "https://stackoverflow.com/questions/207792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Passing a path to a template Is it possible to pass a path such as subject/name to a template then to use that path which is passed in the template as a path and not as a textual string. I am finding that the path is treated as text rather than a path. A: There is an EXSLT extension function dyn:evaluate() that eva...
{ "language": "en", "url": "https://stackoverflow.com/questions/207793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What causes this integer pointer reassignment to crash? I am new to C and i have this question. why does the following code crash: int *a = 10; *a = 100; A: I would like to propose a slight change in the use of malloc(), for all the answers that suggest using it to allocate memory for the int. Instead of: a = mall...
{ "language": "en", "url": "https://stackoverflow.com/questions/207800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Manage large amount of data and images within my question is similar to other friend posted here...we are trying to develop an application that supports possibly terabytes of information based on a land registry in Paraguay with images and normal data. The problem is that we want to reduce the cost of operation to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Converting a Google search query to a PostgreSQL "tsquery" How can I convert a Google search query to something I can feed PostgreSQL's to_tsquery() ? If there's no existing library out there, how should I go about parsing a Google search query in a language like PHP? For example, I'd like to take the following Goog...
{ "language": "en", "url": "https://stackoverflow.com/questions/207817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best Practice for Database Encryption in SQL Server 2005 I need to develop an application which stores data in a SQL Server 2005 database (the app itself will be either a WCF Service or an Asp.Net Web Service). Now, this data is supremely confidential, and I need to have it stored in an encrypted form in the databas...
{ "language": "en", "url": "https://stackoverflow.com/questions/207819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to Forcefully Rollback a Setup from Custom Actions? I am creating a installer in .NET and using custom actions for controlling installation. Now there is certain conditions which I need to check and based on those I have to continue install OR rollback the installation. How can I forcefully rollback the Setup fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/207823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to indicate public/protected/private members in JSDT outline view? Javascript Developer Tools (JSDT) for Eclipse provides a nice outline view of Javascript classes, with a little symbol next to them to indicate visibility. Looking at Preferences->Javascript->Appearance->Members Sort Order, it seems able to indi...
{ "language": "en", "url": "https://stackoverflow.com/questions/207824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any good documentation on the VB.Net Project file structure? I need to start messing with a vb.net(vs2008) project file and I'd like a reference to, ideally, it's specification. Any links would be very helpful A: Doh! As I should have known....a VB.Net Project is nothing more than an MSBuild file. Detail h...
{ "language": "en", "url": "https://stackoverflow.com/questions/207825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best approach to use in Java 6 for a List being accessed concurrently I have a List object being accessed by multiple threads. There is mostly one thread, and in some conditions two threads, that updates the list. There are one to five threads that can read from this list, depending on the number of user requests be...
{ "language": "en", "url": "https://stackoverflow.com/questions/207829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Redirect to a link using the default broswser in Windows Form based application I am not use: Process.Start (String, String) to open a link. But every time the browser open a new tab or new window to open the link. Is there a way that to open the link in the latest opened page? Just redirection, no new tab or new wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/207830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way of parsing many complex command-line arguments in Java? I have used getopt in Python and was hoping there would be something similar in Java. Please give a reason why your answer is better than the others. A: Commons CLI A: I use Jewelcli and it's quite good. You can also find a discussion of...
{ "language": "en", "url": "https://stackoverflow.com/questions/207831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How gmail handles file attachment? When I select a file to attach in gmail compose screen, It automatically uploads the file to server without page refresh. I looked at the html source code via FireBug and have not seen a n iframe. How do they upload attachments? Thanks. A: There's an example and small write-up her...
{ "language": "en", "url": "https://stackoverflow.com/questions/207833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ReportViewer control won't allow Exporting 1) I have a ReportViewer control on a page that's linked to a ServerReport (I'm using ASP.NET 2.0). The report displays fine, but the 'Export' link is present but disabled and the 'Select a format' drop down list (that's normally visible when you view the report in Reportin...
{ "language": "en", "url": "https://stackoverflow.com/questions/207836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding functonality to Linq-to-SQL objects to perform common selections In a previous question I asked how to make "Computed properties" in a linq to sql object. The answer supplied there was sufficient for that specific case but now I've hit a similar snag in another case. I have a database with Items that have to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What benefits/impact will IPv6 have on application development & design? There has been a lot of press about IPv6 and the impending switch over to IPv6 from IPv4. I have some understanding of IPv6, but I've often wondered how much impact IPv6 has on application development & design (specifically)? Are there some ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/207838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I prevent Eclipse from hanging on startup? I am using Eclipse 3.3 ("Europa"). Periodically, Eclipse takes an inordinately long time (perhaps forever) to start up. The only thing I can see in the Eclipse log is: !ENTRY org.eclipse.core.resources 2 10035 2008-10-16 09:47:34.801 !MESSAGE The workspace e...
{ "language": "en", "url": "https://stackoverflow.com/questions/207843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "230" }
Q: Getting The Full Result from "ps" How do I get the full width result for the *nix command "ps"? I know we can specify something like --cols 1000 but is there anyway I can the columns and just print out everything? A: Specify the w option twice, if you're using BSD-style ps. e.g., ps auwwx. A different set of option...
{ "language": "en", "url": "https://stackoverflow.com/questions/207848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to create a Silverlight control that has two content areas I want to create a Silverlight 2 control that has two content areas. A Title and a MainContent. So the control would be: <StackPanel> <TextBlock Text=" CONTENT1 "/> <Content with CONTENT2 "/> </StackPanel> When I use the control I should just be able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java library to read a Microsoft Media Server (MMS) stream I would like to know if there is available any Java library to read a Microsoft Media Server (MMS) stream. Thanks, Douglas A: A google search reveals: * *JavaMMS with a one and only "0.5 - Initial release" back in 2002 *Velocity Reviewers' forum discuss...
{ "language": "en", "url": "https://stackoverflow.com/questions/207854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Service and/or Commodity Do we create services when we write programs, or are they commodities? Are we like window-washers in that our programs(actions) provide some services to the users? OR: are we like carpenters in that our programs(products) are sold and used by their new owners? Or should this be seen in diffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/207856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Databases: Are "TEXT" fields less efficient than "varchar"? Is it less efficient to use TEXT than varchar in an SQL database? If so why? If not why would you not just always use TEXT? I'm not targetting a specific database here but oracle is probably the most relevant, although I'm testing on MySQL for the time bein...
{ "language": "en", "url": "https://stackoverflow.com/questions/207867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I use Unicode characters in Pod and perldoc? I need to use utf-8 characters in my perl-documentation. If I use: perldoc MyMod.pm I see strange characters. If I use: pod2text MyMod.pm everything is fine. I use Ubuntu/Debian. $ locale LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="d...
{ "language": "en", "url": "https://stackoverflow.com/questions/207871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Visual Studio 2008 Setup Project is not generating Setup.exe anymore I have a Visual Studio 2008 Setup Project that when compiled in the past would generate a Setup.exe in the output directory along with the .msi output file. Now it no longer generates the Setup.exe which I actually do need. Did I change a project s...
{ "language": "en", "url": "https://stackoverflow.com/questions/207877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cookie loses value in ASP.net I have the following code that sets a cookie: string locale = ((DropDownList)this.LoginUser.FindControl("locale")).SelectedValue; HttpCookie cookie = new HttpCookie("localization",locale); cookie.Expires= DateTime.Now.AddYears(1); Response.Cookies.Set(cookie); However, when I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Hide a tab previously added to Qt TabWidget I've a dialog which contains a Qt TabWidget with a number of tabs added. I'd like to hide one of the tabs. _mytab->hide() doesn't work. I don't want to just delete the tab and all its widgets from the .ui file because other code relies on the widgets within the tab. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best Practice for Loading Object from Serialized XML in C# Greetings, I have a particular object which can be constructed from a file, as such: public class ConfigObj { public ConfigObj(string loadPath) { //load object using .Net's supplied Serialization library //resulting in a Config...
{ "language": "en", "url": "https://stackoverflow.com/questions/207888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: recursion instead of multi-loops I want this method to work for any given number of arguments, i can do that with code generation(with a lot of ugly code), can it be done with recursion? if so how? I understand recursion, but i dont know how to write this. private static void allCombinations(List<String>... lists) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/207889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C#/.NET: Detect whether program is being run as a service or a console application I have a C#/.NET program that can run both as a console application and as a service. Currently I give it a command-line option to start as a console application, but I would like to avoid that. Is it possible to programmatically dete...
{ "language": "en", "url": "https://stackoverflow.com/questions/207896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: nHibernate, can I map to a table that doesn't have an row-per-object mapping? I have a database that contains a table that looks a bit like this: PropertyId, EntityId, Value PropertyId and EntityId are a combined primary key. Every Entity is spread over a couple of rows where every row contains a single property of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to delete a DataGridView row that is being added when the user cancels the addition process? I have a databound DataGridView. When a new row is added and the user presses Esc I want to delete the entire row. How can I do this? A: quite easy actually private void dataGridView1_KeyPress(object sender, KeyPressEve...
{ "language": "en", "url": "https://stackoverflow.com/questions/207901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How best to deal with gigantic source code files in Visual Studio I'm working on a project which makes substantial use of code generation. Some of the files it generates contain >0.25 million lines of code. VS (2K5) doesn't cope too badly, but R# (4.01) throws an out of memory exception every two minutes or so. Spli...
{ "language": "en", "url": "https://stackoverflow.com/questions/207902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is there a free python debugger that has watchpoints? pdb and winpdb both seem to be missing this essential (to me) feature. I saw something suggesting WingIDE has it but I'd prefer a solution that is free, and if I do have to pay, I'd prefer to pay for something that is better than Wing. A: You should check out E...
{ "language": "en", "url": "https://stackoverflow.com/questions/207904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Jsp useBean with struts I'm pretty new at this so take it easy on me. The code I'm trying to get to work is: <jsp:useBean id="EJD" class= "MoverDetailForm" scope="application"/> <jsp:setProperty name="EJD" property="empFDJoiningDate" param="empFDJoiningDate" /> <% String empFDJoiningDate = EJD.getEmpFDJoiningDate()...
{ "language": "en", "url": "https://stackoverflow.com/questions/207907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: distributed transaction between two MS SQL Server 2005 I need to make DISTRIBUTED TRANSACTION between two MS SQL Server 2005, it drops an error that NO ACTIVE TRANSACTION IS PRESENT or smth like this. DTCTESTER programs drops an error that transaction could not be done. btw 135 port is open on the firewall. Maybe a...
{ "language": "en", "url": "https://stackoverflow.com/questions/207924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to keep business support team motivated? In the course of my career I've noticed that developers working on new functionality are, as a rule, more cheerful than these assigned to troubleshooting and fixing bugs. Good tips on keeping business support a happy? Organising business support in the way that team's mor...
{ "language": "en", "url": "https://stackoverflow.com/questions/207925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best API for simple 2D graphics with Java I'm not sure what the best api for simple 2d graphics with Java is. I know java.awt.Graphics2D was the standard but has it been replaced? Swing is the new API for Java GUI apps but it seems a bit heavy for what I want. What I really want is something like the C SDL library. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/207938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Python module that implements ftps I was wondering if anybody could point me towards a free ftps module for python. I am a complete newbie to python, but this is something I need for a work project. I need an ftps client to connect to a 3rd party ftps server. thanks, David. A: I believe you could use Twisted to imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/207939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Why does AbstractQueuedSynchronizer interrupt on acquring lock I was looking at the source code of java.uti.concurrent.locks.AbstractQueuedSynchronizer and the acquire() method looks something like this - public final void acquire(int arg) { if (!tryAcquire(arg) && acquireQueued(addWaiter(Node.EXCLUSIVE...
{ "language": "en", "url": "https://stackoverflow.com/questions/207946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get a platform-dependent new line character? How do I get a platform-dependent newline in Java? I can’t use "\n" everywhere. A: Java 7 now has a System.lineSeparator() method. A: You can use System.getProperty("line.separator"); to get the line separator A: If you're trying to write a newline to a file,...
{ "language": "en", "url": "https://stackoverflow.com/questions/207947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "582" }
Q: Equivalent of %~dp0 (retrieving source file name) in sh I'm converting some Windows batch files to Unix scripts using sh. I have problems because some behavior is dependent on the %~dp0 macro available in batch files. Is there any sh equivalent to this? Any way to obtain the directory where the executing script live...
{ "language": "en", "url": "https://stackoverflow.com/questions/207959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: View error in PostgreSQL I have a large query in a PostgreSQL database. The Query is something like this: SELECT * FROM table1, table2, ... WHERE table1.id = table2.id... When I run this query as a sql query, the it returns the wanted row. But when I tries to use the same query to create a view, it returns an error...
{ "language": "en", "url": "https://stackoverflow.com/questions/207964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: General way to reset a member variable to its original value using the stack? I came across a class instance function that needed to temporarily change a class instance variable, and then restore it when the function completed. The function had return statements all over the place, and before each return there was a...
{ "language": "en", "url": "https://stackoverflow.com/questions/207965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use Vista's SuperFetch with Eclipse? Vista's SuperFetch works well with applications installed, but it does not seem to do so with Eclipse, which is just copied in a directory. Does anyone know how to correct this ? Or is it simply not possible ? [I hope this one will not be closed as "not programming related...
{ "language": "en", "url": "https://stackoverflow.com/questions/207967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I extract a 2D slice from 3D geometry from plane intersection? Recently our team was facing the task to build the 2D slice between a plane and some set of 3D geometry (set of triangles). Google hasn't been as helpful as we have wanted it to be, so we turn our attention here to see if anyone has encountered th...
{ "language": "en", "url": "https://stackoverflow.com/questions/207971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to easily map c++ enums to strings I have a bunch of enum types in some library header files that I'm using, and I want to have a way of converting enum values to user strings - and vice-versa. RTTI won't do it for me, because the 'user strings' need to be a bit more readable than the enumerations. A brute forc...
{ "language": "en", "url": "https://stackoverflow.com/questions/207976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "136" }
Q: How to enable MySQL client auto re-connect with MySQLdb? I came across PHP way of doing the trick: my_bool reconnect = 1; mysql_options(&mysql, MYSQL_OPT_RECONNECT, &reconnect); but no luck with MySQLdb (python-mysql). Can anybody please give a clue? Thanks. A: I solved this problem by creating a function that wra...
{ "language": "en", "url": "https://stackoverflow.com/questions/207981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Windows (ideally .NET callable) API to join MP4 and/or 3GP files? I'm working on our back-end encoder service which does an awful lot of video transcoding, and a very small amount of joining of video files. The transcoding is done using the On2 Flix engine for Windows which works very well, but unfortunately it isn...
{ "language": "en", "url": "https://stackoverflow.com/questions/207987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do i specify a bold version of the theme's default font? I'm having problems with cross theme compatibility in windows forms. If you don't set the font for a control on a windows form, it will use the system font with correct typeface and size. If you want to make the font bold, it hard codes in the rest of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/207994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how do you manage servers' root passwords In our administration team everyone has root passwords for all client servers. But what should we do if one of the team members is not longer working with us? He still has our passwords and we have to change them all, every time someone leave us. Now we are using ssh keys i...
{ "language": "en", "url": "https://stackoverflow.com/questions/208007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: F# declared namespace is not available in the c# project or visible through the object browser F# declared namespace is not available in the c# project or visible through the object browser. I have built a normal F# library project, but even after i build the project and reference it to my C# project, I am unable to...
{ "language": "en", "url": "https://stackoverflow.com/questions/208008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to list the properties of a JavaScript object? Say I create an object thus: var myObject = {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"}; What is the best way to retrieve a list of the property names? i.e. I would like to end up with some variable 'keys' such that: keys == ["ircEven...
{ "language": "en", "url": "https://stackoverflow.com/questions/208016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "951" }
Q: Is it possible to create a custom distribution of OpenOffice, or a way to package it into my java application? I've got simple java-based ppt->swf sub-project that basically works. The open source software out there, OpenOffice.org and JODConverter do the job great. The thing is, to do this I need to install OO.o a...
{ "language": "en", "url": "https://stackoverflow.com/questions/208017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Export Multiple Sheets to Excel Through Browser I need to export multiple data tables to Excel on the clients machine, each to their own sheet. If it was just one sheet, I'd use the Excel/csv content type, but I've heard something about an XML format that can represent an entire workbook. I don't want to go down t...
{ "language": "en", "url": "https://stackoverflow.com/questions/208018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does SQL Management Studio output null separated characters when saving as csv? and can it be configured not to happen? I'm usually finding myself saving a result of a query as a .csv and processing it later on my Unix machine. The characters being null separated makes me have to filter those chars and is a bit ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why are width & height of loaded SWFLoader zero? I have a class which extends SWFLoader, I use it like a normal SWFLoader: var loader:MySWFLoader = new MySWFLoader(); loader.load("myFile.SWF"); myScene.addChild(loader); The loading works OK, except that it remains 0 because the width & height never change from 0. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/208033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Selectively apply css to a row in a gridview I'm looking for a way to selectively apply a CSS class to individual rows in a GridView based upon a property of the data bound item. e.g.: GridView's data source is a generic list of SummaryItems and SummaryItem has a property ShouldHighlight. When ShouldHighlight == tru...
{ "language": "en", "url": "https://stackoverflow.com/questions/208038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Replacing spaces using regex in PHP I'm pretty new to regular expressions. I have a requirement to replace spaces in a piece of multi-line text. The replacement rules are these: * *Replace all spaces at start-of-line with a non-breaking space (&nbsp;). *Replace any instance of repeated spaces (more than one spac...
{ "language": "en", "url": "https://stackoverflow.com/questions/208046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Consuming a Web service using Javascript Is there a way to consume a web service using JavaScript? I'm Looking for a built-in way to do it, using a JavaScript framework is not an option. A: You can create an XMLHttpRequest if the service is hosted within your domain. If not, you will have cross-domain issues. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/208051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: MS CA Exit Module Code or Tutorial I'm struggling to find examples/explanations of coding a MS Certificate Authority exit module. If anybody has any help or resources they can point me at I'd be grateful. A: Perhaps this article will help you? Writing Custom Exit Modules A: The Windows 7 SDK contains a sample in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: User Names and White-Spaces In past many years I have registered on various applications and platforms hosted online or offline. Why white-spaces are not allowed in User Names as spaces are very natural to names and most of the computing systems can handle them efficiently. (Many people can raise similar questions a...
{ "language": "en", "url": "https://stackoverflow.com/questions/208054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What are the MIME types for .NET project source code files? Are there official MIME types for the .cs (C# source), .resx, .aspx, etc. files in a .NET project? If no official types are defined, any recommendations on good MIME types? This will be exposed via Apache and the mod_dav_svn module when viewing a Subversio...
{ "language": "en", "url": "https://stackoverflow.com/questions/208056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: HTTP Authentication (Basic or Digest) in ASP Classic via IIS I want to develop a website in ASP classic that uses HTTP Authentication against a database or password list that is under the control of the script. Ideally, the solution should involve no components or IIS settings as the script should be runnable in a h...
{ "language": "en", "url": "https://stackoverflow.com/questions/208063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I use RLIKE MySQL function inside of SQL Server 2005? I need to run a RLIKE query on a database mmoved from MySQL to SQL Server 2005 however having problems replicating the "RLIKE" functionality that MySQL provides. Does anyone have any ideas? Cheers, Chris A: The only way I know of to do that is to add use...
{ "language": "en", "url": "https://stackoverflow.com/questions/208070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fast recursive grepping of svn working copy I need to search all cpp/h files in svn working copy for "foo", excluding svn's special folders completely. What is the exact command for GNU grep? A: I use ack for this purpose, it's like grep but automatically knows how to exclude source control directories (among other...
{ "language": "en", "url": "https://stackoverflow.com/questions/208074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Form bean to session variable If i can use <td><textarea><bean:write name="smlMoverDetailForm" property="empFDJoiningDate"/> </textarea></td> to displace a value how can i use the struts tags to save a vaiable to the sesssion in sudo code session.setAttribute("test" , "<bean:write name="smlMoverDetailForm" propert...
{ "language": "en", "url": "https://stackoverflow.com/questions/208077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use a different assembly name for different configurations? In Visual Studio 2008 (and others) when creating a .NET or silverlight application if you look at your project properties, it seems like you can only have one assembly name - across all configurations. I would like to compile my application as: MyApp...
{ "language": "en", "url": "https://stackoverflow.com/questions/208084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to make Apache/mod_python process collect its zombies? Apache/2.2.6 (Unix) DAV/2 mod_python/3.2.8 Python/2.4.4 configured ... One of apache processes spawns some long-running python script asynchronously, and apparently doesn't seem to collect its child process table entry. After that long-run-in-subprocess pyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/208085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JQuery selector logic fails if id has '.' in the value. Any solution? I am using Spring Forms for my web application. For nested properties, the form tag generates the input elements having id / name in form of . For example, Person is the command class and Address is contained into its address field then the city e...
{ "language": "en", "url": "https://stackoverflow.com/questions/208089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to find difference between two strings? I have two strings and would like to display the difference between them. For example, if I have the strings "I am from Mars" and "I am from Venus", the output could be "I am from Venus". (Typically used to show what changed in an audit log, etc.) Is there a simple algorit...
{ "language": "en", "url": "https://stackoverflow.com/questions/208094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Can syslog Performance Be Improved? We have an application on Linux that used the syslog mechanism. After a week spent trying to figure out why this application was running slower than expected, we discovered that if we eliminated syslog, and just wrote directly to a log file, performance improved dramatically. I u...
{ "language": "en", "url": "https://stackoverflow.com/questions/208098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I get Srcsrv with SVNindex.cmd to index extern files? I have recently made use of the SrcSrv feature in the Debugging Tools For Windows, but have noticed that when I index the pdb with SVNIndex.cmd it does not pick up any of the files that are from an external link. Any suggestions ? A: Finally i got some t...
{ "language": "en", "url": "https://stackoverflow.com/questions/208100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ubiquitous computing and magnetic interference Imagine the radio of a car, does the electro magnetic fields through which the car goes through, have interference in the processing? It's easy to understand that a strong field can corrupt data. But what about the data under processment? Can it also be changed? If so h...
{ "language": "en", "url": "https://stackoverflow.com/questions/208103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I remove a property from a JavaScript object? Given an object: let myObject = { "ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*" }; How do I remove the property regex to end up with the following myObject? let myObject = { "ircEvent": "PRIVMSG", "method": "newURI" }; A: To remove ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7299" }
Q: Trying to reap the benefits of the Rich WEB.UI.Gridview control in a C# application I know that I can't use this web control in my C# windows application and that I am restricted to DataGridView control. But this does not display results in an elegant manner as the Web.UI.Webcontrol.GridView control but instead disp...
{ "language": "en", "url": "https://stackoverflow.com/questions/208111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DetailsView web control does not change to insert mode when insert is clicked I'm binding a hashtable to a detailsview web control in ASP.NET 2.0. I have my edit/delete/insert link buttons on the detailsview, but when clicking new, the mode does not change. Any ideas why? A: I'm assuming that you have created a 'Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/208115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Launch an event that has accessors How can I launch an event that has accessors like this : public event EventHandler CanExecuteChanged { add { CommandManager.RequerySuggested += value; } remove { CommandManager.RequerySuggested -= value; } } If it were a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to read and write multiple files? I want to write a program for this: In a folder I have n number of files; first read one file and perform some operation then store result in a separate file. Then read 2nd file, perform operation again and save result in new 2nd file. Do the same procedure for n number of files...
{ "language": "en", "url": "https://stackoverflow.com/questions/208120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: What is the best practice for compiling Silverlight and WPF in one project? I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app. Some of these classes are compatible ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How long to retain an archive of web server traffic logs? We've currently got four web servers in a farm generating IIS web logs about 100Mb per day. These can be compressed pretty effieciently down to somewhere around 5% of their size. We are planning to use waRmZip to move them off the servers and onto a SAN. Afte...
{ "language": "en", "url": "https://stackoverflow.com/questions/208124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Set Locale of a SQL Server 2005 By default the SQL Server comes with the Langauge set to "English (United States)", setting the date format to mm/dd/yy instead of the date format I want it in, which is Australian and has a date format such as dd/mm/yy. Is there an option in the Server Management Studio / Configurati...
{ "language": "en", "url": "https://stackoverflow.com/questions/208133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Configure multiple keystores in JBoss depending on requested hostname I have my J2EE application deployed into a JBossAS. My Application has to respond to two different hostnames (https://foo.com/myApp and https://bar.com/myApp). It is the same instance of the app serving those two hostnames. But I don't know how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/208149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Webform checkbox value in javascript I have a checkbox list control on my asp.net web form that I am dynamically populating from an arraylist. In javascript I want to be able to iterate through the values in the list and if a particular value has been selected to display other controls on the page. My issue is that...
{ "language": "en", "url": "https://stackoverflow.com/questions/208151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Applet and Browser Freeze Is there a best practice for avoiding a browser freeze when loading an applet? For my precise needs, the applet needs to be loaded when the web application is initialized, and is not a visual component (will be in a hidden div or hidden iframe). As a reference, here is an old bug on SU...
{ "language": "en", "url": "https://stackoverflow.com/questions/208161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How would you pass data from a child view to a parent view using the iPhone SDK? Which method would you recommend to pass data from a child view back to it's parent view? A: There are a number of ways to do this. *Set a member variable in the child when its added to the parent *Send a message to [self superview]...
{ "language": "en", "url": "https://stackoverflow.com/questions/208171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to interact with embedded PDF documents in iframes through JavaScript? How to interact with embedded PDF documents in iframes through JavaScript? * *Is it possible? *Is it possible in every main browsers? if "yes", how can I... * *...know that the document finished loading? *...trigger the print dialog...
{ "language": "en", "url": "https://stackoverflow.com/questions/208176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Object Oriented Model on top of LINQ to SQL I'm playing a bit with LINQ to SQL and overall it's a much better option than what Microsoft had before (DataSet), but it seems that object-oriented capabilities are still limited. Since we currently use a custom persistence framework that created a OO model on top of Data...
{ "language": "en", "url": "https://stackoverflow.com/questions/208179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to rename with prefix/suffix? How do I do mv original.filename new.original.filename without retyping the original filename? I would imagine being able to do something like mv -p=new. original.filename or perhaps mv original.filename new.~ or whatever - but I can't see anything like this after looking at man mv ...
{ "language": "en", "url": "https://stackoverflow.com/questions/208181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "127" }
Q: Class design: Wrapping up a datafile into a class with respect to thread-safety and testability I'm writing an app in C# (.net 3.5) and I have a question about class design: I'd like to create a class which accesses a file (read, write) and provides its content to the users (instanciators) of the class. The most co...
{ "language": "en", "url": "https://stackoverflow.com/questions/208184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I display only certain columns from a data table? I'm using a web service that returns a dataset. in this dataset there are 5 table, let's say table A, B, C, D, E. I use table A. So DataTable dt = new DataTable() dt = dataset.Table["A"] Now in this datatable there are columns a1,a2,a3,a4,a5,a6,a7. Let's say...
{ "language": "en", "url": "https://stackoverflow.com/questions/208186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }