text string | meta dict |
|---|---|
Q: Using a SQL Server for application logging. Pros/Cons? I have a multi-user application that keeps a centralized logfile for activity. Right now, that logging is going into text files to the tune of about 10MB-50MB / day. The text files are rotated daily by the logger, and we keep the past 4 or 5 days worth. Older... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: What is the best way to serialize xml into appropriate objects when versioned by namespaces? My question is the following.
I have xml that is versioned by a namespace. I want to serialize this received xml into the appropriate object, but the only way I know to do this means I have to process the xml two times. Fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In JavaScript is it possible to launch a file browser dialog programmatically? Instead of using the <input type="file"> tag I'd like to have a button that launches a file browser dialog.
My first thought was to have a hidden file input tag and a button. I'd use the button click on the button to fire the onclick of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Convert hex string to integer in Python How do I convert a hex string to an integer?
"0xffff" ⟶ 65535
"ffff" ⟶ 65535
A: Or ast.literal_eval (this is safe, unlike eval):
ast.literal_eval("0xffff")
Demo:
>>> import ast
>>> ast.literal_eval("0xffff")
65535
>>>
A:
Convert hex string to int in Python
I m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "949"
} |
Q: How to deal with monstrous Struts Actions? I inherited this gigantic legacy Java web app using Struts 1.2.4. I have a specific question regarding Actions. Most of the pages have exactly one Action, and the processExecute() methods are hideous monsters (very long and tons of nested if statements based on request para... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Powershell - Increase the timeout for retrieving XML from a URL I'm trying to retrieve an XML stream from a URL. For most URLs my code below works fine. But, I have a couple URLs that timeout. The URLs in question do work from Internet Explorer.
$webclient=New-Object "System.Net.WebClient"
[xml]$data=$webclient.Down... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I drag and drop something into a Static control? How would I drag and drop something into a static control? It looks like I need to create a sub class of COleDropTarget and include that as a member variable in a custom CStatic. That doesn't appear to be working though. When I try and drag something onto th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to highlight and color gdb output during interactive debugging? Please don't reply I should use ddd, nemiver, emacs, vim, or any other front-end, I just prefer gdb as it is, but would like to see its output with some terminal colors.
A: cgdb is much better than gdb -tui
A: #into .gdbinit
shell mkfifo /tmp/colo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "197"
} |
Q: How to create a Virtual Com1 port in windows? I am developing a mobile app to run on a pocketpc. We have a mobile printer and card swipe that uses com1 to send and get info. I'm using the device emulator and want to test without the printer. How do I create a virtual com1 port to right to and read from? I tried ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: "Token Text in state EndRootElement would result in an invalid XML document" I'm seeing this exception message coming from XslCompiledTransform.Transform(), but after handling the exception the XSL transform still appears to have been successful. The full exception message is:
Token Text in state EndRootElement
w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why would you choose the Java programming language over others? Why would you choose java over others? Why did you choose java to program your application?
Please include what you are using java for (desktop application/ web application/ mobile).
A: My reasons for prefering Java over other programming languages at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Column order of results from rails ActiveRecord find_by_sql call I'm attempting to put together some basic report screens. I've got some fairly complicated SQL queries that I'm feeding into ActiveRecord's find_by_sql method. The problem I am having here is that I am losing the order of the columns as given in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Need Help: VS 2005 Properties Changing I am working in Visual Studio 2005. I have multiple splitters on the screen. I have set the splitters IsFixed and I have also set fixed panel sizes. In addition to this I have locked the control. For some reason, when I switch into debug mode the splitter distance value is chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I do a deep copy of an element in LINQ to XML? I want to make a deep copy of a LINQ to XML XElement. The reason I want to do this is there are some nodes in the document that I want to create modified copies of (in the same document). I don't see a method to do this.
I could convert the element to an XML st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: Steps to make a LED blink from a C/C++ program? What are the easiest steps to make a small circuit with an LED flash from a C/C++ program?
I would prefer the least number of dependencies and packages needed.
*
*What port would I connect something into?
*Which compiler would I use?
*How do I send data to that p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is there any tools for automatic removal of comments from JavaScript code? I'd like to have comments in my code, but I want them to be removed before deploying.
Yes, it's not hard to write such a thing, but if it already exists…
And how about comments in ASP pages?
A: YUI Compressor in addition to removing comments... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Query a single value from a column that pulls multiple values Using the following query:
SELECT pe.prodtree_element_name_l, MAX(rs.resource_value) AS resource_value
FROM prodtree_element pe
LEFT JOIN resource_shortstrings rs
ON pe.prodtree_element_name_l_rk = rs.resource_key
WHERE rs.language... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Architectual design patterns I am looking for some architectual design patterns for enterprise application development. I am aware of the all of the GoF patterns, and MVC, and such things, but I am looking for patterns that emerge at a larger scope. In particular I have a somewhat larger enterprise desktop and websi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: REPLACE and Unicode characters in SQL I have some data with messed-up accented characters. For example in the data we have things like
ClΘmentine
that should should read
Clémentine
I'd like to clean it up with a script, but when I do this for example
Select Replace('ClΘmentine', 'Θ', 'é')
this is what I get:
Clém... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I make the footer stretch vertically? I have a footer that is a 1 x 70px, which is set as the background and tiles horizonally.
In cases when the web page does not contain a lot of content on it, it will display the footer above where the footer should be. I want it to fill in with a solid color, so if they s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to update an XBAP's config file after deployment? We have a WPF XBAP application that we want to change the configuration on the server after it is deployed. Since the config file is embedded in the deployment files, how is this possible?
For example, we want to change the database connection strings the deploy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Passing List<> to SQL Stored Procedure I've often had to load multiple items to a particular record in the database. For example: a web page displays items to include for a single report, all of which are records in the database (Report is a record in the Report table, Items are records in Item table). A user is sel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Ordering values I'm trying to order items based on an attribute value:
<xsl:apply-templates select="Question">
<xsl:sort order="ascending" select="@Value"></xsl:sort>
</xsl:apply-templates>
This does order them, but I could have values like 1,2,3, ... 10, 11, ... 20 and it will order them 1,10,11, ... 2,20... 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Individual indexes vs multiple field indexes Currently we have a table that we use to track inivitations. We have an email field that is indexed but we also have three optional keys that the user can specify when adding new record emails. We don't allow duplicates so we have to query if the email plus the optional k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why would a server not set a HTTP Response Code? I'm asking in generalities - why would any server not set and return headers and/or status codes? I can't think of a good reason for this. Perhaps I'm overlooking something.
A: The Status-Code is a required part of a HTTP Response.
By definition, the only reason for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: checkbox in YUI DataTable I'm using a column of checkboxes in a YUI DataTable, I works fine. But I haven't found a way to put a name and value attribute so I can use when the form is submitted.
Thanks in advance.
A: Does the API reference at http://developer.yahoo.com/yui/docs/YAHOO.widget.CheckboxCellEditor.html h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XML structure for a personal organizer I'm doing a personal organizer for learning purposes, and i've never worked with XML so i'm not sure if my solution is the best. Here's the basic structure for the XML file i came with:
<calendar>
<year value="2008">
<month value="october">
<day value="1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Algorithm for most recently/often contacts for auto-complete? We have an auto-complete list that's populated when an you send an email to someone, which is all well and good until the list gets really big you need to type more and more of an address to get to the one you want, which goes against the purpose of auto-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: PHP Opcode Caching/Zend Acceleration and include_once vs. require_once I have a colleague who is looking into opcode caching/Zend Acceleration (I've always assumed these are the same thing) for our PHP based application. His Benchmarks appear to indicate that we're NOT seeing a performance benefit if we include our... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I force/get to use GTKLookAndFeel in Java on KDE? First of all, using gnome is not an option (but it is possible to install its libraries).
I need to know what is necessary to display a Java Swing desktop application using the current installed KDE look and feel of KDE. Ideally, the solution should allow me t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why am I seeing inconsistent JavaScript logic behavior looping with an alert() vs. without it? I have code similar to this filtering entries in an Array of Objects:
var filterRegex = new RegExp(".*blah.*","ig");
if (filterRegex.test(events[i].thing) && events[i].show) {
console.log("SUCCESS: filtering thing " + ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Apache Authentication for external access, but not for local access I need that my Apache require authentication only to external access but free in my local network. I have mod_user in my Apache.
A: The easiest way to deal with this is to use two virtual host. Use one for the external users and one of the internal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Any Real-World Experience Using Software Transactional Memory? It seems that there has been a recent rising interest in STM (software transactional memory) frameworks and language extensions. Clojure in particular has an excellent implementation which uses MVCC (multi-version concurrency control) rather than a roll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: How do I access "assigns" after "render :template => ..."? I have an error handling method in my ApplicationController:
rescue_from ActiveRecord::RecordNotFound, :with => :not_found
def not_found(exception)
@exception = exception
render :template => '/errors/not_found', :status => 404
end
In RAILS_ROOT/app/vie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's wrong with my sitemap? We have a sitemap for our site http://www.appsamuck.com/
The sitemap is here http://www.appsamuck.com/sitemap.xml
But Google seems to hate it. My question is why? I'm just staring at it now saying to myself it looks right. Am I missing something?
3 Paths don't match
We've detected tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get the previous field value in the modifiedField method of a Dynamic Ax table? I would like to be able to perform some logic in the table.modifiedField method which compares the previous value of a field to the new value. How do I get to the previous value?
A: The record buffer as it was before any modif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Payroll System Design, Business Logic in SPs or Application Layer (C#.Net), Maintainability - Repost We are designing a Payroll Generation System for a client.
The organization we are targeting has a hierarchy as follows:
Company -> Cluster -> Business Unit (BU) -> Department -> Employee
The salary for an employee i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does PHP have threading? I found this PECL package called threads, but there is not a release yet. And nothing is coming up on the PHP website.
A: pcntl_fork() is what you are searching for, but its process forking not threading.
so you will have the problem of data exchange. to solve them you can use phps semaphor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "136"
} |
Q: Best way to run remote commands on a Windows server from Java? Are there any existing solutions for remote execution of commands on a windows server from Java natively? psexec.exe is not an option since the java application has to be cross platform.
Even a preexisting solution using Java RM would be sufficient.
Curr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What does 'lew' stand for in 'lew2' or 'lew4'? I'm seeing the term 'lew2' and 'lew4' being used in reference to character size in certain files. I know that the number represents how many bytes are used to store certain types of characters (maybe wide chars?), but I'm not sure what the 'lew' part stands for. My be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Native Windows Application Development Options Long winded title, short question:
If one wants to develop for Windows but not have to rely on any external dependency (no runtime, thus ruling out .net), what supported, alive and fully functioning* alternatives are there?
Visual Basic 6 is dead, Visual C++ is obvious ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can you change Network settings (IP Address, DNS, WINS, Host Name) with code in C# I am developing a wizard for a machine that is to be used as a backup of other machines. When it replaces an existing machine, it needs to set its IP address, DNS, WINS, and host name to match the machine being replaced.
Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Different spring XML files for development environment vs. deployment when using maven Summary
We have a central LDAP server that our deployed Java web app should connect to. Our JUnit tests depend on specific data in the LDAP repository, so they need to connect to an embedded ApacheDS LDAP server, primed with a sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL one-to-many match the one side by ALL in many side In the following one to many
CREATE TABLE source(id int, name varchar(10), PRIMARY KEY(id));
CREATE TABLE params(id int, source int, value int);
where params.source is a foreign key to source.id
INSERT INTO source values(1, 'yes');
INSERT INTO source values(2, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Starting Eclipse w/ Specific Workspace Is there a way to start an instance of eclipse, passing it some sort of parameter telling it to use a specific workspace?
The problem I'm trying to solve is that I have a workspace for work projects and one for personal projects. I'd like to be able to tie these to workspaces t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "171"
} |
Q: Good freeware clone of the VMS editor EDT for unix or the pc? I would like to have the same editor available on all of the platforms I frequent.
Emacs and Vi are not desired solutions.
A: There is nu/TPU which is more like EVE/TPU, and also JED, I've never found anything better than either of these.
I used to be t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any way to cast with class operator only? Kind of a random question...
What I'm looking for is a way to express a cast operation which uses a defined operator of the class instance I'm casting from, and generates a compile-time error if there is not a defined cast operator for the type. So, for example, what I'm loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WCF WebHttp Mixed Authentication (Basic AND Anonymous) All of this is pertaining to WebHttp binding, hosted in a custom Service Host (IIS is not an option at this time).
I've implemented a custom UserNamePasswordValidator, and a custom IAuthorizationPolicy. When I configure the endpoint's binding to use Basic authe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What reason is there for C# or Java having lambdas? What reason is there for C# or java having lambdas? Neither language is based around them, it appears to be another coding method to do the same thing that C# already did.
I'm not being confrontational, if there is a reason I would like to know the reason why. For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to determine if .NET code is running in an ASP.NET process? I have an instance of a general purpose class that will be executed both under
ASP.NET and a stand alone program. This code is sensative to the process where it
is being run - that is, there are certin methods that should not called if
running under ASP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I change the default application icon in Java? I'm using NetBeans, trying to change the familiar Java coffee cup icon to a png file that I have saved in a resources directory in the jar file. I've found many different web pages that claim they have a solution, but so far none of them work.
Here's what I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: What's the difference between game development and business development? Like most developers, I'm a business developer, which in essence consists of slapping a UI onto some back-end data store. (We all know there's a lot more to it than that, but that's usually what it boils down to.)
I understand that game develop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Algorithm to order 'tag line' campaigns based on resulting sales I want to be able to introduce new 'tag lines' into a database that are shown 'randomly' to users. (These tag lines are shown as an introduction as animated text.)
Based upon the number of sales that result from those taglines I'd like the good ones to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET localization with Page Methods/Web Services via AJAX That's a mouthful...
Here's the issue, we're doing some client-side validation via AJAX calls to page methods (which are essentially web services). We've also added a drop-down on the page to choose your language and have created a class that inherits fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I make a dictionary (dict) from separate lists of keys and values? I want to combine these:
keys = ['name', 'age', 'food']
values = ['Monty', 42, 'spam']
Into a single dictionary:
{'name': 'Monty', 'age': 42, 'food': 'spam'}
A: keys = ('name', 'age', 'food')
values = ('Monty', 42, 'spam')
out = dict(zip(k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1673"
} |
Q: How do you move visual studio DataTip window The window pops up below the variable, and obscures the code I want to look at.
Can I move the window without loosing my place in it? I seem to remember there is a way to do it.
A: I remembered where I saw the tip.
The answer is: you cannot move the window, but pressing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery and jVal Validation Plug-in. Adding an attribute to an element I'm trying to add the jVal attribute to a textbox that I created in the HTML.
<input id="subJobName" type="text" jval="{valid:function (val) { return validateSubJobName(val); }, message:'Name already exists or is longer than 14 characters.', style... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting HTML page vertical position with JavaScript I have a HTML page that scrolls up and down (not a lot, but it does scroll). How can I set the scroll position in the page after executing some JavaScript?
I'm using jQuery to inject some additional HTML at the bottom of the page and I'd like to programmatically sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to make this site work in non-firefox browsers? This page displays beautifully in firefox but i get all kinds of problems when testing the site in opera or internet explorer, mostly with the menu. I would like to know what techniques have caused this and how to avoid them.
http://www.jkhbdesign.se/
Edit 2: Here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the accepted way to send 64-bit values over JSON? Some of my data are 64-bit integers. I would like to send these to a JavaScript program running on a page.
However, as far as I can tell, integers in most JavaScript implementations are 32-bit signed quantities.
My two options seem to be:
*
*Send the value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: jQuery multiple radio buttons New to javascript/jquery and having a hard time with using this or $(this) to get the current object.
I have a table with a set of radio buttons on each row, each named s_<rowindex>. None of the radio buttons are checked by default:
<tr>
<td align="left" style="width: 300px">
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: From what Linux kernel/libc version is Java Runtime.exec() safe with regards to memory? At work one of our target platforms is a resource constrained mini-server running Linux (kernel 2.6.13, custom distribution based on an old Fedora Core). The application is written in Java (Sun JDK 1.6_04). The Linux OOM killer i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Tutorial for Python - Should I use 2.x or 3.0? Python 3.0 is in beta with a final release coming shortly. Obviously it will take some significant time for general adoption and for it to eventually replace 2.x.
I am writing a tutorial about certain aspects of programming Python. I'm wondering if I should do it in P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Pulling data out of quotes? I'm looking for a regex that can pull out quoted sections in a string, both single and double quotes.
IE:
"This is 'an example', \"of an input string\""
Matches:
*
*an example
*of an input string
I wrote up this:
[\"|'][A-Za-z0-9\\W]+[\"|']
It works but does anyone see any flaws ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Representational state transfer (REST) and Simple Object Access Protocol (SOAP) Can somebody explain what is REST and what is SOAP in plain english? And how Web Services work?
A: Both SOAP webservices and REST webservices can use the HTTP protocol and other protocols as well (just to mention SOAP can be the underl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "734"
} |
Q: Compile regex in PHP Is there a way in PHP to compile a regular expression, so that it can then be compared to multiple strings without repeating the compilation process? Other major languages can do this -- Java, C#, Python, Javascript, etc.
A: As another commenter has already said, PCRE regexes are already compi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Reading Guitar Hero or Rock Band Controllers from a PC The "instruments" that are used with Guitar Hero and Rock Band have USB connections. Is there any documentation or reverse-engineering info out there about how to read the messages they generate?
A: This message may be too old to be useful.
I was hacking aroun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: switch statement in linq My code for sql connection using linq is:
var query1 = from u in dc.Usage_Computers
where u.DomainUser == s3
select u; // selects all feilds from table
GridView1.DataSource = query1;
GridView1.DataBind();
I have a field called "Operation" in the table "Domainuser" which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: SQL Server 2005 - Restoring an encrypted DB on a different server I have backed up an encrypted DB (symmetric key/certificate) and
restored it on a different server.
Unfortuantely we're having problems with the decryption... hoping
someone can help.
In the restored db, I can see the Symmetric Key and the Certifi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Apache Virtual Host - xxx.241.214.xxx:80 has no VirtualHosts I'm trying to set up a virtual host on a new VPS using apache 2.x on a Ubuntu server.
When starting apache I get the error " xxx.241.214.xxx:80 has no VirtualHosts", and the url for the site still points to the default location which means my virtual host ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Giving a custom UserControl an ID in rendered HTML When I use a ASP:Calendar control, and give it an ID:
<asp:Calendar runat="server" ID="MyCal" />
It looks like this in the rendered html:
<table id="NameMangled_MyCal"... />
And I can access the element by ID in javascript like this:
var cal= document.getElementById... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Organisation of routes in Rails -- restful_authentication, session and /login I am struggling with the route setup for a Rails application. I have installed restful_authentication and mostly followed the instructions. I have set up the routes this way:
map.login '/login', :controller => 'sessions', :action => 'new'
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding entries in one MySQL table based on conditions on another table I've got a table of hardware and a table of incidents. Each hardware has a unique tag, and the incidents are tied to the tag.
How can I select all the hardware which has at least one incident listed as unresolved?
I can't just do a join, because... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Managing multiple persistence mechanisms I have a set of business objects that potentially can be persisted in different ways, although for any given configuration of the application, only one persistence mechanism will be active. Persistence is handled via interfaces.
The obvious architecture, it seems to me, is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Programmatically Inject JavaScript in PDF files? How to Programmatically Inject JavaScript in PDF files?
Can it be done without Adobe Professional?
My goal is: I want to show up the print dialog immediately when I open the PDF.
I know that this can be done with JavaScript code embedded in the document.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are semantics and syntax the same? What is the difference in meaning between 'semantics' and 'syntax'? What are they?
Also, what's the difference between things like "semantic website vs. normal website", "semantic social networking vs. normal social networking" etc.
A: A program that is syntactically correct will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: How can I give each
* its own bullet image? I have tried
<ul id="contact_list">
<li id="phone">Local 604-555-5555</li>
<li id="i18l_phone">Toll-Free 1-800-555-5555</li>
</ul>
with
#contact_list
{
list-style: disc none inside;
}
#contact_list #phone
{
list-style-image: url(images/small_wood_phone.p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Code / template generator for Java For C#, I have often used CodeSmith and lately the T4 generator which is part of Visual Studio.
I'm looking for something similar for Java, in particular an Eclipse add-in since I do all my Java development using the Eclipse IDE.
A: I've found that freemarker does a pretty good j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/209987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Resources for Kids Learning C# My 11 year old son is very interested in programming. He has been working with Scratch
for a couple years but has now outgrown it. I recently helped him install Visual C# Express Edition and he is very excited to work with it, but we're having a hard time finding good resources for him... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Suspending and notifying threads when there is work to do I have multiple threads (C# application running on IIS) running that all need to communicate with the same MQ backend. To minimize network traffic, I need to only send a backend request when there is work to be done. There will be one thread to monitor if t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamically Positioned Flex Components I have a requirement on my current project (a Flex app which will be run in Flash player) to display an arbitrary subset of the components on a form while hiding all the other components based on certain aspects of the application state. There are about a dozen different text ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Doxygen won't index my C++ source - why not? I have some C++ source code with templates maybe like this - doxygen runs without errors but none of the documentation is added to the output, what is going on?
///
/// A class
///
class A
{
///
/// A typedef
///
typedef B<C<D>> SomeTypedefOfTemplates;
};
A: Not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PowerBuilder Runtime Packager error: Linking Msi for PowerBuilder.NET runtime get an error I've just installed PowerBuilder 11.5. I'm trying to use the PowerBuilder Runtime Packager that comes with it to create an MSI with the PowerBuilder runtime DLLs. But when I hit create, about a third of the way through I get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Advanced Python FTP - can I control how ftplib talks to a server? I need to send a very specific (non-standard) string to an FTP server:
dir "SYS:\IC.ICAMA."
The case is critical, as are the style of quotes and their content.
Unfortunately, ftplib.dir() seems to use the 'LIST' command rather than 'dir' (and it uses... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Perl golf: Print the powers of a number What's the shortest Perl one-liner that print out the first 9 powers of a hard-coded 2 digit decimal (say, for example, .37), each on its own line?
The output would look something like:
1
0.37
0.1369
[etc.]
Official Perl golf rules:
*
*Smallest number of (key)strokes win... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best way to implement different views for a website based on role? In ASP.NET what's the best way to do the following:
*
*Show certain controls based on your rights?
*For a gridview control, how do you show certain columns based on your role?
I'm thinking for number 2, have the data come from a role... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WAV file auto repeat in C# I have a 10 second sound effect wave file. What I would like to do is take that file and repeat it n number of times and then save the longer WAV file to disk. This way I can create a much longer background effect rather than auto-repeat on the media player which is a bit stuttered between... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex greedy issue I'm sure this one is easy but I've tried a ton of variations and still cant match what I need. The thing is being too greedy and I cant get it to stop being greedy.
Given the text:
test=this=that=more text follows
I want to just select:
test=
I've tried the following regex
(\S+)=(\S.*)
(\S+)?=
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What IIS 6.0 setting determines how a path is resolved? I have a website that is deployed between 3 different environments - Dev, Stage, and Prod. For Stage and Prod, the site can resolve local paths to images with just the base url to the file, such as /SiteImages/banner.png. However, on the Dev server I have to ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why or How does FREETEXTTABLE give a rank value higher than others There is a store procedure that uses FREETEXTTABLE twice on two tables and then merges the results and returns the top 50.
The problem is if I do a search on "Women of Brewster", the results returns "Confession of an ex doofus motha" with a rank of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are Sql Triggers synchronous or asynchronous? I have a table that has an insert trigger on it. If I insert in 6000 records into this table in one insert statement from a stored procedure, will the stored procedure return before the insert trigger completes?
Just to make sure that I'm thinking correctly, the trigger ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Remove a symlink to a directory I have a symlink to an important directory. I want to get rid of that symlink, while keeping the directory behind it.
I tried rm and get back rm: cannot remove 'foo'.
I tried rmdir and got back rmdir: failed to remove 'foo': Directory not empty
I then progressed through rm -f, rm -r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1177"
} |
Q: What is the Debian Way to automatically fetch build dependencies under Debian or Ubuntu? I recently downloaded the source tarball for a GTK application that I'd like to improve. It uses the standard ./configure and make build sequence.
The first time through, configure reported a bunch of unmet build dependencies, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: For a typical Web 2.0 Social Application - Java vs C# For a product in long run (may be 0.5-1 million users) is it good to use java instead of .net from the cost/profitability perspective. To elaborate more..consider web farm scenario in which one will have to purchase windows + Sql server + some antivirus licenses ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any other useful attributes for c# properties?
Possible Duplicate:
Most Useful Attributes in C#
besides:
[DefaultValue(100)]
[Description("Some descriptive field here")]
public int MyProperty{get; set;}
What other C# Attributes are useful for Properties, after learning these I feel like I'm Missing out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Weird xml c# problem, does Vista cache program files? My c# program reads an xml file when it loads, my installer installs the program in %program files%\myapp. When I run my program it loads an old xml file and not the one found in its current folder, here is the weird bit, if I rename the myapp folder to myapp2 an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is a Swamp Diagram? Someone told me about swamp diagrams explaning that they were useful to predict code quality by measuring the rate of incoming defects and outgoing fixes on a given product.
Unfortunately, I am unable to find additional information on those diagrams and I am wondering if it is a jargon term ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I capture inputoutput parameter value after a Formview Insert template runs stored procedure in .NET 2.0? I have a formview that executes a insert stored procedure through a table adapter as normally done. Except when the insert fails a output parameter on the sp called error_msg is set to
"Insert failed be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to port from Drupal to Django? What would be the best way to port an existing Drupal site to a Django application?
I have around 500 pages (mostly books module) and around 50 blog posts. I'm not using any 3rd party modules.
I would like to keep the current URLS (for SEO purposes) and migrate database to Django. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Effect of NOLOCK hint in SELECT statements I guess the real question is:
If I don't care about dirty reads, will adding the with (NOLOCK) hint to a SELECT statement affect the performance of:
*
*the current SELECT statement
*other transactions against the given table
Example:
Select *
from aTable with (NO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/210171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "212"
} |