text string | meta dict |
|---|---|
Q: Any way to "reboot" the JVM? Is there any way to reboot the JVM? As in don't actually exit, but close and reload all classes, and run main from the top?
A: IBM's JVM has a feature called "resettable" which allows you to effectively do what you are asking.
http://publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: goto-file in Emacs Is there a substitute in emacs for the vi gf command?
I mean to open the file which is under the cursor right now, if a real file name is in fact there.
A: Thanks, it works quite well but somehow the vi (gf) version is
still somewhat smarter. I think it looks at some path variable for search path... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: How can you flush a write using a file descriptor?
It turns out this whole misunderstanding of the open() versus fopen() stems from a buggy I2C driver in the Linux 2.6.14 kernel on an ARM. Backporting a working bit bashed driver solved the root cause of the problem I was trying to address here.
I'm trying to figu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: How do I configure Emacs speedbar for C# mode? I'm using Emacs with C# Mode and when I turn on the speedbar, no files show up by default. I can choose "show all files" on the speedbar mode, but then every .cs file shows up with a '[?]' next to the name. How do I properly configure speedbar so it shows up with .c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Apache modrewrite .htaccess I want to be able to rewrite a URL from:
// examples
http://example.com/location/New York, NY -->
http://example.com/location/index.html?location=New York, NY
http://example.com/location/90210 -->
http://example.com/location/index.html?location=90210
http://example.com/location/Texas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Apache/.htaccess - password-protecting a domain but whitelisting certain URIs within it So here's what I'd like to do:
access to http://example.com/* would require the user to enter a username/password, except when they go to a certain URIs (e.g. http://example.com/contact/ , http://example.com/blog/, etc.) they sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling internal methods in Medium Trust I have the requirement to call an internal method of a 3rd party object (I cannot make it public for example). I can do that via reflection. Unfortunately this does not work in ASP.NET Medium trust due to insufficient rights:
<IPermission class="ReflectionPermission" version=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to display multiple widgets on the same page using MVC I'm a bit confused about how MVC works and I can't find anything but basic examples.
I want to make a kind of widget-based design; you can choose various widgets to go on your page. Each widget should be responsible for itself - it should have a controller ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What XMPP clients currently support PubSub (XEP-0060)? What end-user clients (not libraries) expose XMPP XEP-0060 to users right now?
A: tkabber
A: I'm not sure about Tkabber, but there are various clients that'll let you play with PubSub. None of them exposes innovative user interfaces that leverages the unique ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: changing "Tab Control" color How can I change the background color of a Tab Control. I changed the forms color, but the tabs stay the same.
Thanks.
A: Check the Back Style of the Tab Control. If it's Normal. you'll get a gray background (with normal Windows settings). If it's Transparent then it will inherit the b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Finding an IP address from an interface name On a Linux box, the common interface names look like eth0, eth1, etc. I know how to find at least one IP address using gethostbyname or similar functions, but I don't know any way to specify which named interface I want the IP address of. I could use ifconfig and parse th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I best display CheckBoxes in SQL Server Reporting Services? One of the many quirks of Reporting Services we've run across is the complete and utter lack of a CheckBox control or even something remotely similar.
We have a form that should appear automatically filled out based on information pulled from a datab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Reducing the restart time of IBM Websphere Application Server A Java web application that I'm working on requires that I restart the server fairly often in order to see the effects of my code changes. I have a local version of WAS 6.0 on my machine that I use to run the app. The server takes about 5-10 minutes to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio "Find" results in "No files were found to look in. Find stopped progress." Sometimes while developing in Visual Studio IDE, when you use "Find in Files" dialog to find something, the search fails and you will see the following message in the "Find Results" window.
No files were found to look in. Fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Database (and ORM) choice for an small-medium size .NET Application I have a requirement to develop a .NET-based application whose data requirements are likely to exceed the 4 gig limit of SQL 2005 Express Edition.
There may be other customers of the same application (in the future) with a requirement to use a speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Scaling strategies for Service Tiers on .NET I'm working on a web product that is composed of many modular web applications. To the end user, it appears to be one single application, though various components are broken out into their own apps.
Part of the reasoning for this is so that it can be easily scaled horizo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: record nodes and rankdir in graphviz When I changed the rankdir of my graph from LR to TD, my record nodes also changed their layout direction so they no longer look like a 'record'. I tried applying a separate rankdir to the nodes, but this had no effect.
How does one keep the record nodes with the correct layout?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Does Ruby have a stepwise debugger, similar to Perl's "perl -d"? Does Ruby have a stepwise debugger, similar to Perl's "perl -d"?
A: The ruby-debug (for ruby 1.8), debugger (for ruby 1.9), byebug (for ruby 2.0) and also the trepanning series all have an -x or --trace option. Inside the debuggers, the command set li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Problem with dynamically generated C# files in msbuild I have a source XML file that is used to create C# files that are then compiled as part of a project.
Currently I have a BeforeBuild target that runs my XML to C# converter.
The problem is that by the time the BeforeBuild step is run the old files appear to have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I add rich text editing support to a web site? I need some basic CMS functionality with rich text editing. On stack overflow there is a regular textarea edit control, with support for Markdown style syntax formatting. That would be beyond my users, so I want something like a rich edit control that you can typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jqGrid with JSON data renders table as empty I'm trying to create a jqgrid, but the table is empty. The table renders, but the data doesn't show.
The data I'm getting back from the php call is:
{
"page":"1",
"total":1,
"records":"10",
"rows":[
{"id":"2:1","cell":["1","image","Chief Scout","Highest Award test","0"]}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why is the storage for MSMQ full when the queues themselves are empty? A QA server of mine which has not given me any flack for a while started giving my applications errors because they could not write to a queue. MSMQ specifically threw a message saying "Insufficient resources to perform operation".
A check of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to extract frequency information from an input audio stream (using PortAudio)? I want to record sound (voice) using PortAudio (PyAudio) and output the corresponding sound wave on the screen. Hopeless as I am, I am unable to extract the frequency information from the audio stream so that I can draw it in Hz/time ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with and width In the following code, both the INPUT and TEXTAREA elements render wider than they should. How can I limit them to 100% of the usable area within the div?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to Use Same Models in Different Modules in Zend Framework? I am working on implementing Zend Framework within an existing project that has a public marketing area, a private members area, an administration site, and a marketing campaign management site. Currently these are poorly organized with the controller sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: PHP array_intersect() - how does it handle different types? If I've got an array of values that are basically zerofilled string representations of various numbers and another array of integers, will array_intersect() still match elements of different types?
For example, would this work:
$arrayOne = array('0003', '00... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Method to Serialize Objects from appserver to web server without code duplication I have a web-app-database 3 tier server setup. Web requests data from app, and app gets its data from the db then processes and returns it to web for display. Standard.
Currently all the data I serialize from app to web gets put into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to set text field on UILabel I have created UITableCellView class called NoteCell. The header defines the following:
#import <UIKit/UIKit.h>
#import "Note.h"
@interface NoteCell : UITableViewCell {
Note *note;
UILabel *noteTextLabel;
}
@property (nonatomic, retain) UILabel *noteTextLabel;
- (Note... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Should Software Testing really become a first-class concept at the academic level? Is Software Testing really given its importance at the academic level?
I believe there is a need in universities offering Software Engineering (and probably even Computer Science) to treat Software Testing as a separate course and top... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using nullable types in C# I'm just interested in people's opinions. When using nullable types in C# what is the best practice way to test for null:
bool isNull = (i == null);
or
bool isNull = !i.HasValue;
Also when assigning to a non-null type is this:
long? i = 1;
long j = (long)i;
better than:
long? i = 1;
lon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: WCF Lifecycle Events Is there an event that fires when a WCF service gets started or shut down? Hopefully, independent of whether it is self hosted or hosted in IIS?
A: ServiceHost exposes quite a few events:
http://msdn.microsoft.com/en-us/library/system.servicemodel.servicehost_events.aspx
You could hook into th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to share ONE file with strings between ASPX, C# and JavaScript? I'd like to externalize all of the strings used in the project into one file and be able to use it inside aspx, C# code behind and on the client side in JavaScript.
The reason I want to do it is because many strings are shared, i.e. the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I query for foreign keys that don't match their constraints? SQL Server 2005.
I'm adding Foreign Key constraints to the database of an application that allegedly didn't need them. Naturally, the data has become unreliable and there are orphaned entries in the foreign key field.
Setup:
Two tables, TableUser a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Credit card payments and notifications on the Google App Engine I ported gchecky to the google app engine. you can try it here
It implements both level 1 (cart submission) and level 2 (notifications from google checkout).
Is there any other payment option that works on the google app engine (paypal for example) and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to avoid duplicating logic on two similar WinForms? I have two forms, form A and form B. These forms must differ in appearance, but they share a lot of logic. The problem is that this logic is tied to the appearance (validation on button click, events being fired, etc.). For example, I have a name field, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problem using LINQ to SQL with one DataContext per atomic action I have started using Linq to SQL in a (bit DDD like) system which looks (overly simplified) like this:
public class SomeEntity // Imagine this is a fully mapped linq2sql class.
{
public Guid SomeEntityId { get; set; }
public AnotherEntity Relat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I find a model's relationships? I want to, when given a particular model, return all the related models it is associated with. For example:
class Dog < ActiveRecord::Base
has_many :bones
belongs_to :master
end
d = Dog.first
d.associations #<== should return [Bone, Master]
Is there a way to do this alr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: IDataReader empties when viewing for a second time I'm getting something pretty strange going on when trying to read some data using the MySql .net connector. Here's the code:
IDataReader reader = null;
using (MySqlConnection connection = new MySqlConnection(this.ConnectionString))
{
String getSearch = "select ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Redirects to default.aspx instead of "xxx.aspx" after logging into app using login control Thanks for going to answer my question. I have the folowing pages.
*
*login.aspx
*default.aspx
*xxx.aspx
After logging into application default.aspx will be displayed. Now if the user is trying to open http://server/xxx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# version of __FUNCTION__ macro Does anyone has a good solution for a C# version of the C++ __FUNCTION__ macro? The compiler does not seem to like it.
A: What I currently use is a function like this:
using System.Diagnostics;
public string __Function() {
StackTrace stackTrace = new StackTrace();
return st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: doesn't work on IE7 It seems that the following piece of HTML is ignored in IE7 but works ok in IE6/FF. It supposes to override all the html links to be opened in the desired frame
<HEAD>
<title>LeftPane</title>
<base target="rightFrame">
</HEAD>
The above code is the header of a left frame that holds an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apache cannot initialize Passenger. Broken pipe (32) when connecting to Application Pool I have installed Phusion Passenger 2.0.3 on Apache 2.2.3 on Centos 2.6.18-92.el5 #1 SMP and I am getting the following on the httpd error log
Cannot initialize Passenger in an Apache child process: Could not connect to the Appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How Does MySQL Store Enums? If I have a table like this:
CREATE TABLE sizes (
name ENUM('small', 'medium', 'large')
);
Is MySQL going to store those strings in every row, or internally will it use something smaller like integers to know which enum value to refer to?
I want to use an enum in a table but I'm worr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Eliminating Windows forms refresh artifacts We have a fairly complicated GUI in windows forms using C# and .Net 2.0. My problem is that whenever I drag any window over the GUI, it leaves artifacts over the form. I can't for the life of me figure out how to eliminate it. I've tried enabling double buffering, but it o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TCP is it possible to achieve higher transfer rate with multiple connections? Is it possible to achieve better data transfer rate with multiple parallel TCP connections in high-latency environment (public internet with large geographical distance assuming no traffic shaping per connection or stuff like that) or can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Switching between visible applications in Windows CE 5, Lang: C++ I'm an old hand at embedded programming but new to CE and having a lot of trouble doing reasonably simple things, because I am not familiar with the API and struggling to understand the obscure MSDN docs.
All I want to do is minimize and maximise two ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Strengths and weaknesses of XmlBlaster Are/were you using XmlBlaster? What do you think about it? What are its weaknesses and strengths?
A: What are your requirements? Discussing middleware without concrete requirements is a bit like comparing apples to oranges.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/259563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JFileChooser embedded in a JPanel I am writing a java program that needs a file open dialog. The file open dialog isn't difficult, I'm hoping to use a JFileChooser. My problem is that I would like to have a dual pane JFrame (consisting of 2 JPanels). The left panel would have a JList, and the right panel would ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to bind controls to the DataGridView I'm new to .NET, so please be patient with me ;)
On my Windows Form, I have a DataGridView that is bound to a data source. Since my grid is read-only, I have a set of controls (textbox, checkbox, etc.) outside the grid that will be used to edit the data.
I want the controls t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it safe to make an old-style class into a new-style class using Multiple Inheritance? In a program that I'm writing, I wanted to make a ConfigParser that's read only so that it can safely be used globally. I didn't realize this, but apparently the SafeConfigParser is an old-style class, thus I had to subclass it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: spring beans and sessionFactory in different xml files We have 3 applications using 3 different spring configuration files. But we have one database and one datasource, so one session factory.Hhow can we import the session factory bean into the 3 different spring config files?
A: Configure your SessionFactory in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Page View Counter - Database Setup and Technique/Strategy I am developing a page view counter to track the amount of views a page is having on our site and displaying it to the user. (I asked an intro question before: Page View Counter like on StackOverFlow).
Using the recommendations, I developed a httpHandler whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is this the correct step-by-step and organization for creating an SVN repo with multiple projects and vendors? I've read quite a bit of the Red Bean Software SVN Book, and some of the questions here on SO, but I want to make sure I'm going about this in the right way the first time around step-by-step before I begin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How big are various CLR runtimes? I'm considering migrating a project to managed code, but I've heard that the .NET runtime is huge--several times larger than my executable binary, in fact. That just seems like the tail wagging the dog to me. But I've also been told that some CLR implementations, such as Mono, are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unobtrusive javascript with jquery - good 10 minute tutorial? I'm looking for a good 10 minute introduction to Unobtrusive Javascript using JQuery. I'm completely new to the concept, and I'd like to see how the event binding and such works.
As some background, I'm looking to do a "remove this tag" system similar to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to attach HTML file to email using content taken from DB in PHP? How do I send mail via PHP with attachment of HTML file? -> Content of HTML file (code) is in string in DB. Is there some easy way or free script to do this? I don't want to store the file localy, I need to read it out of DB and send it straightawa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Splitting a person's name into forename and surname ok so basically I am asking the question of their name
I want this to be one input rather than Forename and Surname.
Now is there any way of splitting this name? and taking just the last word from the "Sentence" e.g.
name = "Thomas Winter"
print name.split()
and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Is there danger of corruption in SQL Server 2000 databases when using SQL Server 2005 Management Studio? In an interview for a SQL DBA position a while back, I mentioned I prefer the SQL 2005 Management Studio app vs. the old 2000 versions of Enterprise Manager / Query Analyzer. The DBA who was interviewing me said ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Selecting attribute of ancestor; "../.." works, "ancestor::" doesn't I'm running through an XML document, selecting all the elements, and creating links based on the ancestor which is usually two nodes up in the tree, but occasionally 3 or 4 nodes up. For the majority of the elements, using <xsl:value-of select=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Painless 'Analysis of Algorithms' Training? I had a painful experience with the "Analysis of Algorithms" classes back in college but have recently found a need for it in the real world. -- Anyway, I'm looking for a simple-yet-effective crash course. Any ideas?
Related Sidenote: It sure would be nice if there were... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: VBA password protection: how it works? is it secure? are there any alternatives? In case one wants to protect VBA applications to make trial(demo) versions and not to expose the scripts, how secure the built in password protection is? Are there any alternatives?
Edit: I'm asking about Excel VBA here.
A: Your passwo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to share Delphi source files among projects? What is the best way to share Delphi source files among projects?
Clarification: We want to use a single source file in multiple Delphi projects. We've been using our SCM tool to put the same file into multiple folders, but this is not a super-elegan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: stopping a function executed on a winform button click
*
*In a simple winform application, I call a function that endlessy create files on a button click event. I add Application.DoEvents() to the loop.
*I press the red X to close the form.
*the form closes, but files continue to be created ...
I think its on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I share DAL and BLL across multiple .NET applications? I need to create several applications that all share a Microsoft SQL Server database. These include ASP.NET web applications, WPF desktop applications, and probably the odd console app every now and then.
I'd like to use the ADO.NET Entity Framework for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the simplest way to implement mouseover background color change for HTML elements? I the following styles:
a.button {
background-color: orange;
margin: .2cm;
padding: .2cm;
color: black;
font-family: sans-serif;
text-decoration: none;
font-weight: bold;
border: solid #000000;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Turn OFF self-closing tags in SimpleXML for PHP? I'm building an XML document with PHP's SimpleXML extension, and I'm adding a token to the file:
$doc->addChild('myToken');
This generates (what I know as) a self-closing or single tag:
<myToken/>
However, the aging web-service I'm communicating with is tripping all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I fail to deserialize with XmlSerializer in C# if an element is not found? I am using XmlSerializer to write and read an object to xml in C#. I currently use the attributes XmlElement and XmlIgnore to manipulate the serialization of the object.
If my xml file is missing an xml element that I require, my object ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Exposing inherited members of a COM vb.net class I have two vb.net class:
Public MustInherit Class Class1
Private m_sProperty1 As String = ""
Public Property sProperty1() As String
Get
Return m_sProperty1
End Get
Set(ByVal value As String)
m_sProperty1 = value
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript function to match only Google URLs Need a function like:
function isGoogleURL(url) { ... }
that returns true iff URL belongs to Google. No false positives; no false negatives.
Luckily there's this as a reference:
.google.com .google.ad .google.ae .google.com.af .google.com.ag .google.com.ai .google.am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Inner div exceeds outer div boundaries I can't get the inner div (with Hello World) to fit inside the "box" div in this code example (also at http://www.toad-software.com/test.html).
Despite the body being set to 100%, the inner div will not be contained! This is a test case for a larger project in which a variable-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: AJAX - Do I need to return a full HTML document on the server side? I am using JQuery to post with AJAX to another ASP page. Do I need this ASP page to return a full html page. Or can I just have it send back a value ( I just need a status ) . Here is my function.
$.ajax({
url: "X.asp",
cache: false,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Changing DataGridViewRow Properties in Another Thread Ok, so I'm binding a DataGridView to a BindingSource in a background thread while a little, "Please Wait" model window keeps the user entertained. No problem.
However, I need to change some of the rows background colors based on the row's databounditem type. Li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Client side image caching with ASP.Net This is really two questions, first, do browsers normally cache images on the client by default or does the server have to indicate that they can be cached?
Second, given that I do not have access to IIS what can I do in an ASP application to improve client side caching of imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does Python 2.5 include a package to natively transform an XML document? In my Python app, I have an XML document that I'd like to transform using my XSL file. I'm currently using xml.etree to generate the XML document, but I haven't found anything within Python 2.5 that will allow me to natively transform my XML d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What libraries need to be linked for timer_create, timer_settime and other timer related functions Compiling a program on Linux that calls POSIX timer functions (eg: timer_create, timer_settime) returns errors such as:
In function `foo':
timer.c:(.text+0xbb): undefined reference to `timer_create'
timer.c:(.text+0x1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Parameterized CREATE VIEW possible? I've got a (SQL Server 2005) database where I'd like to create views on-the-fly. In my code, I'm building a CREATE VIEW statement, but the only way I can get it to work is by building the entire query string and running it bare. I'd like to use parameters, but this:
SqlCommand c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a built in .NET exception that indicates an illegal object state? What exception should I throw if I encounter an illegal state - for instance, an initialization method that should only be called once being called a second time? I don't really see any built-in exception that makes sense. This seems like s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: What is the best messaging server for communicating across java and .net? We've been using jbossmq and csil. The implementation has been successful in production for 6 years, but I'm wondering if something better is available.
One issue is jbossmq's thread per client model, and scheduled end of life. Another is csil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is T-SQL Stored Procedure Execution 'atomic'? Let's say I have a simple stored procedure that looks like this (note: this is just an example, not a practical procedure):
CREATE PROCEDURE incrementCounter AS
DECLARE @current int
SET @current = (select CounterColumn from MyTable) + 1
UPDATE
MyTable
SET
Count... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: ASP.NET 3.5 Web Application on media support (CD-ROM) We have a fairly complex web application (.NET 3.5) that need to be launched from a CD-ROM (or DVD, or from an USB key).
I'm thinking of using Cassini and SqlCe for the database (we use LinqToSql for data access, so I think it's the only choice without rewriting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I show the keyboard by default in UITextView? I want to create a view that consists solely of a UITextView. When the view is first shown, by default, I'd like the keyboard to be visible and ready for text entry. This way, the user does not have to touch the UITextView first in order to begin editing.
Is this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: What is the best way to convert TBytes (UTF-16) to a string? What is the best way to convert an array of bytes declared as TBytes to a unicode string in Delphi 2009? In my particular case, the TBytes array has UTF-16 encoded data already (2 bytes for each char).
Since TBytes doesn't store a null terminator, the foll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Best way to make sure correct version of file is deployed? The company I work for writes a lot smallish Perl and Bash scripts to massage data into something usable for our software. These scripts, like any code, can change. I provided them CVS because of the file versioning rather than repository versioning. Anyw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What kinds of things can be done to improve the tagging functionality on a website? I have rough ideas - like dealing with singular/plural, two or more words/phrases that mean the same thing, misspellings, etc. But I'm not sure of any patterns or rules of thumb for dealing with these, either programatically and auto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Javascript - multiple client-side validations on same event I am performing two validations on the client side on the samve event.
I have defined my validations as shown below
btnSearch.Attributes["OnClick"] = "javascript:return prepareSave(); return prepareSearch();"
Pseudo code for
prepareSave():
{
if (bPendin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best signature for clone() in C++? As Scott Myers wrote, you can take advantage of a relaxation in C++'s type-system to declare clone() to return a pointer to the actual type being declared:
class Base
{
virtual Base* clone() const = 0;
};
class Derived : public Base
{
virtual Derived* clone() co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Oracle single-table constant merge with CLOB using JDBC As a follow-up to this question, I need help with the following scenario:
In Oracle, given a simple data table:
create table data (
id VARCHAR2(255),
key VARCHAR2(255),
value CLOB);
I am using the following merge command:
merge into d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: strip out tag occurrences from XML I'd like to strip out occurrences of a specific tag, leaving the inner XML intact. I'd like to do this with one pass (rather than searching, replacing, and starting from scratch again). For instance, from the source:
<element>
<RemovalTarget Attribute="Something">
Conte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to bind a label inside a gridview to another table? I have a very standard Gridview, with Edit and Delete buttons auto-generated.
It is bound to a tableadapter which is linked to my RelationshipTypes table.
dbo.RelationshipTypes:
ID, Name, OriginConfigTypeID, DestinationConfigTypeID
I wish to use a label that w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I copy a WPF resource in xaml? I want to assign a resource I already have a second name, similar to using the BasedOn property of Styles. Specifically I have a brush that I use for a group of elements called ForegroundColor and I would like to use it in a control template (a ComboBox) calling it MouseOverBack... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What style do you use for exception messages? In writing the code that throws the exception I asked about here, I came to the end of my message, and paused at the punctuation. I realized that nearly every exception message I've ever thrown probably has a ! somewhere.
throw new InvalidOperationException("I'm not con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Swing components : vertical text question If I have a button like the one in this image :
http://www.freeimagehosting.net/image.php?4cd775814c.png
how could I make the text display itself vertically ? As in
j
B
u
t
t
o
n
1
I would like to know how to do the same thing for JLabel . I'm sure there has to be a bette... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: OpenGL glDrawPixels on dynamic 3D arrays How do you draw the following dynamic 3D array with OpenGL glDrawPixels()?
You can find the documentation here: http://opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/drawpixels.html
float ***array3d;
void InitScreenArray()
{
int i, j;
int screenX = sce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How password protection of Excel VBA code works? This question is related to my previous one.
Can you explain or provide a link to an explanation of how Excel VBA code password protection actually works in versions prior to 2007? What is the difference in Excel 2007 and previous versions in terms of password protect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: .NET bug when converting float to integer? Check it out: this little .NET Console Program yields interesting results...notice how I'm converting a float to an integer in two different ways:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CastVsConvert
{
class Prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NHibernate Joined Subclass in Separate Assemblies I have the following solution project structure:
Application.Core.Entities
Application.Xtend.CustomerName.Entities
In the Core project I have an entity Customer defiend. In the XTend project, I have an entity defined that subclasses Customer named xCustomer (for la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Will C#4.0 dynamic objects have some facility for duck typing? In C#4.0 we're going to get dynamic types, or objects whose "static type is dynamic", according to Anders. This will allow any method invocation resolution to happen at runtime rather than compile time. But will there be facility to bind the dynamic obje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: UI and platform choices for developing desktop widgets I've been asked to build 'widgets' that let users of a web application install a desktop, or web-based widget which will provide:
*
*Notifications of new content.
*Personalized access to key performance indicators
I'm looking for some information to inform... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio 2008, no longer see the Refresh item on right click I used to be able to right click Folders in my project and click 'refresh' to refresh the files within them, I don't see the option to do this any more, how do I fix it? The same thing has happened at work and at home.. has it always been like this an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: n-tier object mapping help Wondering if my approach is ok or could be improved:
Public Class Company
private _id as Integer
private _name as String
private _location as String
Public Function LoadMultipleByLocation(Byval searchStr as String) as List(Of Company)
'sql etc here to build the list
End F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/259941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |