text stringlengths 8 267k | meta dict |
|---|---|
Q: What is the best way to add options to a select from a JavaScript object with jQuery? What is the best method for adding options to a <select> from a JavaScript object using jQuery?
I'm looking for something that I don't need a plugin to do, but I would also be interested in the plugins that are out there.
This is w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/170986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1475"
} |
Q: How to get the charset from an HTML page I'm trying to get the charset attribute in any HTML meta tag.
(ie.< meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >)
Is there any way to do that in C++ under linux. I was using HTML tidy as a parser but I can't get that attribute to return me anything... | {
"language": "en",
"url": "https://stackoverflow.com/questions/170988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to remove a table row with jQuery? What is the best method for removing a table row with jQuery?
A: Is the following acceptable:
$('#myTableRow').remove();
A: All you have to do is to remove the table row (<tr>) tag from your table. For example here is the code to remove the last row from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/170997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "341"
} |
Q: How do I make an onclientclick post back using jQuery with asp.net I want to recreate the the update panel postback without using an update panel to do the postback. What is the generic method for doing this?
For example, on Stackoverflow, when you vote up or down on a question it does a postback to update the data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: iphone <-> real world connection Any pointers on how to initiate serial communication with the iphone? Or any other idea to interact with external hardware?
A: The only supported way to connect external hardware to the iPhone is through the iPod accessory protocol, through the 30-pin connector. Details on that pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Accepting client certificates from any CA I am setting up support for users to sign in with client certificates. Unfortunately IIS refuses to acknowledge any certificate not chained to an installed CA (see this article).
As the feature is implemented only for users´ convenience, it would be great to allow any client... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Close point of approch detection I have a large set of 3rd order polynomials in 3D.
in matrix form
Pn = [1,t,t2,t4]*[An]
[Pn] and [An] are 1xN and 4xN matrices respectively
each function has a weight Wn. I want to, for some n, m, T and t0 find the first t where t>t0 such that
(Wn*Wm) * |Pn-Pm|-2 > T
aside from a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding a table row in jQuery I'm using jQuery to add an additional row to a table as the last row.
I have done it this way:
$('#myTable').append('<tr><td>my data</td><td>more data</td></tr>');
Are there limitations to what you can add to a table like this (such as inputs, selects, number of rows)? Is there a differ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2632"
} |
Q: Any Substitute API for Win32API? I need an API that can make menus like Win32API,
But something simpler and better than WinAPI.
That can make GUI, with text zones, buttons etc...like an average Windows program.(Windows GUI Style)
Can anyone recommand on one like it? Thanks.
A: wxWidgets:
wxWidgets lets developers ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Creating a stage environment on network with port 80 blocked I currently use my local web server to allow costumers to preview some applications and also to allow downloads of "nightly builds" of my open source library.
Problem is I changed my ISP and now my port 80 is blocked.
Altough I know I could easily change ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adobe Air and .NET I Adobe Air completly JavaScript? Can't I use a .NET language like VB.NET or C#.NET?
Thanks
A: As the official answer states, Adobe Air does not support .Net languages. If you are looking for something similar for Windows desktop programming that does support .Net I would suggest WPF. The WPF ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: AJAX and Relative Path Scope I'm trying to lightbox a page containing a SWF via the nifty AJAX feature in Facebox (for jQuery). The trouble is that the paths now work relative to the main index page, not the directory that houses the flash page. Here's a directory breakdown:
./
- index.html (loads projects/project... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: onmousemove in firefox How do you implement onmousemove in Firefox? I have it working in IE7 but no alert pops in Firefox. Is is not supported or done differently?
<esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1"
Height="100%" Width="100%" VirtualDirectory=""
PrimaryMapResource="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I configure Microsoft ADAM to be similar to Active Directory? I want to put users into an instance of ADAM so that ADAM looks similar to a typical, real, Active Directory server.
I'm developing an application that integrates with LDAP. I've tested with OpenLDAP and its core.schema. Now I'd like to test w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I change the "level" of validation that Ant's XMLValidate task provides? I am attempting to use Ant's XMLValidate task to validate an XML document against a DTD. The problem is not that it doesn't work, but that it works too well. My DTD contains an xref element with an "@linkend" attribute of type IDREF. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sensible HTTP POST timeout values to use when programmatically issuing requests? When programmatically issuing HTTP POST requests, what timeout values would be sensible?
In my case, I'm looking to set 'sensible' timeout values when making POST requests in PHP, however this applies to any language.
I need to be able ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Allowing users to post pictures to web application via mobile phone? There are several web applications which allow you to send photos from your mobile phone and post them to web site/application. How do these work and what sort of technologies would one use to implement such a feature? Is it an MMS server or does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Standard connection libraries for MySQL, MSSQL, and Oracle in PHP I'm looking for a standard way to connect to databases in PHP. We've all been there - first start with some rudimentary code to connect/query/iterate/insert/disconnect, then the code grew as the program grew, and it ended up with a mess that's hardly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Integrating AJAX and PHP I've been writing PHP web applications for some time, and have come across very nice Javascript frameworks, such as JQuery, ExtJS, Scriptaculous, etc. I can't say the same about the PHP side - I always coded that part of the client-server dialog from scratch.
I've used CodeIgniter (http://co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Autostart spring app So is there a way to initialize and start a command line Spring app without writing a main method. It seems like all such main methods have the same form
public static void main(final String[] args) throws Exception {
ApplicationContext ctx = new ClassPathXmlApplicationContext("context.xml",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I flip a bit in SQL Server? I'm trying to perform a bitwise NOT in SQL Server. I'd like to do something like this:
update foo
set Sync = NOT @IsNew
Note: I started writing this and found out the answer to my own question before I finished. I still wanted to share with the community, since this piece of docum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: Has anyone here worked on KOFAX-SharePoint 2007 integration? We want to be able to advance our business by utilizing both of the power of KOFAX and SharePoint 2007. Any pointers Development-wise?
A: We looked into doing something like this a couple of years ago. We were thinking of having printed documents scanned ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Looking for the suffix tree implementation in C#? I've implemented a basic search for a research project. I'm trying to make the search more efficient by building a suffix tree. I'm interested in a C# implementation of the Ukkonen algorith. I don't want to waste time rolling my own if such implementation exists.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Java maximum memory on Windows XP I've always been able to allocate 1400 megabytes for Java SE running on 32-bit Windows XP (Java 1.4, 1.5 and 1.6).
java -Xmx1400m ...
Today I tried the same option on a new Windows XP machine using Java 1.5_16 and 1.6.0_07 and got the error:
Error occurred during initialization of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "105"
} |
Q: How to block running two instances of the same program? I need to make sure that user can run only one instance of my program at a time.
Which means, that I have to check programatically, whether the same program is already running, and quit in such case.
The first thing that came to my mind was to create a file som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: PHP access to iTunes tags in an RSS feed I need to get access to the iTunes tags in an RSS feed using PHP. I've used simplepie before for podcast feeds, but I'm not sure how to get the iTunes tags using it. Is there a way to use simplepie to do it or is there a better way?
Okay I tried Simple XML.
All this (the cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Apache Webserver security and optimization tips I'm about to deal with managing and running my first Internet connected Apache webserver and I was wondering if there are any sys admins and developers out there that would like to share some of their knowledge regarding security and optimization tips for running Apach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Programming on the Asus EEE Pc in Visual Studio Has anybody tried programming on the EEE Pc in Visual Studio?
I'm considering buying one so I can show some apps on the fly, but also make small changes to them if necessary, without the inconvenience of a large laptop.
Some key points I'm after:
*
*How fast it is
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I merge properties of two JavaScript objects dynamically? I need to be able to merge two (very simple) JavaScript objects at runtime. For example I'd like to:
var obj1 = { food: 'pizza', car: 'ford' }
var obj2 = { animal: 'dog' }
obj1.merge(obj2);
//obj1 now has three properties: food, car, and animal
Is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3179"
} |
Q: Can you use javascript to modify onmousedown of div at runtime I want to write some JavaScript that will change the onmousedown of a div at runtime. So on load a mouse down on the div will do one thing and if a JavaScript function is called a mouse down on the div will do something else. Is this possible?
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: UNIX shell written in a reasonable language? Has anyone ever heard of a UNIX shell written in a reasonable language, like Python?
A: From all appearances, Python IS a shell. It runs with #! and it can run interactively. Between the os and shutil packages you have all of the features of standard Unix shells.
Since... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Silverlight: Empty Storyboard vs BackgroundWorker Which one performs better to run a game main loop?
A: There's a new option in RC0, it's the CompositionTarget.Rendering event. It seems to have promise for being the best option.
As for other game loop methods, it's generally accepted that the empty Storyboard is be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I convert a character code back to a character? How to I get the Fixnum returned by the following:
"abc"[2]
Back into a character?
A: Be careful because Ruby 1.9 and later will return a single-character string for "abc"[2], which will not respond to the chr method. You could do this instead:
"abc"[2,1]
Be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: merb_auth_password_slice does not maintain the session Having integrated merb_auth_password_slice as per the README, I can successfully login as redirect_after_login is being triggered, although session.authenticated? returns false.
Just trying the basic auth strategy for now (password form), can't seem to get it wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Logging entry and exit of methods along with parameters automagically? Is there a way for me to add logging so that entering and exiting methods gets logged along with parameters automatically somehow for tracing purposes? How would I do so?
I am using Log4Net.
A: The best way to achieve this sort of thing is by us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What's the maximum number of keys for an array in php I'm writing a php script where I call
$lines = file('base_list.txt');
to break a file up into an array. The file has over 100,000 lines in it, which should be 100,000 elements in the array, but when I run
print_r($lines);
exit;
the array only contains 7280 el... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Combine Fluent and XML mapping for NHibnernate I just fell in love with NHibernate and the fluent interface. The latter enables very nice mappings with refactoring support (no more need for xml files).
But nobody is perfect, so I am missing the many-to-any mapping in fluent. Does anybody know if it is already there?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the fastest way to divide an integer by 3? int x = n / 3; // <-- make this faster
// for instance
int a = n * 3; // <-- normal integer multiplication
int b = (n << 1) + n; // <-- potentially faster multiplication
A: Depending on your platform and depending on your C compiler, a native solution like just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: How do I capture PHP output into a variable? I'm generating a ton of XML that is to be passed to an API as a post variable when a user click on a form button. I also want to be able to show the user the XML before hand.
The code is sorta like the following in structure:
<?php
$lots of = "php";
?>
<xml>
<mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: How can I increase the key repeat rate beyond the OS's limit? I have a bad habit of using the cursor keys of my keyboard to navigate source code. It's something I've done for 15 years and this of course means that my navigating speed is limited by the speed of the keyboard. On both Vista and OS X (I dual boot a MacB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Accessing internal members via System.Reflection? I'm trying to Unit Test a class that has many internal functions. These obviously need testing too, but my Tests project is seperate, mainly because it covers many small, related projects. What I have so far is:
FieldInfo[] _fields =
typeof(ButtonedForm.TitleBut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: What is the best way to validate a terminal command has run successfully in Rails? I'm writing a quick Rails app and was wondering how I can validate the success an exec'd command. The two commands I'm running are and SVN update, and a cp from one directory to another.
A: If you use the Kernel.system() method it w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: matlab FFT. Stuck understanding relationship between frequency and result We're trying to analyse flow around circular cylinder and we have a set of Cp values that we got from wind tunnel experiment. Initially, we started off with a sample frequency of 20 Hz and tried to find the frequency of vortex shedding using F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: c# store user settings in database Is there an easy method to store a person's user settings in a sql 2000 database. Ideally all settings in one field so I don't keep having to edit the table every time I add a setting. I am thinking along the lines of serialize a settings class if anyone has an example.
The reason ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Third party data delivery of lots of data Does anyone know how sites that have a real-time feed of a lot of data work? I am referring to something like a stock site, where they can tell you in real time (well, 20 minute delay mostly, but still real-time - 20 minutes as I understand it).
They have thousands of dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strategies for pushing updates to an ASP.NET webfarm? How do most people handle updating ASP.NET applications running in a webfarm? I am having the problem that because the app is in use and the request affitnity is not sticky, when we push the update users run into errors as the process requests the request might ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is Reflection? I am VERY new to ASP.NET. I come from a VB6 / ASP (classic) / SQL Server 2000 background. I am reading a lot about Visual Studio 2008 (have installed it and am poking around). I have read about "reflection" and would like someone to explain, as best as you can to an older developer of the tech... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can I save a record in a Windows Gadget in a file or other storage (database, etc.)? I'm planning to create a simple gadget to create a TO DO list application. This is just for practice and to explore Windows Gadget. How can I store the values in the database? As much as possible, I don't want to set up a local http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When to use Fixed Point these days For intense number-crunching i'm considering using fixed point instead of floating point. Of course it'll matter how many bytes the fixed point type is in size, on what CPU it'll be running on, if i can use (for Intel) the MMX or SSE or whatever new things come up...
I'm wondering... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Which is fastest in PHP- MySQL or MySQLi? I'd like to know if anyone has any first-hand experience with this dichotomy. A few blogs say the mysql extension is faster than mysqli. Is this true?
And I'm only asking about speed. I know mysqli has features that are not present in the older extension.
A: The MySQL ext... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Implementing Mozilla's toSource() method in Internet Explorer Has anyone implemented Mozilla's Object.toSource() method for Internet Explorer and other non-Gecko browsers? I'm looking for a lightweight way to serialize simple objects into strings.
A: Consider the following: (when using FireFox 3.6)
javascript:
x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Can I do a find/replace in t-sql? I basically have an xml column, and I need to find and replace one tag value in each record.
A: For anything real, I'd go with xpaths, but sometimes you just need a quick and dirty solution:
You can use CAST to turn that xml column into a regular varchar, and then do your normal re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Portability of #warning preprocessor directive I know that the #warning directive is not standard C/C++, but several compilers support it, including gcc/g++. But for those that don't support it, will they silently ignore it or will it result in a compile failure? In other words, can I safely use it in my project w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Automatically opening a file using Windows shell script I have a Windows shell script that opens an application. I'd like to modify it to make it open a file automatically upon opening the application.
I know it uses VBscript but I'm not familiar with the language; all the tutorials I found just talked about using V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing Command Line Arguments to internet explorer via VB I've got an app that my client wants to open a kiosk window to ie on startup that goes to their corporate internet. Vb isn't my thing but they wanted it integrated into their current program and I figured it would be easy so I've got
Shell ("explorer.exe ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: User32 API calls in .NET I'm currently planning out a project involving creating a shell replacement for Windows (based on Blackbox, bblean specifically). However I wish to leverage the power of .NET to do so. Many of the API calls I'll need are housed within the User32 library. I can of course use P/Invoke and c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What do you use to create flowcharts? I'm curious what tools people have found useful for building flowcharts. Obviously MS Visio and OmniGraffle come to mind but they both feel so bloated and also tend to emphasize the document formatting/printing side and less on helping to organize the actual logic. Is there anyt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: RegEx: Grabbing values between quotation marks I have a value like this:
"Foo Bar" "Another Value" something else
What regex will return the values enclosed in the quotation marks (e.g. Foo Bar and Another Value)?
A: The pattern (["'])(?:(?=(\\?))\2.)*?\1 above does the job but I am concerned of its performances (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "341"
} |
Q: Explicit Type Conversion in Scala Lets say I have the following code:
abstract class Animal
case class Dog(name:String) extends Animal
var foo:Animal = Dog("rover")
var bar:Dog = foo //ERROR!
How do I fix the last line of this code? Basically, I just want to do what, in a C-like language would be done:
var bar:Dog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Getting 256 colors out of ruby-ncurses I've got 256 colors working great in my terminal (test scripts here), but it stops working when I use ncurses (via Ruby-ncurses). Printing the escape sequences given on that page works fine, but when I initialize ncurses 'puts' stops working and I can't output the colors with a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Make and build utilities on CentOS/RHEL? I've been unsuccessfully searching for a way to install make utility on my CentOS 5.2. I've looked through some RPM repositories and online, with no avail. Installing gcc, gcc-c++ didn't help! Package build-essential is not made for CentOS/RHEL. I have RPMFORGE repo enabled i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: How would I implement a bit map? I wish to implement a 2d bit map class in Python. The class would have the following requirements:
*
*Allow the creating of arbitrarily sized 2d bitmaps. i.e. to create an 8 x 8 bitmap (8 bytes), something like:
bitmap = Bitmap(8,8)
*provide an API to access the bits in this 2d ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Accessing HttpApplicationState during Session_End In my ASP.NET application using InProc sessions, Session_End calls a static method in another object to do session-specific clean up. This clean up uses a shared database connection that I am storing in application state.
The problem is that I cannot see how to acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Authenticating in PHP using LDAP through Active Directory I'm looking for a way to authenticate users through LDAP with PHP (with Active Directory being the provider). Ideally, it should be able to run on IIS 7 (adLDAP does it on Apache). Anyone had done anything similar, with success?
*
*Edit: I'd prefer a libra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: acts_as_tree does not destroy the model's children I have this Task model:
class Task < ActiveRecord::Base
acts_as_tree :order => 'sort_order'
end
And I have this test
class TaskTest < Test::Unit::TestCase
def setup
@root = create_root
end
def test_destroying_a_task_should_destroy_all_of_its_descendant... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Updating a XML file using PHP What is the easiest way to update a single attribute in a XML tag using PHP without rewriting and saving the file? Any way to do this just using regular DOM stuff?
A: If you have PHP5 on your server you could try:
$string = "<?xml version='1.0'?>
<doc>
<title>XML Document</title>
<da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I obtain a list of the application domains my application has created? I have a service app that creates AppDomain's during the course of its use for long running tasks. I've been tracking these by storing them in a Hashtable with a unique ID.
After a task is completed the service app then unloads the AppDoma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Proper IE6 HTML element dimensions I'm trying to set the width and height of an element with javascript to cover the entire browser viewport, and I'm successful using document.body.clientHeight but in IE6 it seems that I always get horizontal and vertical scrollbars because the element must be slightly too big.
No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to document AJAX + PHP code? I have always been for documenting code, but when it comes to AJAX + PHP, it's not always easy: the code is really spread out! Logic, data, presentation - you name it - are split and mixed between server-side and client-side code. Sometimes there's also database-side code (store... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Find out which remote branch a local branch is tracking
See also:
How can I see which Git branches are tracking which remote / upstream branch?
How can I find out which remote branch a local branch is tracking?
Do I need to parse git config output, or is there a command that would do this for me?
A: Update: Well... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1163"
} |
Q: Javascript memory profiler for Firefox Is there a tool/plugin/function for Firefox that'll dump out a memory usage of Javascript objects that you create in a page/script? I know about Firebug's profiler but I'd like something more than just times. Something akin to what Yourkit has for Java profiling of memory usage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Using TTreeview as a menu Im using delphi's ttreeview as an 'options' menu. how would i go upon selecting the next node at runtime like a previous and next button? i tried the getprev and getnext methods but no luck.
A: Here you have the 'Next' behavior. For 'Previous' I leave as exercise for you: :-)
procedure TFo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Ubuntu JeOS good for production purpose? Actually I will want to use that JeOS for our webserver. Is it a good choice?
A: Thanks for piquing my interest. From the Ubuntu website:
Ubuntu Server Edition JeOS (pronounced
"Juice") is an efficient variant of
our server operating system,
configured specifically... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best practices for migrating web application from Netscape to IIS? We are in the process of developing a .NET based IIS hosted web application as part of a re-platforming project. The original web app is on a Netscape server, in the process of migration we need to point the dns to the IIS server so that the requests... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a command to refresh environment variables from the command prompt in Windows? If I modify or add an environment variable I have to restart the command prompt. Is there a command I could execute that would do this without restarting CMD?
A: It is possible to do this by overwriting the Environment Table wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "643"
} |
Q: Is it possible to deploy an already built Drupal site? I'm a Drupal newbie. Is it possible to set up everything and deploy Drupal on the server? I mean things like putting in the content, setting up the modules, etc..., then you put it all up to the production server?
A: Of course.
*
*copy all the files
*edit th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ Strategy Design Pattern, making an interface array After having implemented the strategy pattern, I wanted to make an array of the interface-type, to which I can then add any concrete type.
For those who don't know the strategy pattern:
http://en.wikipedia.org/wiki/Strategy_pattern
In this particular example I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Coming up to speed on the programming environment I'm not a full-time software guy. In fact, in the last ten years, 90 % of my work was either on the hardware or doing low-level (embedded) code.
But the other 10% involves writing shell scripts for development tools, making kernel changes to add special features, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What functional differences exist between WPF and WinForms WebBrowser control? WPF WebBrowser control looks great but knowledge accumlated over time about WinForms WebBrowser is substantial and it's hard to ignore work like csExWB. It would be nice to know what functional shortcomings or advantages exists in .NET 3.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: LINQ Benchmarks in multitiered environment I am involved in development of a tiered application that uses LINQ2SQL separated from the web server with a NET.TCP Binding on WCF.
My questions are:
*
*What sort of measures should I take
to achieve the best performance?
*Since the entity objects returned by
the L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Binding Gtk# NodeView to a IList? I've got a data object with a component in it that is an System.Collections.Generic.IList, and I'd like to reflect changes to that list into a Gtk# NodeView, so that when an item is added to the list, the NodeView will get a new item added to it.
How would I listen for changes to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Greasemonkey: love it or hate it? As users, we love the power of Greasemonkey. As developers, it can complicate things.
Some people advocate defensively disabling user scripts; others are willing to die to defend them.
Is there a middle ground? How can we reduce the threat of an evolutionary arms race between users ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change min/max/close buttons theme im currently overiding the WM_NCPAINT, WM_NCCALCSIZE and WM_NCACTIVATE to paint my own color/themed title bar for an application im working on. Now this is working great however the min, max and close buttons still are xp default theme.
I looked into what controls them and the mous... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Accessing crash logs on iPhones used for ad hoc distribution When using one's own iPhone for development it's easy enough to access any crash logs via XCode->Organizer->Crash Logs.
How does one access crash logs on another person's phone if they don't have it set up for development in XCode, as would likely be the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Making locking easier in MTAs In multi-threaded code, when an instance may be read or written by multiple threads, they need to be locked on to perform these operations safely.
To avoid the repetition of creating an object to lock on and writing a bunch of lock statements through code, I've created a generic class t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should there be a difference between an empty BSTR and a NULL BSTR? When maintaining a COM interface should an empty BSTR be treated the same way as NULL?
In other words should these two function calls produce the same result?
// Empty BSTR
CComBSTR empty(L""); // Or SysAllocString(L"")
someObj->Foo(empty);
// ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Formatting a list of text into columns I'm trying to output a list of string values into a 2 column format. The standard way of making a list of strings into "normal text" is by using the string.join method. However, it only takes 2 arguments so I can only make a single column using "\n". I thought trying to make a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to turn these 3 methods into one using C# generics? I have not used generics much and so cannot figure out if it is possible to turn the following three methods into one using generics to reduce duplication. Actually my code currently has six methods but if you can solve it for the three then the rest should jus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to create a Windows Media Player plugin in Visual Studio 2008 I've been trying to create a Windows Media Player plugin in Visual Studio 2008, and am having great difficulty finding the correct template. MSDN provides advice here, but it does not appear to be relevant to VS2008.
Can anyone suggest how to start a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Linking against a specific shared library version in linux My build process consists of Qt's qmake Makefile generator and the typical make utility bundled with linux.
My application consists of a few shared libraries and the main application is linked against them.
How can I apply the typical linux versioning scheme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Applying a common font scheme to multiple objects in wxPython Many times I will use the same font scheme for static text in a wxPython application. Currently I am making a SetFont() call for each static text object but that seems like a lot of unnecessary work. However, the wxPython demo and wxPython In Action book ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NHibernate session management in Windows Service applications I'm developing and application that runs as a Windows service. There are other components which include a few WCF services, a client GUI and so on - but it is the Windows service that access the database.
So, the application is a long-running server, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: LaTeX Beamer package, change frame title in \againframe Is it possible to change the frame title when using \againframe from the Beamer package, in LaTeX? I would like to have a previous frame displayed, at a specific slide inside the frame, but with a different title this time.
Thanks.
A: Try doing the following:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Using Java-classes with C# I have a project written in Java (>1.5).
Is it possible to write parts of the project with C#?
For instance the GUI and calling the methods and instantiate the classes written in java?
If yes, how?
A: Not without something like ikvm - or using web services etc to communicate between the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Delete all tables in Derby DB How do i delete all the tables in the schema on Apache Derby DB using JDBC?
A: Thanks are due to the blog:
Step 1:
Run the SQL statement, but don't forget to replace the schema name 'APP' with your your schema name in the 2 occurrences below:
SELECT
'ALTER TABLE '||S.SCHEMANAME||'.'||T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Interface "recursion" and reference counting I have a small problem with interfaces. Here it is in Pseudo code :
type
Interface1 = interface
end;
Interface2 = interface
end;
TParentClass = class(TInterfacedObject, Interface1)
private
fChild : Interface2;
public
procedure AddChild(aChild : Int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: monitoring memcached stats with openNMS did anyone tried monitoring memcached statistics with openNMS?
If you did, what did you use?
A: Since version 1.7.4, there'd a memcached monitor bundled with OpenNMS.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/171733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visitor Pattern + Open/Closed Principle Is it possible to implement the Visitor Pattern respecting the Open/Closed Principle, but still be able to add new visitable classes?
The Open/Closed Principle states that "software entities (classes, modules, functions, etc.) should be open for extension, but closed for modif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What is the best way to get all the divisors of a number? Here's the very dumb way:
def divisorGenerator(n):
for i in xrange(1,n/2+1):
if n%i == 0: yield i
yield n
The result I'd like to get is similar to this one, but I'd like a smarter algorithm (this one it's too much slow and dumb :-)
I can find... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "132"
} |
Q: How can I force a complete load along a navigation relationship in Entity Framework? Okay, so I'm doing my first foray into using the ADO.NET Entity Framework.
My test case right now includes a SQL Server 2008 database with 2 tables, Member and Profile, with a 1:1 relationship.
I then used the Entity Data Model wiz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/171771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.