text string | meta dict |
|---|---|
Q: How do I share a javascript object between different pages in Adobe AIR? I'd like to have a custom object attached to the application so I can preserve state in it between different html pages in adobe air. Is this possible?
I was asking for a fullblown solution to store a custom js object in memory and persist it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does handling WM_NCCALCSIZE cause my window to jump? I have a WPF app which snaps to screen edges (I just set the .Top or .Left of the window if you're within 20 pixels of the screen edge), but I recently added some code provided by the WPF SDK Team to "mess" with the window chrome, and although it's working gre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to force a MSTEST TestMethod to reset all singletons/statics before running? I'm using MSTEST inside Visual Studio 2008. How can I have each unit test method in a certain test class act as if it were the first test to run so that all global state is reset before running each test? I do not want to explicitly cle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to distribute Wordpress media files across multiple sub domains So the question is how to distribute/offload the media files from Wordpress posts across multiple domains.
The reasoning being to overcome this limitation:
"Most browser will only make 2 simultaneous requests to a server, so if you page requires 16... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "The operation is not valid for the state of the transaction" error and transaction scope I am getting the following error when I try to call a stored procedure that contains a SELECT Statement:
The operation is not valid for the state of the transaction
Here is the structure of my calls:
public void MyAddUpdateMe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Insert Into: Is one syntax more optimal or is it preference? SQL Server (2005/2008)
Each of the below statements have the same result. Does anyone know if one outperforms the other?
insert into SOMETABLE
values ('FieldOneValue','FieldTwoValue',3,4.55,'10/10/2008 16:42:00.000')
insert into SOMETABLE
select 'Fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Apache htaccess on Win2k is not being processed I am trying to rewrite URLs using mod_rewrite. It is enabled in httpd.conf and url rewriting works if the lines are in the httpd.conf file. However, I would like the rules to be in the .htaccess file.
It doesn't appear that .htaccess is being processed at all by Apac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best project structure for a Python application? Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project's folder hierarchy?
Desirable features are ease of maintenance, IDE-friendliness, suitability for source control ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "922"
} |
Q: Good Java Process Control Library Java process control is notoriously bad - primarily due to inadequate support by the Java VM/JDK classes (e.g. java.lang.Process).
I am wondering, are there any good open source libraries out there that are reliable.
The requirements would be:
*
*OSS
*Start/Stop processes
*Mana... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Subversion & switching between tags My automated deployment system updates a latest version of my site trough subversion. Instead of having my live site point to the trunk (which is always almost a work in progress version), I have my live site point to a tag.
E.g. I work on trunk and when my v1.0 is finished I crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Putting newbies on Reports. Beneficial/Harmful? In my work experience, most fresh out of school programmers are set right to creating reports for 6-12 months or so. While I see the benefit of doing something non-crucial, it seems to really discourage them.
So my question is, should organizations allow newbies to wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I turn off ABCpdf's paragraph indenting during a chain? The project I'm working on uses a 3rd party component called ABCpdf to generate PDF documents. It has this feature where you can "chain" text from one content area to the next, which we're using to flow text across columns. You can also define an inden... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatically get own phone number in iOS Is there any way to get own phone number by standard APIs from iPhone SDK?
A: Update: capability appears to have been removed by Apple on or around iOS 4
Just to expand on an earlier answer, something like this does it for me:
NSString *num = [[NSUserDefaults standardUs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "337"
} |
Q: Is it possible to set a default value when deserializing xml in C# (.NET 3.5)? I've got a little problem that's slightly frustrating. Is it possible to set a default value when deserializing xml in C# (.NET 3.5)? Basically I'm trying to deserialize some xml that is not under my control and one element looks like thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XPS with Windows Forms What is the best way to display and print XPS files in a Windows Forms application?
A: I think the easiest way is to use WPF, you can host a WPF control inside a WinForms application - you don't have to rewrite your GUI in WPF or anything like that.
more information here : http://msdn.microso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is this slash character in an Oracle PL/SQL script an error? I'm sorting out a series of SQL scripts for my company written in Oracle PL/SQL. I came across an essential script with a strangely placed slash near the bottom. It is checked into CVS this way. Is this a pure syntax error or does it have some function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Screen Grab with PHP and/or Javascript? Just wondering if it's possible to screen grab a page you are viewing with a PHP script or javascript? For example, load up a page in an iframe and then save that view as a JPEG?
I'm sure it's possible somehow, but are there any known implementations/libraries that help out?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Good examples or documentation of XIFF implementation? XIFF is an implemenation of the XMPP protocol in actionscript.
So far, all the examples and documentation I have seen are sparse. Does anyone know a good explanation of the most recent version of XIFF and/or good examples of working Flex/AIR applications?
A: Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In MS SQL Server, is there a way to "atomically" increment a column being used as a counter? Assuming a Read Committed Snapshot transaction isolation setting, is the following statement "atomic" in the sense that you won't ever "lose" a concurrent increment?
update mytable set counter = counter + 1
I would assume t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Simplifying VisualSVN Server's URLs We're currently running an svnserve instance as NT service. While this works, it's needlessly cumbersome to administer, and I'd like to move on to the much simpler VisualSVN Server. (Bonus side benefits include Windows-integrated authentication and, thanks to HTTP/WebDAV, browsing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: server-side css selectors I am creating a tool that will check dynamically generated XHTML and validate it against expected contents.
I need to confirm the structure is correct and that specific attributes exist/match. There may be other attributes which I'm not interested in, so a direct string comparison is not su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can CVS and Subversion be set to ignore whitespace in merging? CVS and Subversion both have a handy merge feature so that when you update a source file that you have modified, it merges in changes that others have made on the same file.
However, if your changes and the other ones are incompatible - generally if you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Getting file name of file directed by .htaccess? I'm making a dynamic image for a forum that doesn't allow dynamic images.
I tried using .htacess to redirect all *.png files to image.png... which works perfectly, but from here I can't seem to be able to get the filename of the .png that was requested to generate the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the utilization rates for each of the major languages and platforms? I'm interested in knowing how many developers use each of the major languages/platforms, but I haven't been able to find any good recent surveys. If you know of any good data, please provide a link along with a brief synopsis of the surve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Visual Studio 2005 vs 2008 - What are the benefits? What are the benefits of upgrading from Visual Studio 2005 to 2008?
Any thoughts on whether it's worth the jump, or is it better to wait for whatever's coming next?
A: My favorite new feature: when an Intellisence option box is showing, you can hold down control t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the cost of using autorelease in Cocoa? Most of Apples documentation seems to avoid using autoreleased objects especially when creating gui views, but I want to know what the cost of using autoreleased objects is?
UIScrollView *timeline = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 20, 320, 34)];
[self... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Coming to Ocaml from Ruby, Lisp, Haskell, and Erlang I've been reading about Ocaml's consistent speed, rapid prototyping ability, and excellent memory management, and decided to take it up.
As I've already got Ruby, *lisp, Haskell, and Erlang under my belt, I'm interested specifically in what KISS-violating features... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Getting image metadata in .NET without regards to metadata format Given a filename, I need to be able to access certain metadata in an image for a (closed source) project I'm currently developing, without regard to how the metadata is stored (that is, Exif, IPTC, or XMP). In particular, I want to access geotagging d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating a sortable tree/grid in Javascript I'd like to create a tree structure from JSON, but with multiple columns that can be sorted. I've seen lots of implementations of trees and grids but never one mixed.
Does anyone know of a plugin or feature for any Javascript toolkit that can make this happen so I don't ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Nondeterministic functions in sql partitioning functions How are non-deterministic functions used in SQL partitioning functions and are they useful?
A: MsSql allows non-deterministic functions in partitioning functions:
CREATE PARTITION FUNCTION MyArchive(datetime)
AS RANGE LEFT FOR VALUES (GETDATE() – 10)
GO
Does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Third-party windows command-line program? Looking for a better Windows XP command-line interface. The Visual Studio Command Prompt isn't near as nice as the Linux/OSX terminals.
Thoughts?
edit:
Answers: Console on Sourceforge, and the Windows Powershell. Thanks, I'll go dig them up and evaluate them.
The Cygwin pac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Simple 3D graphics project? I'm looking for some good ideas for a simple 3d graphics program as my final project for an intro to computer graphics class. As for some background information, we'll be using opengl and will have a little over a month to work on it, so nothing too far-fetched. The simpler and "prettie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How can I best take advantage of Trac? I have a Trac project installed on top of a Subversion implementation (easy to do thanks to Webfaction's control panel), but now I have configuration work to do. With that in mind, are there easy ways to do the following in Trac:
1) Ensure that customers can only see a high le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Debugging: break at runtime when file is modified ? (windows) Is it possible to break at runtime when a particular file has been modified?
ie. monitor the file and break into a debugger once a change has been made to it.
This is for a windows app...is this possible in visual studio or windbg?
edit: i should have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Naming your projects: does it matter? I work on a variety of projects using different languages and platforms. Parts of them I abstract out into their own separate projects, and I want to open some of these up to the public.
What gets me stuck is the christening.
So, does it matter? Should I just choose something an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Multiplication of very long integers Is there an algorithm for accurately multiplying two arbitrarily long integers together? The language I am working with is limited to 64-bit unsigned integer length (maximum integer size of 18446744073709551615). Realistically, I would like to be able to do this by breaking up ea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQLite and Caching Application Block Has anyone used the Caching Application Block with SQLite to persist data?
I'd like to get some details.
Thanks
A: objCatch.Add("DsFromDb", ds, CacheItemPriority.Normal, null, new Microsoft.Practices.EnterpriseLibrary.Caching.Expirations.AbsoluteTime(TimeSpan.FromMinutes(5)));
| {
"language": "en",
"url": "https://stackoverflow.com/questions/193406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Building a Decoupled N-Tier App With Entity Framework and VB.NET So we are building an application with a
*
*UI Layer (web, mobile, Ajax client, etc)
*Service/API Layer
*Business Logic Layer
*Data Access Layer
Our goal is to have an Entity Framework dependency from the Service Layer on down to the DAL. Tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: dotnetnuke and dotimage problem I created a module for dotnetnuke that uses Atalasoft's dotImage viewer. dotImage uses and iframe for "ajax" rendering. My module works great on the home page but in any other page the module loads the whole home page in the dotImage iframe.
Has anybody worked with both dotnetnuke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is a free tool to compare two SQL Server Databases? What is a free tool to compare two Sql Server tables (data and schema).
It would be great if the tool can script the differences found.
I also went through some older posts. The closest I have seen is SQLDBDiff but I would love to try more options.
A: DBCom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: What are the limitations on using SSRS with SQL Server 2005 Express edition? I found this extremely old document which appears to say that many of the web client features are not availiable when running on express edition--scheduling, subscription, etc--as well as no access to the report builder. Is that information... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What will the pNext pointer be in the following case using C? func()
{
Object* pNext;
func1(pNext);
}
func1(Object* pNext)
{
pNext = Segement->GetFirstPara(0);
}
I was expecting it to be pointer to firstpara returned from func1() but I'm seeing NULL can some explain and how to fix it to actually return... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Php's json_decode and firefox's javascript compatibility it appears if you have something like
var my_var = {"foo" : "bar"};
in javascript (with firefox at least) and post it to a php server you will receive a string like
{foo:"bar",}
on the server side. But json_decode in php doesn't like the trailing ',' or the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting drawable area of an AWT frame in Mac OS X? I have subclassed java.awt.Frame and have overridden the paint() method as I wish to draw the entire contents of the window manually.
However, on the graphics object, (0,0) corresponds to the upper left hand corner of the window inside the title bar decoration, not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I make Visual Studio pause after executing a console application in debug mode? I have a collection of Boost unit tests I want to run as a console application.
When I'm working on the project and I run the tests I would like to be able to debug the tests, and I would like to have the console stay open after t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Which is better BOOST_MPL_ASSERT or BOOST_STATIC_ASSERT? As I recall BOOST_MPL_ASSERT was once preferred. Is this still true? Anyone know why?
A: BOOST_MPL_ASSERT is (still) generally considered better. The messages from it are somewhat easier to see (and understand, if you use BOOST_MPL_ASSERT_MSG). There was so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to create an .INI file to store some settings in Java? I want to create an ini file to store some settings for my application. Is it a good idea to find where the jar file is located and create an ini file there? If yes, then how can I find the location of the jar file?
But if you know a better solution for som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How to specify JVM argument for Maven built executable JAR When using Maven to build an executable JAR, how do I specify the JVM arguments that are used when the JAR is executed?
I can specify the main class using <mainClass>. I suspect there's a similar attribute for JVM arguments. Specially I need to specify the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: PHP DOM: rather newbie question I've just started tinkering with XML manipulation with PHP, and i've stumbled into something unexpected. Here's the XML i'm using as a test input:
<list>
<activity1> running </activity1>
<activity2> swimming </activity2>
<activity3> soccer </activity3>
</list>
Now, i was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UTC Offset in PHP What's the easiest way to get the UTC offset in PHP, relative to the current (system) timezone?
A: date('Z');
returns the UTC offset in seconds.
A: Simply you can do this:
//Object oriented style
function getUTCOffset_OOP($timezone)
{
$current = timezone_open($timezone);
$utcTime = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: A Project Euler Puzzler (specifically in PHP) There is another recent Project Euler question but I think this is a bit more specific (I'm only really interested in PHP based solutions) so I'm asking anyway.
Question #5 tasks you with: "What is the smallest number that is evenly divisible by all of the numbers from 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I simulate macros in JavaScript? I know that JavaScript doesn't support macros (Lisp-style ones) but I was wondering if anyone had a solution to maybe simulate macros? I Googled it, and one of the solutions suggested using eval(), but as he said, would be quite costly.
They don't really have to be very fancy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Has anyone used/created "fisheye" table columns? Has anyone ever given table columns the "fisheye" effect? Im talking about an expanding effect of the table columns when hovering the mouse over them. I'd love to see some code if anyone has tried this.
EDIT: ...or an accordian effect
A: It's not for a table, but her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to do loops in JavaScript I have stumbled into several methods of looping in JavaScript, what I like the most is:
for(var i = 0; i < a.length; i++){
var element = a[i];
}
But as tested here (http://www.robertnyman.com/2008/04/11/javascript-loop-performance/), it should probably be written s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Writing a compiler in its own language Intuitively, it would seems that a compiler for language Foo cannot itself be written in Foo. More specifically, the first compiler for language Foo cannot be written in Foo, but any subsequent compiler could be written for Foo.
But is this actually true? I have some very vague... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "229"
} |
Q: How do you clear a tree in ExtJs? I have managed to create an Ext.tree.TreePanel that loads child nodes dynamically, but I'm having a difficult time clearing the tree and loading it with new data. Can someone help me with the code to do this?
A: From the wonderful blog of Saki an ExtJS guru.
while (node.firstChild... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: PHP money string conversion to integer error I have a small financial application with PHP as the front end and MySQL as the back end. I have ancient prejudices, and I store money values in MySQL as an integer of cents. My HTML forms allow input of dollar values, like "156.64" and I use PHP to convert that to cents ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Simple Java web services Does anyone know of a really simple way of publishing Java methods as web services? I don't really want the overhead of using Tomcat or Jetty or any of the other container frameworks.
Scenario: I've got a set of Java methods in a service type application that I want to access from other mach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Simple wireframe format? I'm looking for a simple file format to use for wireframe models. I am aware of VRML, u3D, etc, but these seem heavyweight for my needs. My criterea are:
*
*Must have a clear spec. Either open or very well established/documented.
*I only need (want) simple models - vertices and edges. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does Lucene.Net manage multiple threads accessing the same index, one indexing while the other is searching? When using Lucene.Net with ASP.NET, I can imagine that one web request can trigger an update to the index while another web request is performing a search. Does Lucene.Net have built in it the ability to ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How can I prevent floats and doubles from getting truncated in Java and C? When I give Java and C large floats and doubles (in the billion range), they convert them to scientific notation, losing precision in the process. How can I stop this behavior?
A: The conversion to scientific notation is purely an effect of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best approach for using AJAX loaders? I've implemented a few poor solutions for bringing up an AJAX loader before dynamically updating a content DIV, but none seem to be "universal", and I find each time I do it I'm reworking it. If I have a DIV with content that updates depending on what a user clicks on the page, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HTML footer problem Is it possible to create a footer div that sits at the bottom of a site regardless of how much information is present in the middle?
Currently the div I have is positioned depending on how much content i have in the body.
See also:
How do you get the footer to stay at the bottom of a Web page?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Testing Delphi DLL crashes VB6 IDE I've had my first go at writing a DLL in Delphi. So far so good. By using a typelib I've been able to pass Widestrings to and from the DLL without difficulty.
What's curious at the moment is that I'm using VB6 as the testbed, and every time I run a test within the IDE, the program ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it necessary for Qt::paintEvent to be reentrant? Can I put the painter into the class variables? :
protected:
QPainter *myPainter;
...
void MyWidget::paintEvent(QPaintEvent *event)
{
myPainter = new QPainter(this);
A: A new anser to address more reentrancy more specifically...
danatel left the following c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any alternative to ASP.NET 'Page Templates'? Classic ASP had 'server side includes' so that one could easily design a generic layout for the header, footer, left or right side bar.
In ASP.NET, I think we must use 'Page Templates'. Although most people say that it is easy to use, I find it rather complicated, as we m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What ideas do you think can it be applied to this GUI to make it more effective for real people usage? I am talking about Google Text Translation User Interface, in Google Language Tools.
I like the fact that you can get translations of text for a lot of languages. However, I think is not so good always to show all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: phpBB equivalent for Ruby on Rails I'm looking for Forum software similar to phpBB, but intended to run within a RoR application. I'm looking for a list of sites, along with one recommendation for which one is currently the ideal choice (ease of setup, simplicity, aesthetics).
A: RForum? Used by ruby-forum.com.
e:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: XAMPP problems with PHP5 I enabled PHP5 on my website and my webhost needs me to add the following to .htaccess files for PHP5 to work:
AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
Locally, I am running XAMPP to deve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are best practices for developing consistent libraries? I am working on developing a pair of libraries to work with a REST API. Because I need to be able to use the API in very different settings I'm currently planning to have a version in PHP (for web applications) and a second version in Python (for desktop ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How is tr1::reference_wrapper useful? recently I've been reading through Scott Meyers's excellent Effective C++ book. In one of the last tips he covered some of the features from TR1 - I knew many of them via Boost.
However, there was one that I definitely did NOT recognize: tr1::reference_wrapper.
How and when wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How to store a recurring time window What is a preferred way to store recurring time windows?
For example. If I have a calendar system where I need to be able to accommodate daily, weekly or monthly recurring events, what sort of time management system is best?
How is this best represented in a database?
More Det... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is a good use case for tr1::result_of? I hear that tr1::result_of gets used frequently inside of Boost... I'm wondering if there are any good (simple) use cases for tr1::result_of I can use at home.
A: A description of result_of is given at open_std.org. Microsoft has a quick example of a unit test wrapper th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: atoi() conversion error atoi() is giving me this error:
error C2664: 'atoi' : cannot convert parameter 1 from 'char' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
from this line:
int pid = atoi( token.at(0) );
where token is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you organize unit tests into packages? As a matter of fact you have smth like /java/src and /java/test. But then, how do you name packages/classes the unittests go to? The same as classes they are written against? And when refactoring comes, do you manually rename in /test? Please share your experience.
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: IIS 6 Tuning Guide? I have been a developer for 10+ years and so far my IIS knowledge is just enough for deploying stuff on it and get it running. Recently I have been playing with IIS 6 and realize the huge difference on the worker process model. I think I would need some good guide to update my knowledge in this a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Free XML Formatting tool Is there a free XML formatting (indent) tool available where I can past an XML string and have it formatted so I can read the XML document correctly?
Thanks
Edit ~ I am using XML Notepad on Windows XP.
A: Firstobject's free XML editor for Windows is called foxe is a great tool.
Open or pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "226"
} |
Q: How to convert UTC time to Time in any other time zone in C# I am working in C#.net - .Net fx is 2.0 which doesnot support converting between different time zones. I have wrote a scheduler based on UTC but it is giving errors of 1 hour in the DTS periods for London. I need some solution so that I can gat the correct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Suggestions for requirements development tools that support CMMI objectives We are currently evolving our development processes in an effort to become CMMI compliant (we will start with level 2, and move up from there). We are trying to locate a tool that is inexpensive (or free) that will allow us to develop requi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Page breaks in Dynamic Ax Reports How do you insert page breaks in Dynamic AX reports?
A: Call element.newPage(). If your report has no code on it and you want a page break before a particular section, add an executeSection method and call element.newpage() before the call to super().
public void executeSection()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How best to use jQuery: with HTML or CSS for formatting As part of learning jQuery, I decided to do a simple tic-tac-toe game in JavaScript and, at the moment, I'm using a HTML table for spacing and using graphic images within the table.
The images are either a small circle or a big X or O. When the user clicks on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are the most important parts of the .NET framework for a beginner? You often see, on sites like The Daily WTF, examples of overengineered code that should have just been a call to a built-in method within the .NET framework.
What namespaces/classes should be considered essential knowledge for a developer starti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I find all the tables in MySQL with specific column names in them? I have 2-3 different column names that I want to look up in the entire database and list out all tables which have those columns. Is there any easy script?
A: select distinct table_name
from information_schema.columns
where column_name in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1006"
} |
Q: Is LINQ an Object-Relational Mapper? Is LINQ a kind of Object-Relational Mapper?
A: LINQ is not an ORM at all. LINQ is a way of querying "stuff", and can be more or less seen as a SQL-like language extension for different things (IEnumerables).
There are various types of "stuff" that can be queried, among them SQL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Microphone access in Python Can I access a users microphone in Python?
Sorry I forgot not everyone is a mind reader:
Windows at minimum XP but Vista support would be VERY good.
A: Best way to go about it would be to use the ctypes library and use WinMM from that. mixerOpen will open a microphone device and you can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I change a file's extension using PHP? How can I change a file's extension using PHP?
Ex: photo.jpg to photo.exe
A: You may use the rename(string $from, string $to, ?resource $context = null) function.
A: Once you have the filename in a string, first use regex to replace the extension with an extension of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: C# and .NET FOLDERID How do I use Windows Vista's FOLDERID API in order to retrieve filepaths for "known folders" such as System or Windows? I've seen some APIs but I don't know how to import them properly. And yes, I know this is a very newbie question, but I spent a half hour googling and couldn't find the answer;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: BGGA closures as a bolt-on solution to java? Yesterday @headius / Charles Nutter came up with a very interesting idea on twitter:
@danny_l Gafter made the same mistake; I don't mean a forked Java any more than Groovy is a fork. I want a "mostly Java" with closures.
or the reply by @danny_l / Danny Lagrouw:
@head... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I upload files without using an HTML ? in a web application I am building I need to upload photos without using a form, otherwise it will come up with form embedded in an outer from which is not permitted in XHTML.
I think uploading files is what jQuery.post should be able to do, but I currently can't figure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Defining operators in Boo I'm looking to move some of my lighter weight metaprogramming from Nemerle to Boo and I'm trying to figure out how to define custom operators. For example, I can do the following in Nemerle:
macro @<-(func, v) {
<[ $func($v) ]>
}
Then these two are equivalent:
foo <- 5;
foo(5);
I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails check if yield :area is defined in content_for I want to do a conditional rendering at the layout level based on the actual template has defined content_for(:an__area), any idea how to get this done?
A: <%if content_for?(:content)%>
<%= yield(:content) %>
<%end%>
A: @content_for_whatever is deprecated.
Us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: How will you categorise the various software testing methods? Would this be right??
*
*Black Box
1.1 Functional
1.1.1 Equivalence
1.1.2 BVA
1.1.3 Use case
1.1.4 Regression
1.1.5 UAT
1.2 Non Functional
1.2.1 Testing the System Design
*White box
2.1. Functional
2.1.1 Unit
2.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Progress string parsing in C I have the following character string:
"..1....10..20....30...40....50...80..."
and I need to extract all numbers from it into array.
What is the best way to do it in C?
A: You can use a sscanf code with suppressed assignment (%*[.]) to skip over the dots (or any other character yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Balloon not showing up with NotifyIcon.ShowBalloonTip I'm having trouble with something that I thought would be easy...
I can't get my NotifyIcon to show a balloon tip. The basic code is:
public void ShowSystrayBubble(string msg, int ms)
{
sysTrayIcon.Visible = true;
sysTrayIcon.ShowBalloonTip(20, "Title", "Tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Boo vs. IronPython After having looked at each of these two projects, it seems that both are VERY similar. Both run on top of the CLI, both have python style syntax, both use .NET instead of the standard python libraries.
So, what are the differences between them and advantages of each?
A: Like Winston said, Boo is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Pros & Cons of putting all code in Header files in C++? You can structure a C++ program so that (almost) all the code resides in Header files. It essentially looks like a C# or Java program. However, you do need at least one .cpp file to pull in all the header files when compiling. Now I know some people would absol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: What sorts of things should I do to make a performant and robust reflection cache? In .NET 3.5, I'm going to be working with System.Reflection to use AOP (probably in the context of Castle's Windsor Interceptors) to do things like define which security actions need to be performed at the method level, etc. I have h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Assembly not saving correctly I have some very simple code to generate an assembly and invoke a method on a contained type. The method gets called and runs correctly, however when I view the generated assembly using Reflector, I don't see the type.
Below is the sample code:
namespace ConsoleApplication2
{
class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's a good C decompiler? I am searching for a decompiler for a C program. The binary is a 32-bit x86 Linux executable. Objdump works fine, so basically I am searching for something which attempts to reconstruct the C source from the asm source.
A: For binary decompiling, I have bought a personal license of Hoppe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: How do I programmatically calculate Poker Odds? I'm trying to write a simple game/utility to calculate poker odds. I know there's plenty of resources that talk about the formulas to do so, but I guess I'm having trouble translating that to code. Particularly, I'm interested in Texas Hold-em ...
I understand that t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/193916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |