text stringlengths 8 267k | meta dict |
|---|---|
Q: Redirect console output to textbox in separate program I'm developing an Windows Forms application that requires me to call a separate program to perform a task. The program is a console application and I need to redirect standard output from the console to a TextBox in my program.
I have no problem executing the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: Most efficient way to find elements in jQuery If I have a CSS class which I only ever apply to form elements, eg:
<form class="myForm">
Which of these two jQuery selectors is most efficient, and why?
a) $('form.myForm')
b) $('.myForm')
A: The first selector should be faster because jQuery can use the built-in fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Unit tests to test the Web methods of a Web service which does some database transactions using NUnit How do I write unit tests to test the Web methods of a Web service using NUnit?
The web methods in this application will add,update and delete a record in the database.
The unit test will test a web method whether a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF Web Service Bloat I am developing a WCF web service which has become quite bloated. What techniques do you use to split up the implementation of the contract?
A: Well you have a couple choices:
First, you could leave it all in one class, but split up into different files using the partial class feature of C#.
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Read only spinner I am learning Jsf.Is there any method for making the spinners read only?I should change the value only using spinners and not directly typing the number.Can i implement that by setting attribute in the spinners.tld file?
A: Disabling the textfield part of a spinner control is a usability disaster.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Expression.Dynamic and Operators.Assign? I'm trying to use Expression.Dynamic() to build an assignment operation... I want to use this to selectively offer value type semantics to certain custom type instances in my language. I can't do this with a "static" (?) Expression because I don't know what the actual type is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Read and Write in Word file using Visual studio 2005 How to read and write a MS word file in VB.net or C# .net
A: You will have to use Office automation for this.
Read this article as a starting point. Follow the links on that page for more information.
You may also want to purchase (any of) these books:
http://www... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I Easily Use Lisp Without Emacs? I'm currently reading Practical Common Lisp. The book is great and the language interesting, but I'm not enamored of learning Emacs. I've learned Vim and that's enough text-mode editors for one brain. I don't want to learn another. Double-control commands hurt my head. What'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to replace ${} placeholders in a text file? I want to pipe the output of a "template" file into MySQL, the file having variables like ${dbName} interspersed. What is the command line utility to replace these instances and dump the output to standard output?
The input file is considered to be safe, but faulty sub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "219"
} |
Q: Run IE6 and IE7 side-by-side on Vista I have a need to run IE6 on my Vista machine that natively runs IE7.
Can someone please help me with set-up / configuration steps?
Thanks,
Dan
A: Take a look at IETester -- it allows you to test pages in IE 5.5 - 8b2.
A: Try ie6eolas_nt.zip from http://browsers.evolt.org/?ie/3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why are local variables not initialized in Java? Was there any reason why the designers of Java felt that local variables should not be given a default value? Seriously, if instance variables can be given a default value, then why can't we do the same for local variables?
And it also leads to problems as explained i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "112"
} |
Q: Two forms having the same action I have two forms in my rails app. They both exist in separate tabs and I when I submit one form I want the data in the other form to be saved as well. How should I do that? Or Is there a better way of doing this instead of using two separate forms? Is there a better way to spread a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Smarty Vs. Javascript/AJAX I have a doubt: -
Is there any standard/convention that when should I use "Smarty templating" and when should I use Javascript Ajax calls to produce the content? I can use Ajax/Javascript calls to produce the content dynamically.
My application uses both Ajax and Smarty, but I want to set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Replace UpdatePanel with JQuery I'm using UpdatePanel to asynchronously call a button click event in a page that calls a method in another class which writes out an XML file on the output. Is there a way to do this with JQuery instead of UpdatePanel?
A: Use jQuery to handle the click event. Then call a page method ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: FxCop rule that checks for NotImplementedExceptions I'd like to have the nightly build check for how many NotImplementedExeptions there are in my .NET code so hopefully we can remove them all before releasing. My first thought is that FxCop might be a good tool to do this. Does anyone have a custom FxCop rule for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamic loading of modules in Java In Java, I can dynamically add stuff to classpath and load classes ("dynamically" meaning without restarting my application). Is there a known framework/library which deals with dynamic loading/unloading of modules without restart?
The usual setup, especially for web-apps, is load ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Which Amazon service do I need for simple querying of book titles, ISBN, and publishers? There are so many services now, and a lot of search results about the topic talk about services that have been deprecated. I'm only doing this for the first time now. I have a little library app in C# that I want to use to query... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Image problem in IE 7 I am developing a site using asp.net and C# ( framework 1.1 ).
Theres a provision for the user to upload his photo and the upload performs in 2 steps
1. User selects a photo and the photo is displayed for review
2. Database call is made and it is uploaded to the server
In IE6 the photo is shown... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Instance caching in Objective C I want to cache the instances of a certain class. The class keeps a dictionary of all its instances and when somebody requests a new instance, the class tries to satisfy the request from the cache first. There is a small problem with memory management though: The dictionary cache reta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fix problematic server response in WCF I am using WCF as a client for a java web service. I have not control over the server side.
In the response I get from the web service there is no xmlns attribute on the first element inside the soap headers. Because of this WCF returns null as the result of web service call.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are explicitly typed regexes allowed as keys in Perl YAML dump? This relates to a previous question: How can I read Perl data structures from Python?. It could be a bug in the version of the YAML parser that I'm working with (0.66), but when I run:
perl -MYAML -le 'do shift; print YAML::Dump( $CPAN::Config )' simple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hierarchy of maven projects without scattering the version number If you use Maven2 as a build system for a project containing many artefacts with the same version number, you have the version of the resulting build scattered in all pom.xml. In many of them even twice - in the version tag of the artefact itself and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: opengl slow on texture blit I called this function once per frame and it took my FPS from >400 to 33. Why?
sw blt(const PtRect *dstRect, Texture *src, const PtRect *srcRect, RenderDevice::bltFlags flags=RenderDevice::bltDefault)
{
assert(src);
GL_Texture *glsrc = dynamic_cast<GL_Texture*>(src);
if (glsrc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: To monkey-patch or not to? This is more general question then language-specific, altho I bumped into this problem while playing with python ncurses module. I needed to display locale characters and have them recognized as characters, so I just quickly monkey-patched few functions / methods from curses module.
This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do you mix Phusion Passenger in a mod_perl virtual host? I have a VirtualHost which sets the handler for Location / to a PerlModule to deploy a catalyst application.
I want to convert the catalyst application to rails, but gradually. The front end is all javascript using the ExtJS Framework, and the backend on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL query statement to retrieve records having CLOB data from the oracle database I tried this code and the value of comments from final table having a clob datatype is null or sometimes displays few words. What should I add so that I retrieve the whole data from comments and displays to the textarea? Thanks:-)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DataContext naming Best Practices Are there any? Do you give the DataContext the name of the Database you are getting data from or..
A: Don't know if there are any established "best practices". I just name it with something that makes sense to me and lets me know immediately what it is. For me, that's to name it af... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio + Crystal Reports + SourceSafe = auto checkout I have a simple VS2008 project with several crystal reports, created with Crystal Reports 2008 (outside Visual Studio). The solution is added to source control (Visual SourceSafe 6.0). Now every time I open the solution all the reports are checked out toge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to call the c static library in a cocoa app? I have two projects, a Cocoa application and a static c library which it uses.
Then didn't in the same folder.For example:the name of c static library is libXXX.a,it in the XXXcore folder.the cocoa application in another folder that is the same level with the XXXcore ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php This error message is being presented, any suggestions?
Allowed memory size of 33554432 bytes exhausted (tried to allocate
43148176 bytes) in php
A: I was also having the same problem, looked for phpinfo.ini, php.ini or .h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "342"
} |
Q: Ruby Atom generator to use with merb I want to provide feed in my merb application. After reading wikipedia, RSSvsAtom and seeing that StackOverflow uses it, I think I will use Atom. What library should I use? I have found rAtom that looks quite good. Are there better alternatives? Or does merb has anything built in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create an endless picture-show without marquee? I wrote a module for Joomla! 1.5 which shows the pictures (banners) with the most clicks. Now I want to show this list scrolling on the home-site. With "marquee" there is a break after the last picture.
I've found an advice which said I'll have to create a div-c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: About Manifest file Recently, I encountered a very strange issue, this issue only happens in Windows XP SP3 and Vista. Here are my steps:
*
*Create two new folders in desktop (assume folder names are A and B)
*Copy Microsoft GraphEdit (graphedt.exe) application to A folder, then create a empty graphedt.exe.manif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: During transmissions over localhost which layers are used in OSI Model? While transmiting data via localhost address or 127.0.0.1 which layers are used in the OSI model?
I believe communication starts through application layer and goes down till some layer but no data goes through physical layer, or does any?
A: T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are application servers (with EJBs) the only way for Java EE client/server communication? Imagine a Java client/server ERP application serving up to 100 concurrent users, both web and swing clients. For persistence we can use Persistence API and Hibernate.
But when it comes to client/server communication, do we rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best (Free) Certificate management tools I recently downloaded a neat java tool for managing certificate files - like PEM, PFX, etc.. From memory it was written in Java but, for the life of me i can't find it (cleared download list and non-obvious file name!).
This led me to throw open the question - what free tool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: CFileImageLoader(LPCTSTR lpszFileName); I have a class which expects a LPCTSTR.
When i call :
new CFileImageLoader(_T("Splash02.png"))
OR
new CFileImageLoader("Splash02.png")
both don't work.
Why ?
I'm new to cpp...
Thanks
Jonathan d.
A: This issue is a combination of C++ issues and Windows specific issues.
C++ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can get the value of text field by a alert view using Cocos2d? I am trying to develop a application by using Cocos2d. I can't getting value from textfield . How can get the value of text field (in a alert view) by using Cocos2d ?
-(void)timed1: (id)sender
{
UIAlertView* dialog = [[[UIAlertView alloc] init] ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to detect new or modified files I found there are two ways to approach it, ReadDirectoryChangesW and FindFirstChangeNotification.
I want to know what’s the difference between them, performance or otherwise?
A: This is tagged for Winapi, but I give it a shot with .net anyway.
You can use the FileSystemWatcher c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Stubbing functions in simulations I'm working on an embedded C project that depends on some external HW. I wish to stub out the code accessing these parts, so I can simulate the system without using any HW. Until now I have used some macros but this forces me to change a little on my production code, which I would l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: a question about sql group by I have a table named visiting that looks like this:
id | visitor_id | visit_time
-------------------------------------
1 | 1 | 2009-01-06 08:45:02
2 | 1 | 2009-01-06 08:58:11
3 | 1 | 2009-01-06 09:08:23
4 | 1 | 2009-01-06 21:55:23
5 | ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to preview a file on the server in JBoss I need some ideas on how I can best solve this problem.
I have a JBoss Seam application running on JBoss 4.3.3
What a small portion of this application does is generate an html and a pdf document based on an Open Office template.
The files that are generated I put inside ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lambda expressions, how to search inside an object? I'm starting to love Lambda expressions but I'm struggling to pass this wall:
public class CompanyWithEmployees {
public CompanyWithEmployees() { }
public Company CompanyInfo { get; set; }
public List<Person> Employees { get; set; }
}
My search:
List<C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Get variable from PHP to JavaScript I want to use a PHP variable in JavaScript. How is it possible?
A: <?php
$j=1;
?>
<script>
var i = "<?php echo $j; ?>";
//Do something
</script>
<?php
echo $j;
?>
This is the easiest way of passing a php variable to javascript without Ajax.
You can also use something like this:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Windows Mobile WAP Wakeup could anyone please give me directions, or better - a working sample, of using the "WAP Wakeup" feature in Windows Mobile?
I'm trying to follow directions from http://msdn.microsoft.com/en-us/library/aa919167.aspx . Unfortunately, they only give the beginning of the solution.
Step 1: regist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I figure out what code page I am looking at? I have a device with some documentation on how to send it text. It uses 0x00-0x7F to send 'special' characters like accented characters, euro signs, ...
I am guessing they copied an existing code page and made some changes, but I have no idea how to figure out wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: embeddable flash based mp3 player I need to serve audio content (not music though, more like podcasts; human speech), and I'm thinking of using a flash-based player to let users hear the content without having to download it.
I need a free embeddable flash based mp3 player. Any suggestions?
Because it's not music, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I get the ServletRequest object from within an XFire AbstractHandler's invoke() method? I'm using XFire as the Web Services provider for Spring Remoting. I'm using an AbstractHandler to authenticate the SOAP request. The idea is to identify the request by the originating server's domain and an API key (a-la ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to set a maximum execution time for a mysql query? I would like to set a maximum execution time for sql queries like set_time_limit() in php. How can I do ?
A: Please rewrite your query like
select /*+ MAX_EXECUTION_TIME(1000) */ * from table
this statement will kill your query after the specified time
A: Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Problem writing LHS of Drools / JBoss Rules where I'm matching one fact and then using that fact to determine whether another fact exists I'm using Drools (for the first time) to express some rules and it has been working really well so far. However I've been given a new condition that I'm not able to express in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Connection pooling session settings I have a small but significant query. I'll give a similiar use case but simplified, it does however cover my question.
Let's User A connects to the SQL Server 2000 database and we get a connection from the pool.
User A sets dateformat DMY. Finishes and the connections is release... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Emacs and slime stopped cooperating for me I'm trying to use slime from CVS (2009-01-05) but keep getting this error:
LOAD: A file with name
/usr/share/common-lisp/source/slime/swank-loader.lisp does not exist
I've stripped my .emacs down to just:
(setq inferior-lisp-program "/usr/bin/clisp")
(add-to-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL code import into Access 2007 I basically need to know how to import SQL code into Access. I've tried one way but that requires me to do one table and one value at a time which takes a lot of time.
Can anyone help?
A: If you are trying to import data, rather than SQL code (see Duffymo's response), there are two... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the purpose of long, double, byte, char in Java? So I'm learning java, and I have a question. It seems that the types int, boolean and string will be good for just about everything I'll ever need in terms of variables, except perhaps float could be used when decimal numbers are needed in a number.
My questio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: When and why is ns0pred used? Greetings,
As I am beginning with RDF building, I came along ns0pred here and there.
I am assuming ns means no subject and pred means predicate. Not sure on the zero other then a false boolean value.
<rdf:Description rdf:about="http://localhost:8890/dataspace/test3/wiki/testWiki/MyTest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to carry out Cross Domain request in a Webbrowser Control? As you know doing Cross Domain XMLHTTP requests is not allowed for security reasons under Internet Explorer.
I have a WebBrowser Control and I'm using DocumentText instead of Navigate to a URL. Since the current domain is about:blank when the page tries ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: DOMDocument: Ignore Duplicate Element IDs I'm putting some page content (which has been run through Tidy, but doesn't need to be if this is a source of problems) into DOMDocument using DOMDocument::loadHTML.
It's coming up with various errors:
ID x already defined in Entity, line X
Is there any way to make either... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Screen incoming SMS in Symbian I'm using sockets to read all incoming SMS:
`smsAddr.SetTextMatch(KNullDesC8);`
The ones that belong to me I accept:
iReadSocket.Ioctl(KIoctlReadMessageSucceeded, iStatus, NULL, KSolSmsProv);
The ones that are malicious (like current Silence SMS threat) I would stop
and the others I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Find max node value I have a xml given below:
<root title="الصفحة الرئيسة">
<item title="الصفحة الرئيسة" itemuri="tcm:8-29-4" ShowInNav="True" type="sg" pageuri="tcm:8-10592-64" sLink="/ara/index.aspx">
<item title="من نحن" itemuri="tcm:8-779-4" ShowInNav="True" type="sg" pageuri="tcm:8-9934-64" navorder="0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: VisualStudio *.obj files size (513Mb objs and 534Mb lib) I'm a C++ developer and using Visual Studio 2008.
How can I reduce *.obj files size?
I've read why are my visual studio .obj files are massive in size compared to the output .exe? but didn't find the answer.
When I build project to a static lib total size of a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I generate an MD5 hash in Java? Is there any method to generate MD5 hash of a string in Java?
A: Here is how I use it:
final MessageDigest messageDigest = MessageDigest.getInstance("MD5");
messageDigest.reset();
messageDigest.update(string.getBytes(Charset.forName("UTF8")));
final byte[] resultByte = messag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1084"
} |
Q: XSD - How to describe an unordered set of element types where the first element must appear first in the sequence? This is an XML schema question.
I know that xsd:all element can't appear in a sequence (must be the top level element of its type).
That is, I cannot use the following:
<xsd:complexType name="Applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to automatically free classes/objects? What techniques exist to automatically free objects in delphi applications?
A: Along the lines of interfaces, you can try the Guard function in the JclSysUtils unit, part of the free Jedi Code Library. It allows you to associate an object with a separate interface referenc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Verify if file exists or not in C# I am working on an application. That application should get the resume from the users, so that I need a code to verify whether a file exists or not.
I'm using ASP.NET / C#.
A: if (File.Exists(Server.MapPath("~/Images/associates/" + Html.DisplayFor(modelItem => item.AssociateIm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Mixing MFC and STL Would you mix MFC with STL? Why?
A: Use STL whenever you can, use MFC when no alternative
A: I mix them all the time. The only minor PITA was serialization - the MFC containers (CArray, CList, CStringArray, etc.) support CArchive serialization, but when using STL containers you have to roll you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Am failing to transform xml to SOAP I'm having a problem calling a webservice from Mule using Axis. I've created a fairly simple example where I have xml in a file being read by Mule, it's then transformed into a Document and sent to the webservice. The relevant code in the mule config looks like this:
<inbound>
<f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create a deep unmodifiable collection? I often make a collection field unmodifiable before returning it from a getter method:
private List<X> _xs;
....
List<X> getXs(){
return Collections.unmodifiableList(_xs);
}
But I can't think of a convenient way of doing that if the X above is itself a List:
private L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What are PHP nested functions for? In JavaScript nested functions are very useful: closures, private methods and what have you..
What are nested PHP functions for? Does anyone use them and what for?
Here's a small investigation I did
<?php
function outer( $msg ) {
function inner( $msg ) {
echo 'inner: '.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: How to show asynchronous operations on UML Activity diagram I am about to draw/document for some client-server connection establishing code to better understand it. There are several operations that are done asynchronously in separate threads (connecting threads, data receiving threads, etc).
Should I show them on s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: AutoComplete using JQuery in GridView AutoComplete using JQuery in GridView. I want to autocomplete functionality in gridview which is required for bulk update
A: You can use something like:
jQuery("*[@id$=theGridId] input[@id$=textBoxId]").autocomplete(list)
to attach the jquery autocomplete to all textboxes (inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Modularising a C# Compact Framework 2.0 Application We're currently developing a new piece of hand-held software. I cant discuss the nature of the application, so I'll use an example instead.
We're designing hand-held software for managing a school. We want to modularise each aspect of the system so that different s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Server-Side-Code in aspx file I want to ask in which phase of Control Execution Lifecycle is the "Server-Side-Code written in aspx file" being executed?
Is it before SaveState or after, I claim it's in the rendering phase, is it true??
in aspx file if my code writen as
"<%"
if(true)
{
rdlistAnswers.Items.Clear();
fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: dynamic site.master menu I need some help with the follow:
I have just read on this tutorial:
http://www.asp.net/LEARN/mvc/tutorial-13-cs.aspx
and followed the example given for the "good solution". However, I encountered a problem after i made some modifications to the abstract class ApplicationController.
The ori... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Garbage collection for ValueType wrappers Quoting from the MSDN Link for ValueType Class
In cases where it is necessary for a value type to behave like an object, a wrapper that makes the value type look like a reference object is allocated on the heap, and the value type's value is copied into it. The wrapper is m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to find specific tokens in a string (in Java)? I have a string with markup in it which I need to find using Java.
eg.
string = abc<B>def</B>ghi<B>j</B>kl
desired output..
segment [n] = start, end
segment [1] = 4, 6
segment [2] = 10, 10
A: Regular expressions should work wonderfully for this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/415996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I place lot of CPU and IO intensive code in ShutDown Hook I am having lot of CPU and IO intensive code in shutdown hook. Some times I see they are not getting executed properly.
So Is there any limitation like we should not have lot of code in shutdown hook.
Thanks
D. L. Kumar
A: I have placed some fairly subs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I define a polymorphic relation between models in Django? I am working on a Django application which contains an Offer model. An Offer instance contains the pricing conditions and points to a product definition. The product model is actually a hierarchy (I have a Television model, a Camcorder model, etc.).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: iPhone Development - Non documented UIProgressHUD class I've only heard about what UIProgressHUD class do, but i cannot find the implementation of this class or any documentation. Reference to this class can be found in "The iPhone Developer's Cookbook 1st Edition" book, and other articles on the internet:
http://w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to generate 2-characters long words effectively? I've been playing with idea to make a script to generate 2-characters words from a given set of characters in my language. However, as I am not into re-inventing the wheel, do you know about such a script publicly available for C#?
A: I'm not sure if I understood... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get data sent with WebClient.UploadData i'm trying to upload some data from an ActiveX control to a webpage. The best way for me to do it is in a byte array through WebClient.UploadData.
I'm having some trouble to find how I can retrieve my data on pageload... There are plenty of examples on how to send the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone NSNumberFormatter setFormat: It appears as though NSNumberFormatter's method for setting custom formatters. setFormat: isn't available on the iPhone...
SO this... crashes my app:
NSNumberFormatter *lengthFormatter = [[NSNumberFormatter alloc] init];
[lengthFormatter setFormatterBehavior:NSNumberFormatterBehav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Email aliasing with qmail I'm trying to set up email domain aliasing in qmail (I'm on a Plesk server). What should happen is that emails sent to user@myalias.com get sent to user@realdomain.com (regardless of what user is). I would like this to happen without having to set up redirects and mess around with that sort... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: polygon to raster GIS I have a shapefile of India with states (probably as polygons). I want to convert each polygon into equally divided cells ("raster" way), and populate (actually coloring) each cell by a value that would be calculated from an algorithm which is cell's location specific. This should be done for a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best tool to detect memory leaks in Delphi What is the best tool to detect memory leaks.
Both free and not Free.
Thanks
A: You may want to give a look at this CodeRage 2 session: Fighting Memory Leaks for Dummies.
It mainly shows how to use FastMM to prevent/detect memory leaks in Delphi. Was for D2007 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Examples of 'Things' that are not Objects in Ruby "Everything is an object" was one of the first things I learned about Ruby, but in Peter Cooper's Beginning Ruby: From Novice to Professional, it is mentioned that "almost everything in Ruby is an object".
Can you give me some examples of things that are not objects ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: EXE, Resource and Code Reduction How can I reduce resources inside my application?
I have tried a number of tricks
I have reduce and rewritten code, reduce line number,
Reduce comments,
Compressed the final EXE, but this is not the way I want to go,
Improve the variable type cast,
Remove ICONs,BMP,JPG, from inside t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: AVM2 and ABC (Adobe's ActionScript bytecode format) spec licensing.. can I use it? Google is failing me on this one.
Let's say I have some ECMA script that I've compiled to an ABC bytecode file using the compiler in the Open Source Flex SDK.
Is it within the terms of use (That I can't seem to find) for me to use the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Text to speech on iPhone Is there any way we can convert text to speech in an iPhone app?
Is it possible using the SDK?
A: Here's another text to speech:
https://bitbucket.org/sfoster/iphone-tts/
You need to download it and install as an API
then you can use it like that :
[fliteEngine speakText:@"Hi there"]; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: What is MVC, in relation to the Zend framework? I'm learning the Zend Framework and it uses a MVC model.
I still have not got my head around what MVC Model, View, Controller is.
What are the three different areas for and what would the program flow look like?
A: M - Models - are often the biggest source of confusi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Are there any tools to optimize the number of consumer and producer threads on a JMS queue? I'm working on an application that is distributed over two JBoss instances and that produces/consumes JMS messages on several JMS queues.
When we configured the application we had to determine which threading model we would u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding a License to your .Net Web Application I am currently looking at adding some licensy type software which will protect my .net web application source code. Was wondering if you guys had any experience with this and knew perhaps any companies or sources which provide such utilities ?
So my main aim is to protec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery clone duplicate IDs I have an HTML element with a large collection of unordered lists contained within it. I need to clone this element to place elsewhere on the page with different styles added (this is simple enough using jQuery).
$("#MainConfig").clone(false).appendTo($("#smallConfig"));
The problem, ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: What's the simplest way to display NULL values as "NULL" with WPF Data Binding? I have this legacy database for which I'm building a custom viewer using Linq to Sql.
Now some of the fields in a table can have the value NULL.
Using normal databinding in a DataTemplate (typed for the Class generated by the ORM Designe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I make Standards mode work as well as quirks mode? The following Html works great for me in FireFox or IE7/8 (with or without the Style Tag)
<!-- Deliberately no DocType to induce Quirks Mode -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
Input.quirks
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cross platform project automation The web shop where I work we do both .Net and PHP/Linux development. We'd like to start automating a lot more of our deployment processes using a common system that can be used for both. What would you recommend as a good common scripting language or automation system (like Ant or M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is garbage collection supported for iPhone applications? Does the iPhone support garbage collection? If it does, then what are the alternate ways to perform the operations that are performaed using +alloc and -init combination:
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:xmlData];
UIImage *originalIma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Speed of file transfer NFS vs. Microsoft Network Share? I would like to know, if there are any performance differences using NFS instead of standard Microsoft Network Share?
A: In my experience, yes there is. But I'd imagine it has lot to do with your specific workload and network set up. A quick google might yield... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to save the result of a t4 template on a different folder When i try to specify an absolute path for the generated files using
someTemplate.RenderToFile("c:\\tmp\\filename.ext");
I'm getting the following error
Error 263 Running transformation: System.Runtime.InteropServices.COMException (0x80004005): There i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Groovy, Netbeans and Java EE I want to develop a web application (no frameworks) mixing java with groovy. I am using the IDE Netbeans with the plugin.
If I start a new Java SE project and add a groovy class, it works with no problems.. but when I create a new java EE project and add a groovy class it can't compile a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Flex: Updating a Tree control I've a tree control with checkboxes that uses the control from http://www.sephiroth.it/file_detail.php?id=151#
Somehow I can't get the control to update when I change the dataProvider (i.e. by clicking a checkbox) the only way I can get it to update is to use the scrollbar. How do I for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.