instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
Alright, currently I have my SWF hitting a php file that will go and find all the files I specify to it, add their sizes together and return their combined sizes as one number. I then use this number with a ProgressEvent listener to determine the current percentage of files downloading for that particular section of th... | To achieve a 0 to 100% preloader in Flash (SWF) while avoiding the use of an external PHP script, you have a few options, though they come with certain limitations and trade-offs.
### 1. **HTTP HEAD Requests**
If the server you are downloading from supports it, you can use an HTTP HEAD request to retrieve the `Content... | 5,807 | [
{
"from": "human",
"value": "Alright, currently I have my SWF hitting a php file that will go and find all the files I specify to it, add their sizes together and return their combined sizes as one number. I then use this number with a ProgressEvent listener to determine the current percentage of files down... |
I have a Glade GUI description file with a GtkTreeView in a GtkHBox in a window; and there's a handler for the row_activated signal. Now, Glade has automatically set the "events" property (inherited from GtkWidget) of that treeview to some value (GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS... | The `events` property in GTK, specifically for widgets like `GtkTreeView`, controls which types of events (such as mouse movements, button presses, etc.) the widget listens to. Setting this property essentially tells the GTK framework to notify your application about those specific events, allowing it to respond to use... | 7,915 | [
{
"from": "human",
"value": "I have a Glade GUI description file with a GtkTreeView in a GtkHBox in a window; and there's a handler for the row_activated signal. Now, Glade has automatically set the \"events\" property (inherited from GtkWidget) of that treeview to some value (GDK_POINTER_MOTION_MASK | GDK_... |
Right now I'm developing mostly in C/C++, but I wrote some small utilities in Python to automatize some tasks and I really love it as language (especially the productivity).
Except for the performances (a problem that could be sometimes solved thanks to the ease of interfacing Python with C modules), do you think it i... | Python is indeed suitable for production use in developing standalone complex applications, including applications like word processors or graphic tools. Here are some key points to consider when using Python for such projects:
### Advantages of Using Python:
1. **Rapid Development**: Python allows for faster develop... | 7,504 | [
{
"from": "human",
"value": "Right now I'm developing mostly in C/C++, but I wrote some small utilities in Python to automatize some tasks and I really love it as language (especially the productivity). \nExcept for the performances (a problem that could be sometimes solved thanks to the ease of interfacing... |
Anyone know how to do picture overlay or appear on top of each other in HTML? The effect will be something like the marker/icon appear on Google Map where the user can specify the coordinate of the second picture appear on the first picture.
Thanks.
| To achieve a picture overlay effect in HTML, similar to how markers work on a map, you can use CSS for positioning elements. Below is a simple example of how to overlay one image on top of another and allow you to specify the coordinates for the overlay image.
### Example Code
```html
<!DOCTYPE html>
<html lang="en">... | 8,453 | [
{
"from": "human",
"value": "Anyone know how to do picture overlay or appear on top of each other in HTML? The effect will be something like the marker/icon appear on Google Map where the user can specify the coordinate of the second picture appear on the first picture.\nThanks.\n"
},
{
"from": "gpt... |
I'm trying to skin HTML output which I don't have control over. One of the elements is a div with a style="overflow: auto" attribute.
Is there a way in CSS to force that div to use overflow: hidden;?
| Yes, you can override the `overflow: auto;` style applied to the `<div>` by using CSS. To do this, you'll need to ensure that your rule has a higher specificity or is applied after the original style. There are a couple of ways to achieve this:
### 1. Using More Specific Selectors
You can increase the specificity of y... | 9,706 | [
{
"from": "human",
"value": "I'm trying to skin HTML output which I don't have control over. One of the elements is a div with a style=\"overflow: auto\" attribute.\nIs there a way in CSS to force that div to use overflow: hidden;?\n"
},
{
"from": "gpt",
"value": "Yes, you can override the `over... |
What is the difference between display:block and display:inline
| In CSS, the `display` property controls the layout behavior of elements. Two common values for the `display` property are `block` and `inline`, and they behave quite differently:
### `display: block;`
1. **Block-level Elements**: Elements that are set to `display: block;` are known as block-level elements. They take ... | 9,387 | [
{
"from": "human",
"value": "What is the difference between display:block and display:inline\n"
},
{
"from": "gpt",
"value": "In CSS, the `display` property controls the layout behavior of elements. Two common values for the `display` property are `block` and `inline`, and they behave quite diff... |
I was listening to a recent episode of Hanselminutes where Scott Hanselman was discussing accessibility in web applications and it got me thinking about accessibility in my own applications.
We all understand the importance of semantic markup in our web applications as it relates to accessibility but what about other s... | Improving accessibility for users with visual impairments is essential for creating an inclusive web experience. Here are some practical strategies and enhancements that can make a significant difference in your applications:
1. **Skip Navigation Links**: As you mentioned, providing "Skip to main content" links allows... | 3,017 | [
{
"from": "human",
"value": "I was listening to a recent episode of Hanselminutes where Scott Hanselman was discussing accessibility in web applications and it got me thinking about accessibility in my own applications.\nWe all understand the importance of semantic markup in our web applications as it relat... |
We have a requirement to build a tool for users in an Intranet scenario.
The tool should check how much percentage of the Mailbox Quota (set in Active Directory) is being used.
Currently, they can check their Folder size using Outlook 2003 but this does not show the Quota Limit set for them or the percentage being use... | Creating a C# application that checks the mailbox quota and usage percentage requires using the Exchange Web Services (EWS) or the Microsoft Graph API, depending on your email infrastructure. However, if you're working in an intranet scenario, you might be interacting with an on-premises Exchange Server.
Below is a sa... | 7,747 | [
{
"from": "human",
"value": "We have a requirement to build a tool for users in an Intranet scenario. \nThe tool should check how much percentage of the Mailbox Quota (set in Active Directory) is being used.\nCurrently, they can check their Folder size using Outlook 2003 but this does not show the Quota Lim... |
I'm responsible for some test database servers. Historically, too many other poeple have access to them. They run on SQL Server 2005.
I've been writing queries and wrapping them in scripts so I can run a regular audit of rights. Finding out which users had Administrator rights on the server itself was fine, as was... | To find out which logins have user mappings to a specific database in SQL Server 2005, you can query the system catalog views. You can use the `sys.database_principals` and `sys.server_principals` tables to join the relevant information.
Here's a query that will help you identify the logins that have user mappings to ... | 6,000 | [
{
"from": "human",
"value": "I'm responsible for some test database servers. Historically, too many other poeple have access to them. They run on SQL Server 2005. \nI've been writing queries and wrapping them in scripts so I can run a regular audit of rights. Finding out which users had Administrator ri... |
I'm currently working on a parser for our internal log files (generated by log4php, log4net and log4j). So far I have a nice regular expression to parse the logs, except for one annoying bit: Some log messages span multiple lines, which I can't get to match properly. The regex I have now is this:
(?<date>\d{2}/\d{2}/\d... | It looks like you're trying to match log entries that may span multiple lines, while also ensuring that you don't inadvertently capture the date and time of the next log entry in your current message. Given the patterns of the log entries you're working with, we can refine your regular expression to handle multiline lo... | 6,678 | [
{
"from": "human",
"value": "I'm currently working on a parser for our internal log files (generated by log4php, log4net and log4j). So far I have a nice regular expression to parse the logs, except for one annoying bit: Some log messages span multiple lines, which I can't get to match properly. The regex I... |
What are the alternative's to using the iThenticate service for content comparison?
| There are several alternatives to iThenticate for content comparison and plagiarism detection. Here are some notable options:
1. **Turnitin**: Widely used in educational institutions, Turnitin checks submitted work against a large database of student papers, academic publications, and web content to identify potential... | 9,168 | [
{
"from": "human",
"value": "What are the alternative's to using the iThenticate service for content comparison?\n"
},
{
"from": "gpt",
"value": "There are several alternatives to iThenticate for content comparison and plagiarism detection. Here are some notable options:\n\n1. **Turnitin**: Wide... |
I plan to be storing all my config settings in my application's app.config section (using the ConfigurationManager.AppSettings class). As the user changes settings using the app's UI (clicking checkboxes, choosing radio buttons, etc.), I plan to be writing those changes out to the AppSettings. At the same time, while t... | It sounds like you've done your due diligence in evaluating how to handle configuration settings in your Windows Forms application, especially with respect to performance. Here's a summary of key points to consider regarding your approach to using `Properties` and `ConfigurationManager` for managing settings in a real-... | 4,606 | [
{
"from": "human",
"value": "I plan to be storing all my config settings in my application's app.config section (using the ConfigurationManager.AppSettings class). As the user changes settings using the app's UI (clicking checkboxes, choosing radio buttons, etc.), I plan to be writing those changes out to t... |
In VB.NET I'm drawing an ellipse using some code like this.
aPen = New Pen(Color.Black)
g.DrawEllipse(aPen, n.boxLeft, n.boxTop, n.getWidth(), n.getHeight)
But I want to set the thickness of the line. How do I do it? Is it a property of the Pen or an argument to the DrawEllipse method?
(NB : For some reason, the he... | In VB.NET, the thickness of the line drawn with a `Pen` is set as a property of the `Pen` object itself. When you create a new `Pen`, you can specify the width (thickness) as a parameter in the constructor. Here's how you can set the thickness of the line when drawing an ellipse:
```vb.net
' Create a new Pen with a sp... | 11,454 | [
{
"from": "human",
"value": "In VB.NET I'm drawing an ellipse using some code like this. \n aPen = New Pen(Color.Black)\n g.DrawEllipse(aPen, n.boxLeft, n.boxTop, n.getWidth(), n.getHeight)\n\nBut I want to set the thickness of the line. How do I do it? Is it a property of the Pen or an argument to the Draw... |
I have a table y Which has two columns a and b
Entries are:
a b
1 2
1 3
1 4
0 5
0 2
0 4
I want to get 2,3,4 if I search column a for 1, and 5,2,4 if I search column a.
So, if I search A for something that is in A, (1) I get those rows, and if there are no entries A for given value, give me the 'Def... | To achieve the desired functionality in a single query, you can use a combination of a `UNION` statement and a `COALESCE` function to prioritize your search for the value in column `a`. If that value does not exist, you can then fall back to the default rows where `a = 0`.
Here’s an SQL query that accomplishes this:
... | 8,793 | [
{
"from": "human",
"value": "I have a table y Which has two columns a and b\nEntries are:\na b\n\n1 2\n\n1 3\n\n1 4\n\n0 5\n\n0 2\n\n0 4\n\nI want to get 2,3,4 if I search column a for 1, and 5,2,4 if I search column a.\nSo, if I search A for something that is in A, (1) I get those rows, and i... |
The application I'm writing is almost complete and I'd like people who speak different languages to use it.
I'm not sure where to start, what's the difference between globalisation and culture in regards to programming?
How does one take uncommon phrases such as "this application was built to do this and that" instead ... | Globalization and localization are key concepts when it comes to making applications accessible to users who speak different languages. Here’s a breakdown of the two concepts, along with some guidance on how to approach translating uncommon phrases in your application:
### Globalization vs. Localization
1. **Globaliz... | 6,049 | [
{
"from": "human",
"value": "The application I'm writing is almost complete and I'd like people who speak different languages to use it.\nI'm not sure where to start, what's the difference between globalisation and culture in regards to programming?\nHow does one take uncommon phrases such as \"this applica... |
I've created my own application in VB.NET that saves its documents into a file with it's own custom extension (.eds).
Assuming that I've properly associated the file extension with my application, how do I actually handle the processing of the selected file within my application when I double click on the file in File ... | To handle the opening of a file with your custom extension (.eds) when it's double-clicked in File Explorer, you will need to process command line arguments in your VB.NET application. When your application is associated with a file type, Windows will pass the file path as a command line argument to your application's ... | 5,715 | [
{
"from": "human",
"value": "I've created my own application in VB.NET that saves its documents into a file with it's own custom extension (.eds).\nAssuming that I've properly associated the file extension with my application, how do I actually handle the processing of the selected file within my applicatio... |
I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross platform.
my main goal is to create a .deb package for debian/ubu... | Creating a .deb package for your Python application with a GTK GUI involves several steps, and while `distutils` is typically used for building Python packages, you'll be better off using `setuptools` along with Debian packaging tools to create a .deb file.
### Step-by-Step Guide to Creating a .deb Package
1. **Insta... | 6,466 | [
{
"from": "human",
"value": "I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it's just a GUI frontend for a command line app it only works in *nix anyway so I'm not worried about it being cross platform.\nmy main goal ... |
When compiling my C++ .Net application I get 104 warnings of the type:
Warning C4341 - 'XX': signed value is out of range for enum constant
Where XX can be
WCHAR
LONG
BIT
BINARY
GUID
...
I can't seem to remove these warnings whatever I do. When I double click on them it takes me to a part of my code that uses OdbcPa... | The warning C4341 in C++ is generated when an integer value that is out of the range of the underlying type of an enum constant is assigned, resulting in potential data loss. In your case, it seems that these warnings are being triggered by code that uses `OdbcParameters`, which is part of the ODBC API.
Here are a few... | 7,179 | [
{
"from": "human",
"value": "When compiling my C++ .Net application I get 104 warnings of the type:\nWarning C4341 - 'XX': signed value is out of range for enum constant\n\nWhere XX can be\n\nWCHAR\nLONG\nBIT\nBINARY\nGUID\n...\n\nI can't seem to remove these warnings whatever I do. When I double click on t... |
Ok thanks for the 1st guy I found the code.
Machine.Migrations: I mean, the data schema/data migration framework.
I mean, the one mentioned here:
http://blog.eleutian.com/2008/04/25/AFirstLookAtMachineMigrations.aspx
Ok so somebody had used it? I think I would like to have such framework in my project (I have been usin... | Machine.Migrations is a framework for managing database migrations in a systematic way, somewhat akin to what Rails provides for its Active Record migrations. While it may not be as widely adopted as some other migration tools, it does provide a structured approach to handle changes in your data schema over time.
If y... | 8,512 | [
{
"from": "human",
"value": "Ok thanks for the 1st guy I found the code.\nMachine.Migrations: I mean, the data schema/data migration framework.\nI mean, the one mentioned here:\nhttp://blog.eleutian.com/2008/04/25/AFirstLookAtMachineMigrations.aspx\nOk so somebody had used it? I think I would like to have s... |
Considering "private" is the default access modifier for class Members, why is the keyword even needed?
| In many programming languages, such as Java and C#, the default access modifier for class members (like fields, methods, etc.) is indeed "private." However, the use of the keyword "private" (or other access modifiers) serves several important purposes:
1. **Clarity and Explicitness**: While the default access level ma... | 10,563 | [
{
"from": "human",
"value": "Considering \"private\" is the default access modifier for class Members, why is the keyword even needed?\n"
},
{
"from": "gpt",
"value": "In many programming languages, such as Java and C#, the default access modifier for class members (like fields, methods, etc.) i... |
Does anyone know of an RTF control that can be used on Linux/Windows/Mac? It's unfortunate that I have to mention it, but it actually has to be able to save and open rtf files... unlike wxWidgets wxRichTextCtrl for instance.
Edit: Thanks to HappySmileMan for his reply. Better still if it's more of a standalone and not ... | Finding a cross-platform RTF control that meets all your requirements can be challenging, but here are a few suggestions you might consider:
1. **Qt Rich Text Framework**: Qt is a well-known cross-platform application framework that has support for rich text. The `QTextDocument` class can handle RTF files, allowing yo... | 3,693 | [
{
"from": "human",
"value": "Does anyone know of an RTF control that can be used on Linux/Windows/Mac? It's unfortunate that I have to mention it, but it actually has to be able to save and open rtf files... unlike wxWidgets wxRichTextCtrl for instance.\nEdit: Thanks to HappySmileMan for his reply. Better s... |
When I log into a remote machine using ssh X11 forwarding, Vista pops up a box complaining about a process that died unexpectedly. Once I dismiss the box, everything is fine. So I really don't care if some process died. How do I get Vista to shut up about it?
Specifically, the message reads:
sh.exe has stopped work... | It looks like you're encountering an issue with the Cygwin shell (`sh.exe`) when using SSH with X11 forwarding on Windows Vista, which is causing an application crash notification to pop up. While this kind of error can be frustrating, there are a few approaches you can take to potentially suppress the error dialog or ... | 4,066 | [
{
"from": "human",
"value": "When I log into a remote machine using ssh X11 forwarding, Vista pops up a box complaining about a process that died unexpectedly. Once I dismiss the box, everything is fine. So I really don't care if some process died. How do I get Vista to shut up about it?\n\nSpecifically,... |
How to center text over an image in a table cell using javascript, css, and/or html?
I have an HTML table containing images - all the same size - and I want to center a text label over each image. The text in the labels may vary in size. Horizontal centering is not difficult, but vertical centering is.
ADDENDUM: i did ... | To center text over an image in a table cell both horizontally and vertically, you can use CSS along with a bit of HTML structure. Below, I'll provide a solution that utilizes CSS for positioning, which should work reliably without needing JavaScript.
### HTML Structure:
You can wrap the image and the text in a contai... | 6,574 | [
{
"from": "human",
"value": "How to center text over an image in a table cell using javascript, css, and/or html?\nI have an HTML table containing images - all the same size - and I want to center a text label over each image. The text in the labels may vary in size. Horizontal centering is not difficult, b... |
The XML Schema Part 2 specifies that an instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0}.
The following XML, for example, when deserialized, sets the boolean property "Emulate" to true.
<root>
<emulate>1</emulate>
</root>
However, when I serialize the obje... | When dealing with the serialization and deserialization of XML in relation to boolean values, the way these values are represented can depend on the serialization library or framework you're using (e.g., JAXB, XmlSerializer, etc.). In many serialization frameworks, boolean values are typically serialized as either `tru... | 4,180 | [
{
"from": "human",
"value": "The XML Schema Part 2 specifies that an instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0}.\nThe following XML, for example, when deserialized, sets the boolean property \"Emulate\" to true.\n<root>\n <emulate>1</emulat... |
We have a web application that uses SQL Server 2008 as the database. Our users are able to do full-text searches on particular columns in the database. SQL Server's full-text functionality does not seem to provide support for hit highlighting. Do we need to build this ourselves or is there perhaps some library or knowl... | SQL Server's full-text search capabilities indeed allow for powerful querying but do not include built-in hit highlighting for search results. Therefore, if you want to provide users with highlighted search terms in your results, you will generally need to implement this functionality yourself.
### Steps to Implement ... | 6,021 | [
{
"from": "human",
"value": "We have a web application that uses SQL Server 2008 as the database. Our users are able to do full-text searches on particular columns in the database. SQL Server's full-text functionality does not seem to provide support for hit highlighting. Do we need to build this ourselves ... |
AKA - What's this obsession with pointers?
Having only really used modern, object oriented languages like ActionScript, Java and C#, I don't really understand the importance of pointers and what you use them for. What am I missing out on here?
| Pointers are a fundamental concept in languages like C and C++, and they provide a low-level way to handle memory. Understanding pointers can be crucial for several reasons, especially if you’re working with systems programming, embedded systems, or performance-critical applications. Here are some key points to help yo... | 7,620 | [
{
"from": "human",
"value": "AKA - What's this obsession with pointers?\nHaving only really used modern, object oriented languages like ActionScript, Java and C#, I don't really understand the importance of pointers and what you use them for. What am I missing out on here?\n"
},
{
"from": "gpt",
... |
Is there an advantage to dynamically attaching/detaching event handlers?
Would manually detaching handlers help ensure that there isn't a reference remaining to a disposed object?
| Yes, there are advantages to dynamically attaching and detaching event handlers, particularly in scenarios where resource management, performance, and memory leaks are concerns. Here are some key points to consider:
### Advantages of Dynamically Attaching/Detaching Event Handlers
1. **Resource Management**: When you ... | 7,806 | [
{
"from": "human",
"value": "Is there an advantage to dynamically attaching/detaching event handlers?\nWould manually detaching handlers help ensure that there isn't a reference remaining to a disposed object?\n"
},
{
"from": "gpt",
"value": "Yes, there are advantages to dynamically attaching an... |
I'm looking for a .NET regular expression extract all the URLs from a webpage but haven't found one to be comprehensive enough to cover all the different ways you can specify a link.
And a side question:
Is there one regex to rule them all? Or am I better off using a series of less complicated regular expressions and ... | Extracting URLs from HTML using regular expressions can be quite complex because HTML is not a regular language and can contain a variety of attributes, schemes, and malformed tags. While you can craft a regex that captures many common forms of URLs, it is generally advised to use an HTML parser instead, as they handle... | 4,852 | [
{
"from": "human",
"value": "I'm looking for a .NET regular expression extract all the URLs from a webpage but haven't found one to be comprehensive enough to cover all the different ways you can specify a link. \nAnd a side question:\nIs there one regex to rule them all? Or am I better off using a series o... |
I have a list of bean objects passed into my JSP page, and one of them is a comment field. This field may contain newlines, and I want to replace them with semicolons using JSTL, so that the field can be displayed in a text input. I have found one solution, but it's not very elegant. I'll post below as a possibility.
| If you're looking to replace newlines in a comment field with semicolons using JSTL in your JSP page, you can use the `fn:replace` function from the JSTL Functions library. This is a straightforward and cleaner way to achieve your goal compared to more complex approaches.
Here's how you can do it:
1. Ensure you have ... | 9,686 | [
{
"from": "human",
"value": "I have a list of bean objects passed into my JSP page, and one of them is a comment field. This field may contain newlines, and I want to replace them with semicolons using JSTL, so that the field can be displayed in a text input. I have found one solution, but it's not very ele... |
Just want to know what is better way to get start developing faccebook app?Any tutorial recommnedation?And which is better to start up -php or rails?
| Getting started with Facebook app development can be an exciting endeavor, and there are a few key steps and resources to consider:
### Steps to Start Developing a Facebook App:
1. **Set Up a Facebook Developer Account**:
- Go to the [Facebook for Developers](https://developers.facebook.com/) website and create an... | 7,894 | [
{
"from": "human",
"value": "Just want to know what is better way to get start developing faccebook app?Any tutorial recommnedation?And which is better to start up -php or rails?\n"
},
{
"from": "gpt",
"value": "Getting started with Facebook app development can be an exciting endeavor, and there... |
What's a good algorithm for calculating frames per second in a game? I want to show it as a number in the corner of the screen. If I just look at how long it took to render the last frame the number changes too fast.
Bonus points if your answer updates each frame and doesn't converge differently when the frame rate is ... | To calculate frames per second (FPS) in a game and display it smoothly, you can use an exponential moving average (EMA) to prevent the number from changing too rapidly. This method balances responsiveness with stability, allowing you to capture frame rate fluctuations more gracefully.
Here's a step-by-step approach to... | 7,889 | [
{
"from": "human",
"value": "What's a good algorithm for calculating frames per second in a game? I want to show it as a number in the corner of the screen. If I just look at how long it took to render the last frame the number changes too fast.\nBonus points if your answer updates each frame and doesn't co... |
I'm working on customizing a Microsoft Dynamics CRM (4.0) system for my university as a thesis.
My teacher would like to know if it is possible to implement a ticketing system in the CRM so that the users (not the clients) could generate a trouble ticket. For example if their computer doesn't work properly.
I had a loo... | Implementing a ticketing system within Microsoft Dynamics CRM 4.0 is certainly possible, though it may require some customization since Dynamics CRM 4.0 is quite an older version and does not natively include a comprehensive ticketing feature like some of the newer versions.
Here's how you can approach building a tick... | 8,678 | [
{
"from": "human",
"value": "I'm working on customizing a Microsoft Dynamics CRM (4.0) system for my university as a thesis.\nMy teacher would like to know if it is possible to implement a ticketing system in the CRM so that the users (not the clients) could generate a trouble ticket. For example if their c... |
If I issue the find command as follows:
find . -name *.ear
It prints out:
./dir1/dir2/earFile1.ear
./dir1/dir2/earFile2.ear
./dir1/dir3/earFile1.ear
I want to 'print' the name and the size to the command line:
./dir1/dir2/earFile1.ear 5000 KB
./dir1/dir2/earFile2.ear 5400 KB
./dir1/dir3/earFile1.ear 5400 KB
| To achieve your goal of printing the name and size of files matching the pattern `*.ear`, you can use the `find` command combined with `-exec` to call `ls` or `stat`, or you can use `-printf` if your version of `find` supports it. Here are a couple of methods to accomplish this:
### Method 1: Using `find` with `-exec`... | 9,442 | [
{
"from": "human",
"value": "If I issue the find command as follows:\nfind . -name *.ear\n\nIt prints out:\n./dir1/dir2/earFile1.ear\n./dir1/dir2/earFile2.ear\n./dir1/dir3/earFile1.ear\n\nI want to 'print' the name and the size to the command line:\n./dir1/dir2/earFile1.ear 5000 KB\n./dir1/dir2/earFile2.ea... |
How do I set up a network between the Host and the guest OS in Windows vista?
| To set up a network between the host OS and a guest OS in Windows Vista, you'll need to ensure that you have a virtualization software like VMware Workstation, Oracle VirtualBox, or Microsoft Hyper-V installed. The steps below assume you're using VirtualBox, but the principles are similar for other virtualization platf... | 2,900 | [
{
"from": "human",
"value": "How do I set up a network between the Host and the guest OS in Windows vista?\n"
},
{
"from": "gpt",
"value": "To set up a network between the host OS and a guest OS in Windows Vista, you'll need to ensure that you have a virtualization software like VMware Workstati... |
How do you schedule a Windows Mobile application to periodically start up to perform some background processing. For example, assume I'm writing an email client and want to check for email every hour, regardless of whether my app is running at the time.
The app is a native C/C++ app on Windows Mobile 5.0 or later.
| Scheduling a Windows Mobile application to perform periodic background processing, such as checking for emails every hour, can be achieved through the use of `Timers` and possibly leveraging Windows Mobile's `Job Scheduler` functionality. However, it's important to note that Windows Mobile has some limitations and diff... | 6,280 | [
{
"from": "human",
"value": "How do you schedule a Windows Mobile application to periodically start up to perform some background processing. For example, assume I'm writing an email client and want to check for email every hour, regardless of whether my app is running at the time.\nThe app is a native C/C... |
Context:
I'm in charge of running a service written in .NET. Proprietary application. It uses a SQL Server database. It ran as a user member of the Administrators group in the local machine. It worked alright before I added the machine to a domain.
So, I added the machine to a domain (Win 2003) and changed the user to... | Localization issues like the one you're experiencing can indeed stem from various settings within the operating system, user profiles, and SQL Server configurations. Here are several areas to check for localization settings that might influence the behavior of your .NET application and SQL Server:
### 1. **User Region... | 6,948 | [
{
"from": "human",
"value": "Context: \nI'm in charge of running a service written in .NET. Proprietary application. It uses a SQL Server database. It ran as a user member of the Administrators group in the local machine. It worked alright before I added the machine to a domain.\nSo, I added the machine to ... |
I have a base class that represents a database test in TestNG, and I want to specify that all classes extending from this class are of a group "db-test", however I have found that this doesn't seem possible. I have tried the @Test annotation:
@Test(groups = { "db-test" })
public class DBTestBase {
}
However, this doe... | In TestNG, while it is indeed not possible to directly specify that all subclasses of a base class should automatically inherit a group, you can achieve the desired behavior in a couple of different ways. Below are two common approaches you might consider:
### 1. Use a Marker Interface
You can define a marker interfa... | 5,655 | [
{
"from": "human",
"value": "I have a base class that represents a database test in TestNG, and I want to specify that all classes extending from this class are of a group \"db-test\", however I have found that this doesn't seem possible. I have tried the @Test annotation:\n@Test(groups = { \"db-test\" })\... |
I'm just getting dirty in WinForms, and I've discovered, through a lovely tutorial, the magic of dragging a database table onto the design view of my main form. So, all is lovely, I've got my DataGridView with all of the columns represented beautifully.
BUT...
When I run my application against this brand new, empty .sd... | The issue you're experiencing with getting `-1` for your primary key/identity column when inserting a new record into an empty SQL Server Compact database (using a `.sdf` file) is likely related to how the identity column is configured or how you're inserting the data.
### Here are some potential reasons and solutions... | 6,008 | [
{
"from": "human",
"value": "I'm just getting dirty in WinForms, and I've discovered, through a lovely tutorial, the magic of dragging a database table onto the design view of my main form. So, all is lovely, I've got my DataGridView with all of the columns represented beautifully.\nBUT...\nWhen I run my ap... |
How would one write a regular expression to use in Python to split paragraphs?
A paragraph is defined by two line breaks (\n). But one can have any amount of spaces/tabs together with the line breaks, and it still should be considered as a paragraph.
I am using Python, so the solution can use Python's regular expressio... | To achieve your requirement of splitting paragraphs based on two or more line breaks while allowing any amount of whitespace (spaces or tabs) around the line breaks, you can use a more focused approach in your regular expression.
A good regular expression pattern for this specific case would be to match two or more li... | 10,215 | [
{
"from": "human",
"value": "How would one write a regular expression to use in Python to split paragraphs?\nA paragraph is defined by two line breaks (\\n). But one can have any amount of spaces/tabs together with the line breaks, and it still should be considered as a paragraph.\nI am using Python, so the... |
I have a need to do auditing all database activity regardless of whether it came from application or someone issuing some sql via other means. So the auditing must be done at the database level. The database in question is Oracle. I looked at doing it via Triggers and also via something called Fine Grained Auditing tha... | Auditing database activity, especially in Oracle, can indeed lead to performance overhead, particularly when using triggers or Fine Grained Auditing (FGA) extensively. To achieve effective auditing while minimizing performance degradation, consider the following approaches:
### 1. **Standard Auditing**
- **Oracle Unif... | 5,811 | [
{
"from": "human",
"value": "I have a need to do auditing all database activity regardless of whether it came from application or someone issuing some sql via other means. So the auditing must be done at the database level. The database in question is Oracle. I looked at doing it via Triggers and also via s... |
I'm looking for a good, preferably free, test planning and documentation tool. Ideally something that will keep track of which tests have been run against which software version, with reporting ability. There's a whole bunch of tools listed here but are there any others, and which ones have you had the best experience ... | There are several free test planning and documentation tools that you can consider, particularly if you're looking for options that track tests against software versions and offer reporting capabilities. Here are some tools that you might find useful:
1. **TestLink**: As you mentioned, TestLink is a popular open-sourc... | 7,868 | [
{
"from": "human",
"value": "I'm looking for a good, preferably free, test planning and documentation tool. Ideally something that will keep track of which tests have been run against which software version, with reporting ability. There's a whole bunch of tools listed here but are there any others, and whi... |
What is the normal way people writing network code in Delphi use Windows-style overlapped asynchronous socket I/O?
Here's my prior research into this question:
The Indy components seem entirely synchronous. On the other hand, while ScktComp unit does use WSAAsyncSelect, it basically only asynchronizes a BSD-style multi... | In Delphi, working with asynchronous socket I/O using Windows overlapped I/O can indeed feel more manual and less streamlined compared to modern frameworks like .NET. However, you can implement asynchronous I/O with a more structured approach. Here are a few methods that people commonly use to handle this scenario:
##... | 5,369 | [
{
"from": "human",
"value": "What is the normal way people writing network code in Delphi use Windows-style overlapped asynchronous socket I/O?\nHere's my prior research into this question:\nThe Indy components seem entirely synchronous. On the other hand, while ScktComp unit does use WSAAsyncSelect, it bas... |
I have a treeview control in a Windows Forms project that has checkboxes turned on. Because the treeview control has nested nodes, I need the checkboxes to be able to have some sort of tri-mode selection. I can't find a way to do this (I can only have the checkboxes fully checked or unchecked).
| In a Windows Forms TreeView, the checkboxes typically represent a binary state: checked or unchecked. However, to implement a tri-state checkbox (checked, unchecked, and indeterminate) in a TreeView control with nested nodes, you will need to handle some events and manage the states of the nodes manually.
Here is a si... | 5,455 | [
{
"from": "human",
"value": "I have a treeview control in a Windows Forms project that has checkboxes turned on. Because the treeview control has nested nodes, I need the checkboxes to be able to have some sort of tri-mode selection. I can't find a way to do this (I can only have the checkboxes fully checke... |
How should I store (and present) the text on a website intended for worldwide use, with several languages? The content is mostly in the form of 500+ word articles, although I will need to translate tiny snippets of text on each page too (such as "print this article" or "back to menu").
I know there are several CMS pack... | When building a multilingual website, especially when integrating with existing ASP systems, there are several best practices that can ensure proper storage, presentation, and SEO optimization for multiple languages. Here's an outline of how to approach the problem based on professional practices:
### Content Storage ... | 6,599 | [
{
"from": "human",
"value": "How should I store (and present) the text on a website intended for worldwide use, with several languages? The content is mostly in the form of 500+ word articles, although I will need to translate tiny snippets of text on each page too (such as \"print this article\" or \"back ... |
I read the question on 'The best way to unit test Objective-C and followed the instructions, but no matter what I do, the Unit tests do not run. Actually the entire program does not run, I get the following message.
dyld: Library not loaded: @rpath/SenTestingKit.framework/Versions/A/SenTestingKit Referenced from /User... | It looks like you're encountering an issue with loading the SenTestingKit framework in Xcode 3.1, which was the testing framework used for unit testing in Objective-C projects at that time. Here are some steps you can try to resolve the issue:
1. **Check Frameworks in Build Phases**:
- Open your project in Xcode.
... | 6,571 | [
{
"from": "human",
"value": "I read the question on 'The best way to unit test Objective-C and followed the instructions, but no matter what I do, the Unit tests do not run. Actually the entire program does not run, I get the following message.\ndyld: Library not loaded: @rpath/SenTestingKit.framework/Vers... |
The title is self explanatory. Is there a way of directly doing such kind of importing?
| It seems you're asking about a way to import data or modules directly in a programming context, but you haven't specified the exact nature of the import or the programming language you're referring to. Could you please provide more details or clarify your question? For example, are you asking about importing libraries ... | 12,685 | [
{
"from": "human",
"value": "The title is self explanatory. Is there a way of directly doing such kind of importing?\n"
},
{
"from": "gpt",
"value": "It seems you're asking about a way to import data or modules directly in a programming context, but you haven't specified the exact nature of the ... |
I need to produce a calculation trace file containing tabular data showing intermediate results. I am currently using a combination of the standard ascii pipe symbols (|) and dashes (-) to draw the table lines:
E.g.
Numerator | Denominator | Result
----------|-------------|-------
6 | 2 | 3
... | Certainly! Using Unicode box drawing characters can indeed create a more polished and professional-looking table in a plain text format. Below is an example of how you can structure your table using Unicode box drawing characters.
You can use the following characters:
- **Vertical line:** `│` (U+2502)
- **Horizontal... | 7,675 | [
{
"from": "human",
"value": "I need to produce a calculation trace file containing tabular data showing intermediate results. I am currently using a combination of the standard ascii pipe symbols (|) and dashes (-) to draw the table lines:\nE.g. \nNumerator | Denominator | Result\n----------|-------------|-... |
Looking at the source of urllib2 it looks like the easiest way to do it would be to subclass HTTPRedirectHandler and then use build_opener to override the default HTTPRedirectHandler, but this seems like a lot of (relatively complicated) work to do what seems like it should be pretty simple.
| Yes, subclassing `HTTPRedirectHandler` and using `build_opener` can be a more complex approach if you're just trying to customize HTTP redirection behavior with `urllib2`. While this is indeed one way to do it, it might be overkill for simpler use cases. Depending on what you're trying to achieve, there may be easier a... | 8,609 | [
{
"from": "human",
"value": "Looking at the source of urllib2 it looks like the easiest way to do it would be to subclass HTTPRedirectHandler and then use build_opener to override the default HTTPRedirectHandler, but this seems like a lot of (relatively complicated) work to do what seems like it should be p... |
How does one handle a DateTime with a NOT NULL?
I want to do something like this:
SELECT * FROM someTable WHERE thisDateTime IS NOT NULL
But how?
| To select rows from a table where a `DateTime` column is not null, your SQL query is correct. You can simply use the `IS NOT NULL` condition in your `WHERE` clause. Here is the SQL syntax you would use:
```sql
SELECT * FROM someTable WHERE thisDateTime IS NOT NULL;
```
In this query, `someTable` is the name of your t... | 11,981 | [
{
"from": "human",
"value": "How does one handle a DateTime with a NOT NULL?\nI want to do something like this:\nSELECT * FROM someTable WHERE thisDateTime IS NOT NULL\n\nBut how?\n"
},
{
"from": "gpt",
"value": "To select rows from a table where a `DateTime` column is not null, your SQL query i... |
Is there a way to unit-test COM-visible .NET assemblies from .NET (not via direct .NET assembly reference)? When i add reference in my test project to the COM component whitten in .NET it complains.
| Unit testing COM-visible .NET assemblies can indeed be tricky, especially if you're trying to access them in a .NET testing framework (like MSTest, NUnit, or xUnit) without directly referencing the assembly. Below are steps and considerations that could help you effectively unit-test a COM component in .NET:
### 1. Re... | 7,873 | [
{
"from": "human",
"value": "Is there a way to unit-test COM-visible .NET assemblies from .NET (not via direct .NET assembly reference)? When i add reference in my test project to the COM component whitten in .NET it complains.\n"
},
{
"from": "gpt",
"value": "Unit testing COM-visible .NET assem... |
I've got two SVN branches (eg development and stable) and want to switch from one to another...
In every tutorial there is command like:
rootOfLocalSvnCopy:>svn switch urlToNewBranch .
But it leads in error in my case:
svn: REPORT request failed on '/svn/rootOfLocalSvnCopy/!svn/vcc/default'<br/>
svn: Cannot replace a d... | The error message you're encountering suggests that the `svn switch` command is having difficulty due to the current state of your working copy or the structure of the SVN repository.
To switch between branches without relocating, you generally use the `svn switch` command. However, if your working copy contains modif... | 8,731 | [
{
"from": "human",
"value": "I've got two SVN branches (eg development and stable) and want to switch from one to another...\nIn every tutorial there is command like:\nrootOfLocalSvnCopy:>svn switch urlToNewBranch .\nBut it leads in error in my case:\nsvn: REPORT request failed on '/svn/rootOfLocalSvnCopy/!... |
I have an application that I would like to embed inside our companies CMS. The only way to do that (I am told), is to load it in an <iframe>.
Easy: just set height and width to 100%! Except, it doesn't work.
I did find out about setting frameborder to 0, so it at least looks like part of the site, but I'd prefer not to... | Embedding an application within an `<iframe>` in a way that avoids unwanted scrollbars and fits within the parent document can be a bit tricky, especially with the constraints you've outlined. Here’s a summary of the key points and suggestions for your implementation:
### Key Considerations
1. **Cross-Domain Restrict... | 5,903 | [
{
"from": "human",
"value": "I have an application that I would like to embed inside our companies CMS. The only way to do that (I am told), is to load it in an <iframe>.\nEasy: just set height and width to 100%! Except, it doesn't work.\nI did find out about setting frameborder to 0, so it at least looks l... |
Do any of you know of a tool that will search for .class files and then display their compiled versions?
I know you can look at them individually in a hex editor but I have a lot of class files to look over (something in my giant application is compiling to Java6 for some reason).
| To analyze multiple `.class` files and display their compiled versions (including the Java version they are compiled for), you can use several tools. Here are a few recommendations:
1. **JAD (Java Decompiler)**: This is a classic Java decompiler that can be used to decompile `.class` files back to Java source code. It... | 9,436 | [
{
"from": "human",
"value": "Do any of you know of a tool that will search for .class files and then display their compiled versions?\nI know you can look at them individually in a hex editor but I have a lot of class files to look over (something in my giant application is compiling to Java6 for some reaso... |
It's been mentioned to me that I'll be the sole developer behind a large new system. Among other things I'll be designing a UI and database schema.
I'm sure I'll receive some guidance, but I'd like to be able to knock their socks off. What can I do in the meantime to prepare, and what will I need to keep in mind when... | Congratulations on landing your first real programming job! Being the sole developer on a large system is both a challenging and exciting opportunity. Here are some steps you can take to prepare, along with key considerations to keep in mind as you embark on this project:
### Preparation Steps
1. **Understand the Req... | 4,243 | [
{
"from": "human",
"value": "It's been mentioned to me that I'll be the sole developer behind a large new system. Among other things I'll be designing a UI and database schema.\nI'm sure I'll receive some guidance, but I'd like to be able to knock their socks off. What can I do in the meantime to prepare,... |
Who here is using WASP (http://wasp.sourceforge.net/content/) to in real world applications? What impressions do you have? Good? Bad? If you can provide any inputs, how good it is comparing with rails for example.
I'm really looking for MVC frameworks for PHP
Update: This comparation I found is good.
| WASP (Web Application Framework for PHP) is one of several MVC frameworks available for PHP development. While it may not be as widely adopted as some other frameworks like Laravel or Symfony, it can still be a viable choice depending on the requirements of your project. Here’s a breakdown of the impressions and consid... | 8,073 | [
{
"from": "human",
"value": "Who here is using WASP (http://wasp.sourceforge.net/content/) to in real world applications? What impressions do you have? Good? Bad? If you can provide any inputs, how good it is comparing with rails for example.\nI'm really looking for MVC frameworks for PHP\n\nUpdate: This co... |
I'm not overly familiar with Tomcat, but my team has inherited a complex project that revolves around a Java Servlet being hosted in Tomcat across many servers. Custom configuration management software is used to write out the server.xml, and various resources (connection pools, beans, server variables, etc) written in... | Unfortunately, Tomcat's configuration files (like `context.xml` and `server.xml`) do not support wildcards for `<ResourceLink>` or `<Resource>` entries. Each resource that you want to reference in your application needs to be explicitly defined. However, there are alternative approaches to managing dynamic resources wi... | 7,617 | [
{
"from": "human",
"value": "I'm not overly familiar with Tomcat, but my team has inherited a complex project that revolves around a Java Servlet being hosted in Tomcat across many servers. Custom configuration management software is used to write out the server.xml, and various resources (connection pools,... |
How do I view the grants (access rights) for a given user in MySQL?
| To view the grants (access rights) for a given user in MySQL, you can use the `SHOW GRANTS` statement. This statement will display the privileges assigned to a specified user.
Here's the basic syntax to view the grants for a user:
```sql
SHOW GRANTS FOR 'username'@'host';
```
- `username` is the name of the user who... | 10,748 | [
{
"from": "human",
"value": "How do I view the grants (access rights) for a given user in MySQL?\n"
},
{
"from": "gpt",
"value": "To view the grants (access rights) for a given user in MySQL, you can use the `SHOW GRANTS` statement. This statement will display the privileges assigned to a specif... |
When trying to connect to an ORACLE user via TOAD (Quest Software) or any other means (Oracle Enterprise Manager) I get this error:
ORA-011033: ORACLE initialization or shutdown in progress
| The error message **ORA-011033: ORACLE initialization or shutdown in progress** typically indicates that the Oracle database is either in the process of starting up or shutting down. This means that it is not yet available to accept connections.
Here are some steps you can take to resolve this issue:
1. **Check Datab... | 7,381 | [
{
"from": "human",
"value": "When trying to connect to an ORACLE user via TOAD (Quest Software) or any other means (Oracle Enterprise Manager) I get this error:\n\nORA-011033: ORACLE initialization or shutdown in progress\n\n"
},
{
"from": "gpt",
"value": "The error message **ORA-011033: ORACLE ... |
I have a CC.NET project configured to call a common NAnt build file, which does some stuff, and then calls a child NAnt build file. The child build file name is specified by CC.NET to the command build file using a property.
The hurdle that I am trying to get over is that the common build file log gets overwritten by t... | It sounds like you're trying to capture the logs from both the common NAnt build file and the child NAnt build file within the same output log, as the current configuration is causing the common log to be overwritten.
Here are a few approaches you can try to resolve this issue:
### 1. Redirecting Logs to Different Fi... | 3,615 | [
{
"from": "human",
"value": "I have a CC.NET project configured to call a common NAnt build file, which does some stuff, and then calls a child NAnt build file. The child build file name is specified by CC.NET to the command build file using a property.\nThe hurdle that I am trying to get over is that the c... |
There must be a generic way to transform some hierachical XML such as:
<element1 A="AValue" B="BValue">
<element2 C="DValue" D="CValue">
<element3 E="EValue1" F="FValue1"/>
<element3 E="EValue2" F="FValue2"/>
</element2>
...
</element1>
into the flattened XML (html) picking up selected attributes ... | You're correct that transforming hierarchical XML into a flattened format like HTML can be accomplished using XSLT (Extensible Stylesheet Language Transformations). While there isn't a completely generic solution due to the varying structure and requirements, I can provide you with an XSLT template that accomplishes th... | 7,756 | [
{
"from": "human",
"value": "There must be a generic way to transform some hierachical XML such as:\n<element1 A=\"AValue\" B=\"BValue\">\n <element2 C=\"DValue\" D=\"CValue\">\n <element3 E=\"EValue1\" F=\"FValue1\"/>\n <element3 E=\"EValue2\" F=\"FValue2\"/>\n </element2>\n ...\n</element1... |
I have a ListBox that has a style defined for ListBoxItems. Inside this style, I have some labels and a button. One that button, I want to define a click event that can be handled on my page (or any page that uses that style). How do I create an event handler on my WPF page to handle the event from my ListBoxItems s... | In WPF, if you want to define a `Button` in a `ListBoxItem` style and have that button's click event handled in the parent page, you can achieve this by using commands, or by bubbling the event up through the visual tree. However, the simplest way to achieve your requirement is to use an `Attached Event` pattern or a c... | 1,639 | [
{
"from": "human",
"value": "I have a ListBox that has a style defined for ListBoxItems. Inside this style, I have some labels and a button. One that button, I want to define a click event that can be handled on my page (or any page that uses that style). How do I create an event handler on my WPF page t... |
I have just inherited a server application, however it seems that the only copy of the database is corrupt and the working version is gone, so is it possible to find what queries the application is running so I can try to rebuild the tables?
Edit: I have some files with no extensions that I are named the same as the da... | Inheriting a server application with a corrupted database can be challenging, but there are several strategies you can employ to recover or rebuild the database structure and data. Here are some steps to consider:
### 1. **Check Application Logs**
- Look for logs that the application may generate. Many applications lo... | 7,794 | [
{
"from": "human",
"value": "I have just inherited a server application, however it seems that the only copy of the database is corrupt and the working version is gone, so is it possible to find what queries the application is running so I can try to rebuild the tables?\nEdit: I have some files with no exte... |
It should also support SSH2 and public key auth for starters.
secondly on Mac/Windows it should have a decent installer.
| It sounds like you're looking for software or a tool that supports SSH2 and public key authentication, along with a good installer for Mac and Windows. Here are a few options that meet these criteria:
1. **PuTTY** (Windows):
- A widely used SSH and telnet client for Windows. It supports SSH2 and public key authenti... | 9,543 | [
{
"from": "human",
"value": "It should also support SSH2 and public key auth for starters.\nsecondly on Mac/Windows it should have a decent installer.\n"
},
{
"from": "gpt",
"value": "It sounds like you're looking for software or a tool that supports SSH2 and public key authentication, along wit... |
When using Google Chrome, I want to debug some JavaScript code. How can I do that?
| Debugging JavaScript in Google Chrome can be efficiently done using the built-in Developer Tools. Here’s a step-by-step guide on how to debug your JavaScript code:
### 1. Open Developer Tools
- **Shortcut**: Press `F12` or `Ctrl + Shift + I` (Windows/Linux) or `Cmd + Option + I` (Mac).
- **Menu**: Click on the three v... | 6,293 | [
{
"from": "human",
"value": "When using Google Chrome, I want to debug some JavaScript code. How can I do that?\n"
},
{
"from": "gpt",
"value": "Debugging JavaScript in Google Chrome can be efficiently done using the built-in Developer Tools. Here’s a step-by-step guide on how to debug your Java... |
I'm trying to ftp a folder using the command line ftp client, but so far I've only been able to use 'get' to get individual files.
| Using the command-line FTP client to transfer an entire folder is not straightforward, as the standard FTP protocol does not support transferring directories directly. However, there are a few workarounds you can use to achieve this. Here are some common methods:
### Method 1: Using `mput`
1. **Navigate into the fold... | 8,406 | [
{
"from": "human",
"value": "I'm trying to ftp a folder using the command line ftp client, but so far I've only been able to use 'get' to get individual files. \n"
},
{
"from": "gpt",
"value": "Using the command-line FTP client to transfer an entire folder is not straightforward, as the standard... |
I have a System.Diagnostics.Process object in a program targeted at the .Net framework 3.5
I have redirected both StandardOutput and StandardError pipes and I'm receiving data from them asynchronously. I've also set an event handler for the Exited event.
Once I call Process.Start() I want to go off and do other work w... | To ensure that the `Exited` event is the last event you receive after all data from the output and error streams has been processed, you can implement a mechanism to track the asynchronous read completion. One common approach is to use a counter to keep track of the number of output/error data received events and ensur... | 2,449 | [
{
"from": "human",
"value": "I have a System.Diagnostics.Process object in a program targeted at the .Net framework 3.5\nI have redirected both StandardOutput and StandardError pipes and I'm receiving data from them asynchronously. I've also set an event handler for the Exited event.\nOnce I call Process.S... |
I'm trying to figure out what a Java applet's class file is doing under the hood. Opening it up with Notepad or Textpad just shows a bunch of gobbledy-gook.
Is there any way to wrangle it back into a somewhat-readable format so I can try to figure out what it's doing?
Environment == Windows w/ VS 2008 installed.
| To analyze a Java applet's class file and make it more readable, you can use a Java decompiler. A decompiler translates compiled Java bytecode (which is what `.class` files contain) back into Java source code. Here's how you can do that:
### Steps to Decompile a Java Class File
1. **Download a Java Decompiler:**
-... | 8,845 | [
{
"from": "human",
"value": "I'm trying to figure out what a Java applet's class file is doing under the hood. Opening it up with Notepad or Textpad just shows a bunch of gobbledy-gook.\nIs there any way to wrangle it back into a somewhat-readable format so I can try to figure out what it's doing?\n\nEnviro... |
At work we use Sandcastle for creation of help files. I have been using SandCastleGUI for some time and I'm looking for a way to create additional pages in the help file.
These pages are written in XML format called MAML.
The only problem is that I couldn't find any decent editor for these file format.
I'm looking fo... | While MAML (Markup and Annotation Markup Language) is primarily an XML-based format, finding a dedicated WYSIWYG editor specifically for MAML can be a bit challenging. However, there are a few tools and approaches that may work for you:
1. **Markdown Editors with MAML Support**: While not specifically MAML, you can us... | 8,956 | [
{
"from": "human",
"value": "At work we use Sandcastle for creation of help files. I have been using SandCastleGUI for some time and I'm looking for a way to create additional pages in the help file. \nThese pages are written in XML format called MAML. \nThe only problem is that I couldn't find any decent e... |
Is it possible to determine which property of an ActiveX control is the default property? For example, what is the default property of the VB6 control CommandButton and how would I found out any other controls default!
/EDIT: Without having source to the object itself
| Yes, it is possible to determine the default property of an ActiveX control, such as those used in VB6. For many ActiveX controls, including the CommandButton control, the default property is typically well-documented in the official documentation or through common usage.
### Default Property for Common ActiveX Contro... | 6,912 | [
{
"from": "human",
"value": "Is it possible to determine which property of an ActiveX control is the default property? For example, what is the default property of the VB6 control CommandButton and how would I found out any other controls default!\n/EDIT: Without having source to the object itself\n"
},
... |
What's the best way to implement the enum idiom in Ruby? I'm looking for something which I can use (almost) like the Java/C# enums.
| In Ruby, you can implement an enum-like functionality using several approaches. While Ruby does not have a built-in enum type like Java or C#, you can achieve similar behavior by using a class with constant values, `Module`, or even using the `Enum` gem. Below are a few different methods you can use to create enum-like... | 7,332 | [
{
"from": "human",
"value": "What's the best way to implement the enum idiom in Ruby? I'm looking for something which I can use (almost) like the Java/C# enums.\n"
},
{
"from": "gpt",
"value": "In Ruby, you can implement an enum-like functionality using several approaches. While Ruby does not ha... |
I have the following type :
// incomplete class definition
public class Person
{
private string name;
public string Name
{
get { return this.name; }
}
}
I want this type to be created and updated with some sort of dedicated controller/builder, but I want it to remain read-only for other types.... | To implement the requirements you've outlined, you can use a combination of a private constructor, a dedicated controller class (which can serve as a builder), and events to notify changes. The controller will be the only entity allowed to create and modify the `Person` objects, while other classes will only be able to... | 4,766 | [
{
"from": "human",
"value": "I have the following type :\n// incomplete class definition\npublic class Person\n{\n private string name;\n\n public string Name\n {\n get { return this.name; }\n }\n}\n\nI want this type to be created and updated with some sort of dedicated controller/builde... |
I'm working in Flash CS3, targeting Actionscript 2, and I'm writing an image preloader. When I test the movie with the download simulation turned on everything works just fine, and my preloader successfully updates the download progress bar I've made. When I upload the movie to my web server though, it almost behaves ... | It sounds like you are experiencing a common issue with ActionScript 2 preloaders, particularly in the context of how certain web servers handle file delivery and caching. When you test with the download simulation, everything works as expected because you are simulating the load conditions. However, when you upload to... | 6,992 | [
{
"from": "human",
"value": "I'm working in Flash CS3, targeting Actionscript 2, and I'm writing an image preloader. When I test the movie with the download simulation turned on everything works just fine, and my preloader successfully updates the download progress bar I've made. When I upload the movie to... |
Has anyone worked out how to get PowerShell to use app.config files? I have a couple of .NET DLL's I'd like to use in one of my scripts but they expect their own config sections to be present in app.config/web.config.
| Yes, it is possible to use `.NET` DLLs that rely on configuration settings in `app.config` or `web.config` files from within PowerShell, although PowerShell scripts do not natively support these configuration files directly. However, you can manually load these configuration settings in your PowerShell script.
### Her... | 8,126 | [
{
"from": "human",
"value": "Has anyone worked out how to get PowerShell to use app.config files? I have a couple of .NET DLL's I'd like to use in one of my scripts but they expect their own config sections to be present in app.config/web.config.\n"
},
{
"from": "gpt",
"value": "Yes, it is possi... |
Is there a setting in ReSharper 4 (or even Visual Studio itself...) that forces a warning if I forget to wrap code in a using block, or omit the proper Dispose call in a finally block?
| In ReSharper 4 and later versions, as well as in Visual Studio, there are ways to encourage or enforce proper resource management, such as using `using` statements for disposable objects.
### ReSharper Settings
1. **Code Inspection**: ReSharper provides a built-in inspection to check for `IDisposable` implementation.... | 7,388 | [
{
"from": "human",
"value": "Is there a setting in ReSharper 4 (or even Visual Studio itself...) that forces a warning if I forget to wrap code in a using block, or omit the proper Dispose call in a finally block?\n"
},
{
"from": "gpt",
"value": "In ReSharper 4 and later versions, as well as in ... |
It is slow to load anything other than a small project. It is slow to quit; it can sometimes take minutes. It can be slow to open new files. The record macro feature used to be useful. It is now so slow to start up it's almost always quicker to do it manually!
More info would be helpful. How big are your solutions? W... | From your description, it seems you're experiencing performance issues with Visual Studio (VS), which can be caused by several factors. Here are some insights and suggestions that might help you identify the underlying causes and possibly improve the performance:
1. **System Specifications**:
- Your CPU (3.2GHz P4... | 3,340 | [
{
"from": "human",
"value": "It is slow to load anything other than a small project. It is slow to quit; it can sometimes take minutes. It can be slow to open new files. The record macro feature used to be useful. It is now so slow to start up it's almost always quicker to do it manually!\n\n\nMore info wou... |
I'm using KVM to run a Windows virtual machine on my Linux box. Networking is accomplished through a tap device, hooked into a bridged Ethernet device, which allows the Windows VM to basically appear like a separate physical computer on my network. This is pretty nice.
However, my understanding is that most, if not all... | You're correct that wireless interfaces often do not support bridging in the same way that wired interfaces do. This limitation makes it challenging to use KVM with a bridged network when relying on Wi-Fi. However, there are several workarounds you can consider that will allow your Windows VM to still access the networ... | 4,684 | [
{
"from": "human",
"value": "I'm using KVM to run a Windows virtual machine on my Linux box. Networking is accomplished through a tap device, hooked into a bridged Ethernet device, which allows the Windows VM to basically appear like a separate physical computer on my network. This is pretty nice.\nHowever,... |
We have in the process of upgrading our application to full Unicode comptibility as we have recently got Delphi 2009 which provides this out of the box. I am looking for anyone who has experience of upgrading an application to accept Unicode characters. Specifically answers to any of the following questions.
We need... | Upgrading an application to full Unicode compatibility can indeed present several challenges and considerations, especially when transitioning from ANSI to Unicode in a database context. Below are some insights and recommendations addressing your specific questions:
### 1. Change VarChars to NVarchar and Char to NChar... | 7,171 | [
{
"from": "human",
"value": "We have in the process of upgrading our application to full Unicode comptibility as we have recently got Delphi 2009 which provides this out of the box. I am looking for anyone who has experience of upgrading an application to accept Unicode characters. Specifically answers to... |
I was wondering if anyone here had some experience writing this type of script and if they could give me some pointers.
I would like to modify this script to validate that the check-in file does not have a Carriage Return in the EOL formatting. The EOL format is CR LF in Windows and LF in Unix. When a User checks-in co... | Your approach to validating the check-in files for correct EOL formatting seems reasonable. Here’s a more structured way to implement your requirements along with some suggestions and best practices:
### 1. Check if the File is Binary
To determine if a file is binary, you can indeed use the MIME type, which can be fet... | 6,792 | [
{
"from": "human",
"value": "I was wondering if anyone here had some experience writing this type of script and if they could give me some pointers.\nI would like to modify this script to validate that the check-in file does not have a Carriage Return in the EOL formatting. The EOL format is CR LF in Window... |
i have a sharepoint list
with 2 users for examole (user A and user B)
i need a calculated field in the list items such that if user "A" created the item the field vaule will be "X" and if user "B" created the item fields value would be "Y"
but i couldnt use [created by] in the furmiula of the calculated field !! ... | In SharePoint, calculated fields do not have the capability to reference the "Created By" column (or any other user column) directly in their formulas. This limitation arises from the fact that calculated fields can only use other columns from the same row and do not have access to metadata about the item, like the use... | 9,425 | [
{
"from": "human",
"value": "i have a sharepoint list \nwith 2 users for examole (user A and user B)\ni need a calculated field in the list items such that if user \"A\" created the item the field vaule will be \"X\" and if user \"B\" created the item fields value would be \"Y\"\nbut i couldnt use [crea... |
I'm trying a very basic XPath on this xml (same as below), and it doesn't find anything.
I'm trying both .NET and this website, and XPaths such as //PropertyGroup, /PropertyGroup and //MSBuildCommunityTasksPath are simply not working for me (they compiled but return zero results).
Source XML:
<?xml version="1.0" encodi... | The issue you're experiencing is likely related to the XML namespace defined in your XML document. The XML element names, like `<Project>`, `<PropertyGroup>`, and `<MSBuildCommunityTasksPath>`, are all in the `http://schemas.microsoft.com/developer/msbuild/2003` namespace. This means you need to take the namespace into... | 8,293 | [
{
"from": "human",
"value": "I'm trying a very basic XPath on this xml (same as below), and it doesn't find anything.\nI'm trying both .NET and this website, and XPaths such as //PropertyGroup, /PropertyGroup and //MSBuildCommunityTasksPath are simply not working for me (they compiled but return zero result... |
I have long since forgotten the password for the root user on one of my boxes. Is there a way I can change it without having to log in to the instance, or will I have to reinstall?
| You can reset the root password on many systems without needing to log in by using recovery or rescue modes, although the exact process will vary depending on the operating system you are using. Below are general methods for both Linux and Windows systems.
### For Linux
1. **Boot into Recovery Mode**:
- Restart yo... | 6,826 | [
{
"from": "human",
"value": "I have long since forgotten the password for the root user on one of my boxes. Is there a way I can change it without having to log in to the instance, or will I have to reinstall?\n"
},
{
"from": "gpt",
"value": "You can reset the root password on many systems witho... |
Theres is a little problem I want to solve with Haskell:
let substitute a function that change all of the wildcards in a string for one concrete parameter. The function has de signature of:
subs :: String -> String -> String -> String
-- example:
-- subs 'x' "x^3 + x + sin(x)" "6.2" will generate
-- "6.2^3 + 6... | You can solve this problem in Haskell by defining the `subs` function that substitutes all occurrences of a wildcard character in a given string with a specific parameter. Below is a possible implementation of this function:
```haskell
subs :: String -> String -> String -> String
subs wildcard expression parameter =
... | 10,010 | [
{
"from": "human",
"value": "Theres is a little problem I want to solve with Haskell:\nlet substitute a function that change all of the wildcards in a string for one concrete parameter. The function has de signature of:\nsubs :: String -> String -> String -> String\n-- example:\n-- subs 'x' \"x^3 + x + sin(... |
I am trying to validate user id's matching the example:
smith.jack or smith.jack.s
In other words, any number of non-whitespace characters (except dot), followed by exactly one dot, followed by any number of non-whitespace characters (except dot), optionally followed by exactly one dot followed by any number of non-wh... | To validate the user IDs according to your specified requirements, we can create a regex pattern that strictly follows your rules without allowing consecutive dots or dots at the beginning of the string. Here’s the regex pattern you need:
```regex
^(?!.*\.\.)(?!\.)([^\s.]+)\.([^\s.]+)(\.[^\s.]+)?$
```
### Explanation... | 6,609 | [
{
"from": "human",
"value": "I am trying to validate user id's matching the example:\nsmith.jack or smith.jack.s\n\nIn other words, any number of non-whitespace characters (except dot), followed by exactly one dot, followed by any number of non-whitespace characters (except dot), optionally followed by exac... |
Has anyone been successful in getting the grails plugin for eclipse to work? How about grails plugin with netbeans?
| As of my last knowledge update in October 2023, there have been varying levels of success and support for Grails plugins in different IDEs such as Eclipse and NetBeans.
### Eclipse:
- The Grails plugin for Eclipse, known as **Groovy-Eclipse**, has had a long history, but its support for newer versions of Grails may no... | 10,347 | [
{
"from": "human",
"value": "Has anyone been successful in getting the grails plugin for eclipse to work? How about grails plugin with netbeans?\n"
},
{
"from": "gpt",
"value": "As of my last knowledge update in October 2023, there have been varying levels of success and support for Grails plugi... |
I would like to create events for certain resources that are used across various processes and access these events by name. The problem seems to be that the names of the events must be known to all applications referring to them.
Is there maybe a way to get a list of names events in the system?
I am aware that I might ... | It sounds like you're tackling a fairly complex synchronization problem across multiple processes while dealing with various access and extensibility challenges. Here are a few suggestions that might help you manage events or synchronization objects in a way that aligns with your requirements:
### 1. **Centralized Eve... | 7,441 | [
{
"from": "human",
"value": "I would like to create events for certain resources that are used across various processes and access these events by name. The problem seems to be that the names of the events must be known to all applications referring to them.\nIs there maybe a way to get a list of names even... |
More specifically I am trying to make the mailto component show within my template; the same way as an article does.
By default the mailto component opens in a new window. So far I changed the code so it opens on the same window, but that way the whole template is gone.
Any suggestions?
| To integrate a mailto component into your template while maintaining the overall structure (similar to how articles are displayed), you can use a few different approaches depending on your setup. Since the mailto functionality inherently opens an email client rather than rendering within your application, you may need ... | 4,990 | [
{
"from": "human",
"value": "More specifically I am trying to make the mailto component show within my template; the same way as an article does. \nBy default the mailto component opens in a new window. So far I changed the code so it opens on the same window, but that way the whole template is gone.\nAny s... |
I have a query that is dynamically built after looking up a field list and table name. I execute this dynamic query inside a stored proc. The query is built without a where clause when the two proc parameters are zero, and built with a where clause when not.
When I execute the proc with
SET FMTONLY ON
exec [... | When you set `FMTONLY ON` in SQL Server, it instructs the server to return only metadata about the result set (i.e., column information like names and types) without actually executing the query. This setting can be useful for performance reasons, especially when you are only interested in the structure of the results ... | 6,225 | [
{
"from": "human",
"value": "I have a query that is dynamically built after looking up a field list and table name. I execute this dynamic query inside a stored proc. The query is built without a where clause when the two proc parameters are zero, and built with a where clause when not.\nWhen I execute th... |
How do I park a Bluetooth connection? I'm trying to communicate with dozens of Bluetooth devices, and the time to re-establish a connection is unacceptable. I've read that you can park connections, but not found anything that answers how to do this.
| "Parking" a Bluetooth connection is not a standard term in Bluetooth communication. However, if you are looking to manage multiple Bluetooth connections efficiently without having to re-establish them each time, there are a few strategies you can use to minimize the overhead of establishing connections. Here are some s... | 8,069 | [
{
"from": "human",
"value": "How do I park a Bluetooth connection? I'm trying to communicate with dozens of Bluetooth devices, and the time to re-establish a connection is unacceptable. I've read that you can park connections, but not found anything that answers how to do this.\n"
},
{
"from": "gpt"... |
Say I have a Textbox nested within a TabControl.
When the form loads, I would like to focus on that Textbox (by default the focus is set to the TabControl).
Simply calling textbox1.focus() in the Load event of the form does not appear to work.
I have been able to focus it by doing the following:
private void frmMa... | Yes, there is a more elegant way to set the focus to a `TextBox` nested within a `TabControl` on the form's load event. The reason why calling `textbox1.Focus()` directly in the `Load` event does not work is because the control might not be fully initialized or visible yet.
Instead of looping through all the tabs, you... | 7,102 | [
{
"from": "human",
"value": "Say I have a Textbox nested within a TabControl. \nWhen the form loads, I would like to focus on that Textbox (by default the focus is set to the TabControl).\nSimply calling textbox1.focus() in the Load event of the form does not appear to work. \nI have been able to focus it... |
In my C# application I am using the Microsoft Jet OLEDB data provider to read a CSV file. The connection string looks like this:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\Data;Extended Properties="text;HDR=Yes;FMT=Delimited
I open an ADO.NET OleDbConnection using that connection string and select all the rows fr... | When using the Microsoft Jet OLEDB provider with CSV files, it often guesses the data types of the columns based on the first few rows of data. This can lead to issues when your data contains mixed types, such as numeric and alphanumeric values in the same column.
To explicitly tell the Jet OLEDB provider to treat all... | 9,109 | [
{
"from": "human",
"value": "In my C# application I am using the Microsoft Jet OLEDB data provider to read a CSV file. The connection string looks like this:\nProvider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\Data;Extended Properties=\"text;HDR=Yes;FMT=Delimited\n\nI open an ADO.NET OleDbConnection using tha... |
I have an Excel Spreadsheet like this
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
| even more data for id
id | data for id
| more data for id
id | data for id
id | data for id
| more data for id
Now I want to group the data of one id by alternating the backg... | Certainly! Below is a simple VBA macro that will achieve your desired result of alternating the background color for each group of rows associated with a unique ID in your Excel spreadsheet.
### Steps to Add the Macro:
1. Open your Excel file.
2. Press `ALT + F11` to open the VBA Editor.
3. Click `Insert` > `Module` ... | 8,622 | [
{
"from": "human",
"value": "I have an Excel Spreadsheet like this\n\nid | data for id\n | more data for id\nid | data for id\nid | data for id\n | more data for id\n | even more data for id\nid | data for id\n | more data for id\nid | data for id\nid | data for id\n | more data for id\n\nNow I wa... |
What is the fastest way you know to convert a floating-point number to an int on an x86 CPU. Preferrably in C or assembly (that can be in-lined in C) for any combination of the following:
32/64/80-bit float -> 32/64-bit integer
I'm looking for some technique that is faster than to just let the compiler do it.
| When converting floating-point numbers to integers, you typically want to consider both performance and the specific requirements of your application. While the standard casting or functions like `floor`, `ceil`, or `round` may suffice for many applications, there are faster methods available, especially if you need to... | 4,587 | [
{
"from": "human",
"value": "What is the fastest way you know to convert a floating-point number to an int on an x86 CPU. Preferrably in C or assembly (that can be in-lined in C) for any combination of the following:\n\n32/64/80-bit float -> 32/64-bit integer\n\nI'm looking for some technique that is faste... |
My team is working on a crappy old website and most of the pages are still ASP classic. However, we've recently migrated to forms authentication using ASP.NET and wildcard mapping. Everything works surprisingly well except for one thing: logged in users are timing out too quickly. After looking in the logs it appear... | It sounds like you're encountering a common challenge when integrating ASP.NET Forms Authentication with older ASP Classic pages. Your diagnosis is correct—ASP Classic pages do not automatically trigger the ASP.NET session state, which means that the inactivity timer for authentication doesn't reset while users are int... | 8,587 | [
{
"from": "human",
"value": "My team is working on a crappy old website and most of the pages are still ASP classic. However, we've recently migrated to forms authentication using ASP.NET and wildcard mapping. Everything works surprisingly well except for one thing: logged in users are timing out too quic... |
I'd like to add some pie, bar and scatter charts to my Ruby on Rails web application. I want want them to be atractive, easy to add and not introduce much overhead.
What charting solution would you recommend?
What are its drawbacks (requires Javascript, Flash, expensive, etc)?
| For adding attractive pie, bar, and scatter charts to your Ruby on Rails application, I would recommend using **Chart.js**. It's a popular JavaScript library that is easy to integrate and provides a variety of chart types, including pie, bar, and scatter charts.
### Advantages of Chart.js:
1. **Ease of Use**: Chart.j... | 5,841 | [
{
"from": "human",
"value": "I'd like to add some pie, bar and scatter charts to my Ruby on Rails web application. I want want them to be atractive, easy to add and not introduce much overhead. \nWhat charting solution would you recommend?\nWhat are its drawbacks (requires Javascript, Flash, expensive, etc)... |
I have a database with two tables (Table1 and Table2). They both have a common column [ColumnA] which is an nvarchar.
How can I select this column from both tables and return it as a single column in my result set?
So I'm looking for something like:
ColumnA in Table1:
a
b
c
ColumnA in Table2:
d
e
f
Result set should... | To achieve the result set you're looking for, you can use the `UNION` operator in SQL. The `UNION` operator allows you to combine the results of two or more `SELECT` statements into a single result set. It automatically removes duplicate rows between the results.
Here’s an example SQL query that selects `ColumnA` from... | 11,655 | [
{
"from": "human",
"value": "I have a database with two tables (Table1 and Table2). They both have a common column [ColumnA] which is an nvarchar. \nHow can I select this column from both tables and return it as a single column in my result set?\nSo I'm looking for something like:\nColumnA in Table1:\na\nb\... |
I have a members table in MySQL
CREATE TABLE `members` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(65) collate utf8_unicode_ci NOT NULL,
`order` tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
And I would like to let users order the members how they like.
I'm... | You're right in identifying that using `MAX(order)` in your current implementation can lead to race conditions if multiple users try to insert new members concurrently. This could result in multiple members being assigned the same order value, which defeats the purpose of maintaining a unique order.
One common approac... | 7,297 | [
{
"from": "human",
"value": "I have a members table in MySQL\nCREATE TABLE `members` (\n `id` int(10) unsigned NOT NULL auto_increment,\n `name` varchar(65) collate utf8_unicode_ci NOT NULL,\n `order` tinyint(3) unsigned NOT NULL default '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB;\n\nAnd I would like ... |
I have a a property defined as:
[XmlArray("delete", IsNullable = true)]
[XmlArrayItem("contact", typeof(ContactEvent)),
XmlArrayItem("sms", typeof(SmsEvent))]
public List<Event> Delete { get; set; }
If the List<> Delete has no items
<delete />
is emitted. If the List<> Delete is set to null
<delete xsi:nil="true" />... | In order to prevent the `<delete />` element from being emitted when the `Delete` collection is empty (while still allowing it to be emitted when it's set to `null`), you can implement the `IXmlSerializable` interface for your class. This will give you full control over the XML serialization process.
Here's a general ... | 6,660 | [
{
"from": "human",
"value": "I have a a property defined as:\n[XmlArray(\"delete\", IsNullable = true)]\n[XmlArrayItem(\"contact\", typeof(ContactEvent)),\n XmlArrayItem(\"sms\", typeof(SmsEvent))]\npublic List<Event> Delete { get; set; }\n\nIf the List<> Delete has no items\n<delete />\n\nis emitted. If th... |
What is the best solution for converting WAV files to WMA (and vice versa) in C#? I have actually implemented this once already using the Windows Media Encoder SDK, but having to distribute Windows Media Encoder with my application is cumbersome to say the least. The Windows Media Format SDK has large sections of the A... | Converting audio files between different formats like WAV and WMA in C# can indeed present challenges, especially with SDKs that require complicated setups or have deprecated features. However, there are several options available that might fit your needs better than Windows Media Encoder or Windows Media Format SDK.
... | 6,397 | [
{
"from": "human",
"value": "What is the best solution for converting WAV files to WMA (and vice versa) in C#? I have actually implemented this once already using the Windows Media Encoder SDK, but having to distribute Windows Media Encoder with my application is cumbersome to say the least. The Windows Med... |
I've just inherited a java application that needs to be installed as a service on XP and vista. It's been about 8 years since I've used windows in any form and I've never had to create a service, let alone from something like a java app (I've got a jar for the app and a single dependency jar - log4j). What is the magi... | To install a Java application as a service on Windows XP and Vista, you'll typically use a tool like **Apache Commons Daemon** or **Java Service Wrapper**. Below, I'll outline steps for both methods, focusing on a typical setup using Apache Commons Daemon (procrun). This way, you can avoid code changes as much as possi... | 7,616 | [
{
"from": "human",
"value": "I've just inherited a java application that needs to be installed as a service on XP and vista. It's been about 8 years since I've used windows in any form and I've never had to create a service, let alone from something like a java app (I've got a jar for the app and a single d... |
With previous versions of flash, entering the full screen mode increased the height and width of the stage to the dimensions of the screen. Now that hardware scaling has arrived, the height and width are set to the dimensions of the video (plus borders if the aspect ratio is different).
That's fine, unless you have co... | To restore the old scaling behavior in Flash (or Adobe Animate), there are a few potential approaches you might consider:
1. **Disable Hardware Acceleration**: While you've mentioned that turning off hardware scaling does not entirely fix the control size, it's still worth ensuring that all aspects of hardware acceler... | 9,066 | [
{
"from": "human",
"value": "With previous versions of flash, entering the full screen mode increased the height and width of the stage to the dimensions of the screen. Now that hardware scaling has arrived, the height and width are set to the dimensions of the video (plus borders if the aspect ratio is di... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.