text string | meta dict |
|---|---|
Q: struts setup sample application on eclipse I am new to strut/web programming and I thought I could learn a lot by reading a sample app. On google, I searched and found a sample app at
http://www.roseindia.net/struts/struts2/struts2tutorial.zip , the tutorial is really nice and it gives a sample login page.
However, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQLdb execute timeout Sometimes in our production environment occurs situation when connection between service (which is python program that uses MySQLdb) and mysql server is flacky, some packages are lost, some black magic happens and .execute() of MySQLdb.Cursor object never ends (or take great amount of time to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Custom ID in session handling by Java Servlet API Is it possible to assign a custom ID to a HTTP session through Servlet API?
I know that session handling from any application server, Tomcat for example, it's enough good to generate unique IDs. But I have custom unique session IDs based on information per user and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Combining different javascript objects rendered by multiple components I have a component which writes/generates javascript from a server side renderer. This component can be used in multiple times in a same page. However, once the page is loaded I have to collect all the variables or JSO written by this multiple co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Secure access to files in a directory identified by an environment variable? Can anyone point to some code that deals with the security of files access via a path specified (in part) by an environment variable, specifically for Unix and its variants, but Windows solutions are also of interest?
This is a big long que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Oracle or DB2 - who is the market leader in business sector? Which of the two databases is most popular in business/industry? I ask this because in terms of straight revenue or market share, I suspect they're about 50-50, because US government is big on DB2. So, discounting government, military, and academia, which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LINQ to SQL - where does your DataContext live? I'm using LINQ to SQL in a data access object library. The library is used in both web (web application/web service) and non-web (windows service) contexts. Initially, I stored the DataContext on the current HttpContext since it permitted me to manage a fairly small un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Java SE vs Java EE, college and career I'm currently studying Computer Science at College where they mainly teach Java standard edition, I see that in the industry this isn't used much, instead Java EE is used. If my College is teaching me Java SE rather than Java EE does this make me less employable?
And what exact... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is a catamorphism and can it be implemented in C# 3.0? I'm trying to learn about catamorphisms and I've read the Wikipedia article and the first couple posts in the series of the topic for F# on the Inside F# blog.
I understand that it's a generalization of folds (i.e., mapping a structure of many values to on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Custom php template engine: Am i finally on the right track? Since I keep showing up late for answering questions tagged php where i actually know the answer i figured i'd try asking a question myself.
I've been working on so many complete rewrites of a custom template engine in php for so long and so many times tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Progress button for Windows Forms .NET newbie here... I'd like to make a button in a Windows form that displays a progress or "cooldown" effect. That is, when the button is pressed, it becomes disabled. As some event or timer is progressing, the button shows the progress graphically. When the progress is finished... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: OSX lacks memalign I'm working on a project in C and it requires memalign(). Really, posix_memalign() would do as well, but darwin/OSX lacks both of them.
What is a good solution to shoehorn-in memalign? I don't understand the licensing for posix-C code if I were to rip off memalign.c and put it in my project- I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Should I only store fixed-size data elements in a database? If the amount of data stored within a given field of a database is unknown, and could be very large, should I store it in an external file rather than within a field in the database?
A: Do you need transactional semantics (commit, rollback) for the data? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check if a string in Python is in ASCII? I want to I check whether a string is in ASCII or not.
I am aware of ord(), however when I try ord('é'), I have TypeError: ord() expected a character, but string of length 2 found. I understood it is caused by the way I built Python (as explained in ord()'s documentati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "252"
} |
Q: Making iTerm to translate 'meta-key' in the same way as in other OSes In bash shell with emacs key-binding, you can use key combination like M-f, M-b to move one word forward or backward on the shell prompt respectively. Usually, the meta key is mapped to Alt key on Windows and Linux. However, in iTerm, I could not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "209"
} |
Q: How do I use the Queue library in SML/NJ I see that the SML/NJ includes a queue structure. I can't figure out how to use it. How do I use the additional libraries provided by SML/NJ?
A: The Queue structure is not specified by SML '97, but it is present in SML/NJ's top-level environment.
$ sml
Standard ML of New Je... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can you write a block of c++ code inside C#? I heard somewhere that you can drop down to C++ directly inside C# code.
How is this done? Or did I hear wrong?
Note: I do not mean C++ / CLI.
A: You might be thinking of unsafe blocks where you can write code that looks a lot like C++, since you can use pointers.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you find the base url from a DLL in C#? From within a DLL that's being called by a C#.NET web app, how do you find the base url of the web app?
A: Will this work?
HttpContext.Current.Request.Url
UPDATE:
To get the base URL you can use:
HttpContext.Current.Request.Url.GetComponents(UriComponents.SchemeAndSer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Date ranges in T/SQL For a current project I am working I need to return an aggregate report based on date ranges.
I have 3 types of reports, yearly, monthly and daily.
To assist in returning this report I need a function that will return all of the sub-ranges of datetimes, within a big range.
So for example if I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I programmatically determine whether an MP3 file is CBR or VBR? (preferrably using c#) I know of many utilities that can tell me the bitrate of an MP3 file, but I've never seen one that can tell me whether or not the MP3 file is VBR (variable bit rate - the bit rate fluctuates within the file) or a CBR (cons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What's the best way to use SqlBulkCopy to fill a really large table? Nightly, I need to fill a SQL Server 2005 table from an ODBC source with over 8 million records. Currently I am using an insert statement from linked server with syntax select similar to this:
Insert Into SQLStagingTable from Select * from OpenQuer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change a Window background color, given a IntPtr handle In c#, I have a handle to a window ( an IntPtr ), I want to change the background color of that window. How can I do this?
I can get the GDI graphics object for that handle like so:
Graphics graphics = Graphics.FromHwnd(theHandle);
So I should somehow be able ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Proper use of try .. catch Should I be using this method of throwing errors:
if (isset($this->dbfields[$var])) {
return $this->dbfields[$var];
} else {
throw new FieldNotFoundException($var);
}
or this style:
try {
return $this->dbfields[$var];
} catch (Exception $e) {
throw new FieldNotFoundExcepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is a type and effect system? The Wikipedia article on Effect system is currently just a short stub and I've been wondering for a while as to what is an effect system.
*
*Are there any languages that have an effect system in addition to a type system?
*What would a possible (hypothetical) notation in a ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Cobertura refuses to acknowledge code was covered I am using the Maven (2) Cobertura plug-in to create reports on code coverage, and I have the following stub I am using in a method:
try {
System.exit(0);
} catch (final SecurityException exception) {
exception.printStackTrace();
}
System.err.println("The pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is a custom module the best way to access an external API in Drupal? I'm new to extending Drupal, though I've done similar kinds of things for other CMSes. Anyone care to share opinions on the best way to access an external API from within Drupal?
I need to show things like search results, listings, and listing summ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Identify full vs half yearly datasets in SQL I have a table with two fields of interest for this particular exercise: a CHAR(3) ID and a DATETIME. The ID identifies the submitter of the data - several thousand rows. The DATETIME is not necessarily unique, either. (The primary keys are other fields of the table.)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I write a complex find query in CakePHP without using `$this->Model->query()`? Hey all I'm hoping someone has enough experience with Cake PHP to make this work.
I'm working on something that at the moment could affectionately be called a twitter clone. Essentially I have a set up like this.
Users have many... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to configure spring HandlerExceptionResolver to handle NullPointerException thrown in jsp? From a jsp is thrown a NullPointerException for example using <% null.toString(); %>
This exception is not handled by the HandlerExceptionResolver, but thrown to the web container(tomcat) and converted into a code 500 err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I load the contents of a text file into a javascript variable? I have a text file in the root of my web app http://localhost/foo.txt and I'd like to load it into a variable in javascript.. in groovy I would do this:
def fileContents = 'http://localhost/foo.txt'.toURL().text;
println fileContents;
How can I g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "201"
} |
Q: Configuring WordPress .htaccess to view subfolders I have a WordPress installation with an .htaccess file that looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Using Wordpress LOOP with pages instead of posts? Is there a way to use THE LOOP in Wordpress to load pages instead of posts?
I would like to be able to query a set of child pages, and then use THE LOOP function calls on it - things like the_permalink() and the_title().
Is there a way to do this? I didn't see anythi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Delete all indices in Lucene.net I want to delete all the previously created indices. I am using Lucene.net.
I tried the following:
Term term = new Term(); //empty because I want to delete all the indices
IndexReader rdr = IndexReader.Open(_directory);
rdr.DeleteDocuments(term);
rdr.Close();
But I get error. Any i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a sorted collection type in .NET? I'm looking for a container that keeps all its items in order. I looked at SortedList, but that requires a separate key, and does not allow duplicate keys. I could also just use an unsorted container and explicitly sort it after each insert.
Usage:
*
*Occasional insert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Problem with dynamic controls in .NET Problem with dynamic controls
Hello all,
I'm wanting to create some dynamic controls, and have them persist their viewstate across page loads. Easy enough, right? All I have to do is re-create the controls upon each page load, using the same IDs. HOWEVER, here's the catch - i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: PHP: Best way to extract text within parenthesis? What's the best/most efficient way to extract text set between parenthesis? Say I wanted to get the string "text" from the string "ignore everything except this (text)" in the most efficient manner possible.
So far, the best I've come up with is this:
$fullString = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: How do you "override" an Internal Class in C#? There's something I want to customize in the System.Web.Script.Services.ScriptHandlerFactory and other .NET stuff inside an internal class. Unfortunately, it's an internal class. What options do I have when trying to customize a method in this class?
A: You might fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: In C++ what are the benefits of using exceptions and try / catch instead of just returning an error code? I've programmed C and C++ for a long time and so far I've never used exceptions and try / catch. What are the benefits of using that instead of just having functions return error codes?
A: *
*return an error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: At what point do MaxTextureRepeat limitations come into play? When executing a pixel shader under Direct3D, do the limits on texture coordinates imposed by MaxTextureRepeat only become an issue during calls to texture lookup functions such as Tex2D(), or do they come into play anytime the texture coordinates are acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java webservice (soap) client - use certificates I am trying to connect to a webservice over ssl with a client certificate. Is there an elegant way of doing this apart from shoving things like "javax.net.ssl.keyStore" into System.properties.
Any pointers to code examples would be appreciated.
A: you might get some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I make
* with block elements sit beside each other? I have a mockup layout for something here. Essentially there are sections, columns and fields, which are all written as a combination of <ul> and <li> elements. This is done specifically for later parsing.
A snippet of the HTML:
<li class="layout"><span cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can you see the sql that is causing an error on SubmitChanges in LINQ to SQL? I've got some LINQ to SQL that sometimes throws a
"Cannot insert duplicate key row in object 'dbo.Table' with unique index
'IX_Indexname'.The statement has been terminated."
Is there some way I can turn on logging or at least debu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Integer formatting, padding to a given length I need to pad the output of an integer to a given length.
For example, with a length of 4 digits, the output of the integer 4 is "0004" instead of "4". How can I do this in C# 2.0?
A: Use the string.Format command.
output = String.Format("{0:0000}", intVariable);
More... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to navigate between fields with Enter Key My company has a large application written in VB6, and for historical reasons, the application is navigated with the Enter key instead of with the Tab key. I don't know VB6, but I know that they currently set the focus for each control in a big select statement in the F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Supporting DPI and Default Font Changes So I'm trying to figure out how the Form's AutoScaleMode property can possibly help to support a system with a font or DPI that is different from my work development machine.
From the SDK:
AutoScaleMode Enumeration
public enum AutoScaleMode
None
Automatic scaling is disa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Harder, Better, Faster, Stronger... Techniques for an image-based CAPTCHA? There are lots of non-image-based CAPTCHA ideas floating around. But what about the old-fashioned way?
What are the elements of a good image CAPTCHA? What visual elements are hard for computers, but easier for humans? What about mistakes, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java: Triple Curly Bracing I've been given some code with commenting unlike anything I've come across before:
//{{{ Imports
import imports;
//}}}
It is the same for each method block,
//{{{ above the code block
//}}} below the code block
Also see: http://en.wikipedia.org/wiki/Folding_editor
A: A quick search ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Escaping in a ILIKE query I need to do a query that search for a text with 'Nome % teste \ / ' as prefix. I'm doing the query using:
where "name" ILIKE 'Nome a% teste \ /%' ESCAPE 'a' (using a as escape character).
There is a row that match this, but this query returns nothing. Removing the slash ('Nome % teste \')... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Printing out items in any Collection in reverse order? I have the following problem in my Data Structures and Problem Solving using Java book:
Write a routine that uses the Collections API to print out the items in any Collection in reverse order. Do not use a ListIterator.
I'm not putting it up here because I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do read/interact with an old ActiveX SSUltraGrid using UIAutomation I am investigating automated testing of an old Win32 application that used ActiveX controls. I am spiking use White (from Thougthworks) that uses Microsoft UIAutomation. I can find the AutomationElement related to the control, but how do I inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Prepared Statement vs. Stored Procedure If you are using php5 and mysql5, is there a substantial advantage to using stored procs over prepared statements? ( i read somewhere you may not get substantial performance gains from mysql5 stored proc)
A: May not be the case or worthwhile to mention here, but stored proced... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Anyone know of a good algorithm for rendering an HTML table to an image? There is a standard two-pass algorithm mentioned in RFC 1942: http://www.ietf.org/rfc/rfc1942.txt however I haven't seen any good real-world implementations. Anyone know of any? I haven't been able to find anything useful in the Mozilla or WebK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling a static method on a generic type parameter I was hoping to do something like this, but it appears to be illegal in C#:
public Collection MethodThatFetchesSomething<T>()
where T : SomeBaseClass
{
return T.StaticMethodOnSomeBaseClassThatReturnsCollection();
}
I get a compile-time error:
'T' is a 'ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "122"
} |
Q: How do I reference assets from a different subdomain (or CDN) in production? I am working both in the Ruby and Java worlds. I have been inspired somewhat by the merb-assets project, which provides various functionality to make it easy to reference assets (images, CSS, etc.) located on a subdomain (or CDN).
I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Print out post values I have a form that has multiple fields, and for testing purposes is there a way I could print out the values entered in all the fields, without having to individually print each value.
A: I basically use:
echo "<pre>"; print_r($_POST) ; echo "</pre>";
It prints the post values in a nice form... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: External Styles in JasperReports I'm working on a system that includes a large number of reports, generated using JasperReports. One of the newer features is that you can define styles for reports.
From the available docs I believe there is some way to have an external file defining styles to use, and you can refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Archiving Files I really like the way gmail has the archive system implemented. I can archive any file after adding a tag to it (if needed) and I can search for it whenever I want to.
Is there any program in Windows/Linux which behaves in a similar fashion?
A: When you "Archive" in gmail you are just removing a hid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is our agile plan standard? We have been trying Scrum but for a while now and are trying to formalize it within as our own version of Agile Application Development. Here's how our current process works. There are two main drawbacks to it as it stands right now. Wanted to get input on whether you have a similar appro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Can you mix .net languages within a single project? Can you mix .net languages within a single project? So pre-compiled, I would like to call classes and methods of other source files.
For both web and apps?
In particular I'd be interested in F# and C#.
A: CMS mentions an interesting approach, but in reality I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: jQuery get specific option tag text All right, say I have this:
<select id='list'>
<option value='1'>Option A</option>
<option value='2'>Option B</option>
<option value='3'>Option C</option>
</select>
What would the selector look like if I wanted to get "Option B" when I have the value '2'?
Please note ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1280"
} |
Q: Is there a pattern for dealing with non-memory resources on cleaning up an ObjC object? It's usual for objects which have some state related to a non-memory resource to provide a method for explicitly 'finishing' with that resource. Is there a preferred common practice for dealing with the case where an object deall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Where to place JavaScript in an HTML file? Say I have a fairly hefty JavaScript file, packed down to roughly 100kb or so. By file I mean it’s an external file that would be linked in via <script src="...">, not pasted into the HTML itself.
Where’s the best place to put this in the HTML?
<html>
<head>
<!-- here? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "228"
} |
Q: Match Regex with JavaScript I need to match something in the form
<a href="pic/5" id="piclink"><img src="thumb/5" /></a>
to find the number, in this case 5, using JavaScript. I have no idea how to use regexes, so I was wondering if anyone here could help out.
A: Just to make sure you know what's going on, the pat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get Cobertura to fail M2 build for low code coverage I'm trying to configure my WAR project build to fail if the line or branch coverage is below given thresholds. I've been using the configuration provided on page 455 of the excellent book Java Power Tools, but with no success. Here's the relevant snippet of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Hashes vs Numeric id's When creating a web application that some how displays the display of a unique identifier for a recurring entity (videos on YouTube, or book section on a site like mine), would it be better to use a uniform length identifier like a hash or the unique key of the item in the database (1, 2, 3, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: The stack size used in kernel development I'm developing an operating system and rather than programming the kernel, I'm designing the kernel. This operating system is targeted at the x86 architecture and my target is for modern computers. The estimated number of required RAM is 256Mb or more.
What is a good size to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Best way to extract the second level domain from the HTTP_Host Variable in VBScript I need to extract only the 2nd level part of the domain from request.servervariables("HTTP_HOST") what is the best way to do this?
A: If Len(strHostDomain) > 0 Then
aryDomain = Split(strHostDomain,".")
If uBound(aryDo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I efficiently empty a Perl DBM file? I've inherited a piece of code with a snippet which empties the database as follows:
dbmopen (%db,"file.db",0666);
foreach $key (keys %db) {
delete $db{$key};
}
dbmclose (%db);
This is usually okay but sometimes the database grows very large before this cleanup code is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I use covariant return types with smart pointers? I have code like this:
class RetInterface {...}
class Ret1: public RetInterface {...}
class AInterface
{
public:
virtual boost::shared_ptr<RetInterface> get_r() const = 0;
...
};
class A1: public AInterface
{
public:
boost::shared_ptr<Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Why not use 'protected' or 'private' in PHP? I've been working with the Joomla framework and I have noticed that they use a convention to designate private or protected methods (they put an underscore "_" in front of the method name), but they do not explicitly declare any methods public, private, or protected. Why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to add NUnit in Visual Studio I need to write test cases for my application. I've chosen NUnit. Please let me know how to add NUnit to my Visual Studio IDE. where can I download them?
A: Best place to start would probably be: http://testdriven.net/
They have NUnit, and a host of other unit testing suites that c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you slice arrays in D? How are arrays manipulated in D?
A: Here you can find a complete reference of array manipulations in D.
A: To slice arrays, it's a simple matter of using
int[7] a;
int[] b;
b = a[5..7];
which sets b[0] to a[5] and b[1] to a[6]. But remember that this is a reference to the elements i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does "select((select(s),$|=1)[0])" do in Perl? I've seen some horrific code written in Perl, but I can't make head nor tail of this one:
select((select(s),$|=1)[0])
It's in some networking code that we use to communicate with a server and I assume it's something to do with buffering (since it sets $|).
But I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: How can I search through Stack Overflow questions from a script? Given a string of keywords, such as "Python best practices", I would like to obtain the first 10 Stack Overflow questions that contain that keywords, sorted by relevance (?), say from a Python script. My goal is to end up with a list of tuples (title, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best way to escape Python strings in PHP? I have a PHP application which needs to output a python script, more specifically a bunch of variable assignment statements, eg.
subject_prefix = 'This String From User Input'
msg_footer = """This one too."""
The contents of subject_prefix et al need to be writt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which AES library to use in Ruby/Python? I need to be able to send encrypted data between a Ruby client and a Python server (and vice versa) and have been having trouble with the ruby-aes gem/library. The library is very easy to use but we've been having trouble passing data between it and the pyCrypto AES library f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get character offset information from a pdf document? I'm trying to implement search result highlighting for pdfs in a web app. I have the original pdfs, and small png versions that are used in search results. Essentially I'm looking for an api like:
pdf_document.find_offsets('somestring')
# => { top: 501, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I set up my Ubuntu VPS to send outgoing mail? My VPS provider (Slicehost) doesn't provide an SMTP server. I use Google Apps to send and receive mail for my domains, but I want to be able to programmatically send e-mail.
I've been Googling this issue on and off for many months, and I just can't seem to get a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is there a way to control the animation on a UITableView scrollToRowAtIndexPath? I would like to modify the animation duration and attach a callback to be called when the animation finishes when calling scrollToRowAtIndexPath with animated:YES but I can't find a handle to its animation proxy or any other way to do i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Export to Excel from Crystal Reports without page headers/footers Just wondering if anybody had working code example (in c#) for exporting a crystal report to Excel from a .NET application without the report's page headers and footer's.
I am using crystal reports v9 runtime.
A: To accomplish this you actually need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Cross-platform editor control I need a cross-platform editor control to use as GUI-part in an in-house tool. The control may be commercial, but with reasonable price.
Required features:
*
*Platforms: Win32, OS X, Linux
*UTF-8 support
*Fine-grained run-time control to the text style (or at least color)
*Nice lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Java file input as command line argument How do you process information in Java that was input from a file. For Example: suppose you have a file input.txt. The contents of this file is:
abcdefghizzzzjklmnop
azzbcdefghijklmnop
My hope would be that the information would be put into the argument array of strings s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ReSharper (or something like it) for Visual C++? I've seen ReSharper recommended a lot Unfortunately, it doesn't support C++ in Visual Studio. Is there anything out there you can recommend? I already use Visual Assist, and it does its job very well, but it's quite limited in comparison with ReSharper.
Any suggest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What is the easiest/best/most correct way to iterate through the characters of a string in Java? Some ways to iterate through the characters of a string in Java are:
*
*Using StringTokenizer?
*Converting the String to a char[] and iterating over that.
What is the easiest/best/most correct way to iterate?
A: I u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "460"
} |
Q: Drop Down List with WPF Menu Controls I am looking for a way to add a drop down list in WPF to a menu. This used to be really easy in winforms and so I am expecting you experts to know just now to do it in WPF. Thanks.
Sorry if this is a bad question, it is late and I don't want to think.
A: It is very easy to add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I emulate Python's named printf parameters in Ruby? In Python, you can do this:
print "Hi! I'm %(name)s, and I'm %(age)d years old." % ({"name":"Brian","age":30})
What's the closest, simplest Ruby idiom to replicate this behavior? (No monkeypatching the String class, please.)
One of the really excellent be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Searching for a safe way to do authentication from a mobile app I've inherited a mobile app which sends auth credentials (userid/password) in the clear.
I'd imagine that I have 2 choices:
a) use TLS.
b) write my own auth protocol.
If I choose (b) what are the key guidelines that I must follow to make it it secure.
e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which Subversion web interfaces have a blame feature? I'm looking for a subversion web client ala SVN::Web but with a very specific feature I've always thought would be quite useful.
What I want is the ability to find which revision was responsible for a certain line (or lines) in a text file. A way to do this via ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Change Text Box Color using Required Field Validator. No Extender Controls Please I need to change color of TextBox whenever its required field validator is fired on Clicking the Submit button
A: Very late to the party, but just in case someone else stumbles across this and wants a complete answer which works with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Is there a better way to get a named series of constants (enumeration) in Python? Just looking at ways of getting named constants in python.
class constant_list:
(A_CONSTANT, B_CONSTANT, C_CONSTANT) = range(3)
Then of course you can refer to it like so:
constant_list.A_CONSTANT
I suppose you could use a dict... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: ASP.net page life cycle I am having an ASP.net page in my page i am having this as my code behind files.
on first access the page the page preinit, init, load methods are called. on postbacks
the preinit, init, load methods are called.
My question is LoadViewstate and control state events (Overridden methods) are no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Running on 32 or 64 bit matlab? How can I determine if I'm running on a 32bit or a 64bit version of matlab?
I have some pre-compiled mex-files which need different path's depending on 32/64bit matlab.
A: The question of 32 vs. 64 bits is really a red herring. If I understand correctly, you want to determine which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java2D Performance Issues I'm having performance oddities with Java2D. I know of the sun.java2d.opengl VM parameter to enable 3D acceleration for 2D, but even using that has some weird issues.
Here are results of tests I ran:
Drawing a 25x18 map with 32x32 pixel tiles on a JComponent
Image 1 = .bmp format, Image 2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Locking Executing Files: Windows does, Linux doesn't. Why? I noticed when a file is executed on Windows (.exe or .dll), it is locked and cannot be deleted, moved or modified.
Linux, on the other hand, does not lock executing files and you can delete, move, or modify them.
Why does Windows lock when Linux does not? I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Editing SQL query with Visual Studio 2008 Would you recommend me the best approach to edit SQL query with Visual Studio 2008 Professional, please?
I know I can open Query window from context menu in Server Explorer and edit text in SQL Pane. But unfortunately I am not allowed to save query to a file and Find and Rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which wiki will let me dynamically create a page when its link is clicked? For an application (*) I'm developing I need a mixture of dynamically generated and static pages. It would be cool to use a wiki such that once a dynamic page has been accessed for the first time it becomes a static page that can be annotated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Open source OCR tool available in the market Is there any open source OCR library written in .NET, or written in any language but can be used in an ASP.NET application?
Or is there any open source OCR API available in the market for image to tabular formats ?
A: There is Tesseract and although it has no native .net... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I change OutDir variable in Visual C++? In the linker the binary destination is specified as:
$(OutDir)\$(ProjectName).exe
I've looked through every setting and I can't see where OutDir is defined. How do I change this?
A: First option in the "General" section underneath "Configuration Properties".
A: It's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to ensure user submit only english text I am building a project involving natural language processing, since the nlp module currently only deal with english text, so I have to make sure the user submitted content (not long, only several words) is in english. Are there established ways to achieve this? Python or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to trim() white spaces from a string? JavaScript doesn't seem to have a native trim() method. How can I trim white spaces at the start and end of a string with JavaScript?
A: As a couple of others have already noted, it's usually best to do this sort of thing by using a third-party JS library. Not that trim() i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |