instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
Is there any way to test SMS messaging without having a texting plan?
There isn't any way to setup the equivalent of a mock email server for the purposes of testing an SMS service is there? Are there any other ways to accomplish the task? Perhaps setting up something like a GrandCentral account that can receive text m... | Yes, there are several ways to test SMS messaging without having a traditional texting plan. Here are a few options you might consider:
1. **Online SMS Testing Services**: There are various online platforms specifically designed for testing SMS functionalities. These services allow you to send and receive SMS messages... | 39,087 | [
{
"from": "human",
"value": "Is there any way to test SMS messaging without having a texting plan? \nThere isn't any way to setup the equivalent of a mock email server for the purposes of testing an SMS service is there? Are there any other ways to accomplish the task? Perhaps setting up something like a Gr... |
I need some help for executing my planned backup strategy.
My database is about 1 gig in size.
I want to perform a full backup once per week, and incremental every hour.
Is all of this built into SQL Server 2005 Express?
Is it possible to roll over the backups so I only keep 1 months of backups?
Meaning the full weekl... | SQL Server 2005 Express does support backup operations, including full and differential (incremental) backups, but it does not have built-in features for scheduling jobs or rolling over backups automatically. You will need to implement some scripting and use Windows Task Scheduler to achieve your desired backup strateg... | 32,298 | [
{
"from": "human",
"value": "I need some help for executing my planned backup strategy.\nMy database is about 1 gig in size.\nI want to perform a full backup once per week, and incremental every hour.\nIs all of this built into SQL Server 2005 Express?\nIs it possible to roll over the backups so I only keep... |
I use ASP.NET and WCF services in a load balanced web server environment, using Memcached in the service layer.
I also wanted to replace the use of ASP.NET State Server (for Session State) with Memcached.
Now I am afraid it is not a good thing, because from what i understand,
Memcached is a cache server rather than a s... | Your understanding of Memcached and its suitability for managing session state in a load-balanced web server environment is largely correct. Let's break down the points you’ve mentioned and clarify some of the concepts to help you decide the best approach for high-performance distributed session state.
### Memcached O... | 35,222 | [
{
"from": "human",
"value": "I use ASP.NET and WCF services in a load balanced web server environment, using Memcached in the service layer.\nI also wanted to replace the use of ASP.NET State Server (for Session State) with Memcached.\nNow I am afraid it is not a good thing, because from what i understand,\... |
There are some simple ones, some complex ones, but I cannot find the gold standard.
Can anyone point me to "the best" way to let a user define a search criteria (or filter) to retrieve results?
This is complicated since:
Need to support about 10 different types of elements
Support And, Or, Not
Parenthesis (a killer t... | Creating a user-friendly search interface that supports complex filtering and criteria can indeed be challenging. However, here are some strategies and suggestions that can help you design an effective solution:
### 1. **Graphical User Interface (GUI) Approach:**
- **Faceted Search:** Provide users with a list of f... | 36,224 | [
{
"from": "human",
"value": "There are some simple ones, some complex ones, but I cannot find the gold standard. \nCan anyone point me to \"the best\" way to let a user define a search criteria (or filter) to retrieve results?\nThis is complicated since:\n\nNeed to support about 10 different types of elemen... |
I remember some rules from a time ago (pre-32bit Intel processors), when was quite frequent (at least for me) having to analyze the assembly output generated by C/C++ compilers (in my case, Borland/Turbo at that time) to find performance bottlenecks, and to safely mix assembly routines with C/C++ code. Things like usin... | Analyzing assembly output from C/C++ compilers and understanding how to properly interface assembly with C/C++ is an important skill, especially when performance is a priority. Here’s a guide to finding references and creating a consolidated resource for the conventions used by popular compilers and processor architect... | 34,123 | [
{
"from": "human",
"value": "I remember some rules from a time ago (pre-32bit Intel processors), when was quite frequent (at least for me) having to analyze the assembly output generated by C/C++ compilers (in my case, Borland/Turbo at that time) to find performance bottlenecks, and to safely mix assembly r... |
If it does, then how do you justify the overheads incurred (journaling etc.)?
If it does not, then how come the pagefile gets fragmented?
Additionally, would increasing the cluster size improve pagefile performance (cluster slack space is a non-issue)?
| When discussing the overheads associated with journaling, fragmentation of the pagefile, and the impact of cluster size on pagefile performance, it's important to consider a few fundamental concepts related to file systems and virtual memory management.
### Journaling Overheads
1. **Justifying Overheads**:
- Jour... | 38,757 | [
{
"from": "human",
"value": "If it does, then how do you justify the overheads incurred (journaling etc.)?\nIf it does not, then how come the pagefile gets fragmented?\nAdditionally, would increasing the cluster size improve pagefile performance (cluster slack space is a non-issue)?\n"
},
{
"from": ... |
I have a set of 6 MSTest test assemblies. When I bring up the Test View window and group by Project all of my projects show up save one. I cannot seem to make Visual Studio understand that this project is a unit test assembly.
Resharper's Unit Test Runner has no problem identifying this sixth assembly. So the assembly ... | In Visual Studio 2008, the identification of a unit test assembly generally relies on the following criteria:
1. **Assembly Attributes**: The most common way to mark a project as a unit test assembly is through attributes in the assembly's code. Ensure that your assembly contains the necessary attributes. Specifically... | 37,199 | [
{
"from": "human",
"value": "I have a set of 6 MSTest test assemblies. When I bring up the Test View window and group by Project all of my projects show up save one. I cannot seem to make Visual Studio understand that this project is a unit test assembly.\nResharper's Unit Test Runner has no problem identif... |
Say I have a file with any number of lines, say, 125. I want to get all the lines except the first n, say, 20. So, I want lines 21–125.
Is there a way to do this with with tail/head, or some other tool?
| Yes, you can achieve this using the `tail` command in combination with the `head` command, or just with `tail` alone. Here are a few ways to do this in a Unix-like environment.
### Using `tail`
You can simply use the `tail` command to skip the first `n` lines. For example, to skip the first 20 lines and get the rest:... | 36,876 | [
{
"from": "human",
"value": "Say I have a file with any number of lines, say, 125. I want to get all the lines except the first n, say, 20. So, I want lines 21–125.\nIs there a way to do this with with tail/head, or some other tool?\n"
},
{
"from": "gpt",
"value": "Yes, you can achieve this usin... |
This is more of a strategy question instead of a 'help with code' question.
I have a content server and need to supply content to various shared hosting and would love to know how you guys would set this up. We would like the content to be 'cached' on the servers so that is appears as static (and to reduce the load on... | Setting up a content delivery strategy for shared hosting, while ensuring efficiency and reduced load on the content server, requires a well-planned architecture. Here’s a comprehensive strategy that focuses on caching, performance, and scalability:
### 1. **Content Distribution Network (CDN)**
- **Use a CDN**: Lev... | 36,392 | [
{
"from": "human",
"value": "This is more of a strategy question instead of a 'help with code' question.\nI have a content server and need to supply content to various shared hosting and would love to know how you guys would set this up. We would like the content to be 'cached' on the servers so that is ap... |
I'm using the ReportViewer control to display a Report within a WebForm, i've also implemented the "Export to Excel" feature, by calling the Render method of the Server Report
eg
ReportViewerControl.ServerReport.Render("Excel",etc,etc,etc);
My problem is that the exported report contains Hyperlinks that link to other ... | To achieve your requirement of having hyperlinks in the ReportViewer control that are visible in the web form but not included in the exported Excel spreadsheet, you'll need to use the SSRS (SQL Server Reporting Services) capabilities effectively. Here’s a way to handle this scenario:
### Approach
1. **Use an Express... | 34,926 | [
{
"from": "human",
"value": "I'm using the ReportViewer control to display a Report within a WebForm, i've also implemented the \"Export to Excel\" feature, by calling the Render method of the Server Report\neg\nReportViewerControl.ServerReport.Render(\"Excel\",etc,etc,etc);\n\nMy problem is that the export... |
When adding a reference to a user control in my web project, I type
<%@ Register
Then the IDE steals my focus and puts it in the Error List pane, on the error
"Generation of designer file failed:
The directive is missing a 'tagprefix'
attribute."
Obviously there isn't a tagprefix attribute yet, I'm still typin... | The behavior you’re experiencing with Visual Studio, where it automatically moves focus to the Error List pane when an error is encountered, can be quite frustrating, especially when you are in the middle of typing a directive.
Here are some steps and tips to help mitigate this issue:
1. **Disable Error Squiggles Tem... | 36,009 | [
{
"from": "human",
"value": "When adding a reference to a user control in my web project, I type\n<%@ Register \n\nThen the IDE steals my focus and puts it in the Error List pane, on the error \n\n\"Generation of designer file failed:\n The directive is missing a 'tagprefix'\n attribute.\"\n\nObviously th... |
I have an application where I accept a socket connection from a telnet client and put up a simple, keyboard driven character GUI.
The telnet client, at least on Linux, defaults into line-at-a-time mode, so I always have to do ^]mode char manually.
A skim of the relevant RFCs suggests that if my application simply sent ... | To switch a Telnet client from line mode to character mode, you can use the Telnet Protocol's `IAC DONT LINEMODE` command. In your application, you will want to send the following byte sequence as soon as the client connects:
1. IAC (Interpret as Command) is represented by the byte `\377`.
2. DONT (negation of a comma... | 38,168 | [
{
"from": "human",
"value": "I have an application where I accept a socket connection from a telnet client and put up a simple, keyboard driven character GUI.\nThe telnet client, at least on Linux, defaults into line-at-a-time mode, so I always have to do ^]mode char manually.\nA skim of the relevant RFCs s... |
I am working on an application that uses several large canvas controls (several thousand pixels across), layered on top of each other. The canvas controls themselves are completely invisible, but each contains a number of controls, mainly images.
My question is, is there a recommended maximum size for a canvas, or is ... | When working with large canvas controls in an application, there are several considerations to keep in mind regarding performance, memory usage, and rendering behavior. Here are some points to consider:
### Maximum Canvas Size
1. **Memory Usage**: The size of the canvas can impact memory usage significantly, especial... | 35,480 | [
{
"from": "human",
"value": "I am working on an application that uses several large canvas controls (several thousand pixels across), layered on top of each other. The canvas controls themselves are completely invisible, but each contains a number of controls, mainly images.\nMy question is, is there a rec... |
My friend produced a small proof-of-concept assembler that worked on x86. I decided to port it for x86_64 as well, but I immediately hit a problem.
I wrote a small piece of program in C, then compiled and objdumped the code. After that I inserted it to my python script, therefore the x86_64 code is correct:
from ctypes... | The segmentation fault you're encountering when running your Python script that injects assembly code stems from how the memory is managed and accessed in modern operating systems. When you create a string in Python and use `ctypes` to cast it into a callable function pointer, you are likely running into two issues:
1... | 35,130 | [
{
"from": "human",
"value": "My friend produced a small proof-of-concept assembler that worked on x86. I decided to port it for x86_64 as well, but I immediately hit a problem.\nI wrote a small piece of program in C, then compiled and objdumped the code. After that I inserted it to my python script, therefo... |
I have the very same delphi version, bpls, components, everything. And yet in three machines the resulting executables are different in size.
What else can influence in the size of the exe?
In my machine I get this size (Vista 6.0.6001):
4.547.584 bytes
In my colleague's machine, he gets (XP 5.1.2600 SP3):
4.530.688 b... | Yes, the operating system version and environment can influence the size of the compiled executable in several ways:
1. **Different Compiler Settings:** Even if you are using the same version of Delphi, different machines might have different default compiler settings or project configurations (like optimization setti... | 39,059 | [
{
"from": "human",
"value": "I have the very same delphi version, bpls, components, everything. And yet in three machines the resulting executables are different in size.\nWhat else can influence in the size of the exe?\nIn my machine I get this size (Vista 6.0.6001):\n4.547.584 bytes\n\nIn my colleague's m... |
I’d like a visual database tool that will allow me to access multiple database types from the same program. I’m looking for anything that supports Mysql, PostgreSQL, and Derby. Anything else it supports is a bonus.
| There are several visual database tools that can help you manage multiple database types, including MySQL, PostgreSQL, and Derby. Here are a few options you might consider:
1. **DBeaver**:
- **Supported Databases**: MySQL, PostgreSQL, Derby, Oracle, SQLite, SQL Server, and many others.
- **Features**: DBeaver is... | 36,941 | [
{
"from": "human",
"value": "I’d like a visual database tool that will allow me to access multiple database types from the same program. I’m looking for anything that supports Mysql, PostgreSQL, and Derby. Anything else it supports is a bonus.\n"
},
{
"from": "gpt",
"value": "There are several v... |
A Wicket application serializes and caches all pages to support stateful components, as well as for supporting the back button, among other possible reasons. I have an application which uses setResponsePage to navigate from screen to screen. Over a pretty short amount of time the session gets rather large because all o... | In Apache Wicket, session management and page caching can lead to excessive memory usage, especially if a lot of stateful pages are being retained in the session. To manage session growth effectively, particularly if you only need to retain a few recent pages, you can take a few approaches:
### 1. Use `setResponsePage... | 38,454 | [
{
"from": "human",
"value": "A Wicket application serializes and caches all pages to support stateful components, as well as for supporting the back button, among other possible reasons. I have an application which uses setResponsePage to navigate from screen to screen. Over a pretty short amount of time th... |
Currently i have a NotInheritable class in App_Code that hold some variables that need to be access thur-out the application but i don't think it's a good way to manage global variables.
| Using a `NotInheritable` (or `sealed`) class in ASP.NET's `App_Code` to hold global variables is one approach, but it does have its limitations and potential drawbacks, especially concerning maintainability and testability. Here are some better practices for managing global state or shared variables in a web applicatio... | 36,563 | [
{
"from": "human",
"value": "Currently i have a NotInheritable class in App_Code that hold some variables that need to be access thur-out the application but i don't think it's a good way to manage global variables. \n"
},
{
"from": "gpt",
"value": "Using a `NotInheritable` (or `sealed`) class i... |
I am using Structure map like the MVC storefront by Rob Conery does and I have an AdminController and so to get to it I just type:
website/Admin/action
however if I miss spell the controller name I get the error below:
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: key
There err... | The issue you’re encountering arises when your application tries to resolve a controller that does not exist, leading to a `null` value being returned. To handle this more gracefully, you can implement custom error handling in your ASP.NET MVC application.
Here are a few approaches you can consider to manage this erro... | 28,648 | [
{
"from": "human",
"value": "I am using Structure map like the MVC storefront by Rob Conery does and I have an AdminController and so to get to it I just type:\nwebsite/Admin/action\n\nhowever if I miss spell the controller name I get the error below:\nException Details: System.ArgumentNullException: Value ... |
I'm writing an ASP.NET MVC application and trying to use a RESX file to store error messages and other common strings. The problem is that the RESX generator builds internal classes and it's not possible to use them in the ASP.NET HTML code using a syntax like:
<%= Resources.SomeString %>
Is it possible to tweak a se... | In an ASP.NET MVC application, when you use RESX files for localization or storing common strings, the default behavior is indeed to generate internal classes for accessing the resources, which can limit their use in your views.
To generate a public class instead of an internal one, you can follow these steps:
### Op... | 35,847 | [
{
"from": "human",
"value": "I'm writing an ASP.NET MVC application and trying to use a RESX file to store error messages and other common strings. The problem is that the RESX generator builds internal classes and it's not possible to use them in the ASP.NET HTML code using a syntax like:\n<%= Resources.S... |
Recently, I found myself having to write up some concerns I have about race conditions in an application that is in development (not by me). This will likely be brought to the attention of stakeholders who are non-technical and with whom I do not have a direct line of communication, so my explanation needs to be in wr... | When explaining race conditions to a non-technical audience, the key is to use relatable analogies and straightforward language while ensuring that the core issue is clearly conveyed. Here's how I would approach it:
---
**Understanding Race Conditions: A Simple Explanation**
Imagine a busy kitchen in a restaurant. T... | 36,708 | [
{
"from": "human",
"value": "Recently, I found myself having to write up some concerns I have about race conditions in an application that is in development (not by me). This will likely be brought to the attention of stakeholders who are non-technical and with whom I do not have a direct line of communica... |
How do you split a string into tokens in C++?
| In C++, you can split a string into tokens using various methods. A common approach is to use the `std::istringstream` class along with the extraction operator (`>>`) for whitespace-delimited tokens. Alternatively, you can use the `std::string::find` and `std::string::substr` methods to split based on specific delimite... | 37,307 | [
{
"from": "human",
"value": "How do you split a string into tokens in C++?\n"
},
{
"from": "gpt",
"value": "In C++, you can split a string into tokens using various methods. A common approach is to use the `std::istringstream` class along with the extraction operator (`>>`) for whitespace-delimi... |
I'm using GCC; __FILE__ returns the current source file's entire path and name: /path/to/file.cpp. Is there a way to get just the file's name file.cpp (without its path) at compile time? Is it possible to do this in a portable way? Can template meta programming be applied to strings?
I am using this in an error logging... | You can achieve the desired effect of extracting just the filename from `__FILE__` at compile time using a combination of preprocessor directives. However, you should note that the C/C++ preprocessor does not directly support string manipulation like a full programming language, and it doesn't have native string functi... | 35,989 | [
{
"from": "human",
"value": "I'm using GCC; __FILE__ returns the current source file's entire path and name: /path/to/file.cpp. Is there a way to get just the file's name file.cpp (without its path) at compile time? Is it possible to do this in a portable way? Can template meta programming be applied to str... |
Are/were you using XmlBlaster? What do you think about it? What are its weaknesses and strengths?
| XmlBlaster is an open-source messaging middleware that facilitates communication between distributed systems. It is based on the XML-based messaging paradigm and offers features such as publish/subscribe, request/reply, and point-to-point messaging patterns. Here are some strengths and weaknesses of XmlBlaster:
### St... | 38,012 | [
{
"from": "human",
"value": "Are/were you using XmlBlaster? What do you think about it? What are its weaknesses and strengths?\n"
},
{
"from": "gpt",
"value": "XmlBlaster is an open-source messaging middleware that facilitates communication between distributed systems. It is based on the XML-bas... |
I was wondering, if there is any generalities (among all the javascript engines out there) in the cost related to execute a given instruction vs another.
For instance, eval() is slower than calling a function that already has been declared.
I would like to get a table with several instructions/function calls vs an abso... | There isn't a definitive, universally agreed-upon table that compares the execution cost of various JavaScript instructions across all engines, primarily due to the complexity and variability of JavaScript engines and the optimizations they employ. Each JavaScript engine (such as V8, SpiderMonkey, and JavaScriptCore) h... | 37,128 | [
{
"from": "human",
"value": "I was wondering, if there is any generalities (among all the javascript engines out there) in the cost related to execute a given instruction vs another.\nFor instance, eval() is slower than calling a function that already has been declared.\nI would like to get a table with sev... |
Say you have a class declaration, e.g.:
class MyClass
{
int myInt=7;
int myOtherInt;
}
Now, is there a way in generic code, using reflection (or any other means, for that matter), that I can deduce that myInt has a default value assigned, whereas myOtherInt does not?
Note the difference between being initialised ... | In C#, it is indeed difficult to determine whether a field has been explicitly initialized with a default value, or if it has merely been set to its implicit default value. The language itself does not provide a way to differentiate between these two states at runtime using reflection or any other built-in mechanism.
... | 37,321 | [
{
"from": "human",
"value": "Say you have a class declaration, e.g.:\n\nclass MyClass\n{\n int myInt=7;\n int myOtherInt;\n}\n\nNow, is there a way in generic code, using reflection (or any other means, for that matter), that I can deduce that myInt has a default value assigned, whereas myOtherInt does no... |
This code works in Firefox, Internet Explorer, not in Safari/Chrome:
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery-ui.js"></script>
<script>
function newDiv() {
var div = $('<div id="divNew" style="width: 50px; height: 50px; bo... | The issue you're encountering with the `draggable` functionality in Safari/Chrome likely stems from the fact that you're using an outdated version of jQuery (1.5.2) and potentially an incompatible version of jQuery UI. Both jQuery and jQuery UI have undergone significant updates and bug fixes since version 1.5.2, and i... | 37,207 | [
{
"from": "human",
"value": "This code works in Firefox, Internet Explorer, not in Safari/Chrome:\n<head>\n <script type=\"text/javascript\" src=\"jquery.js\"></script>\n <script type=\"text/javascript\" src=\"jquery-ui.js\"></script>\n <script>\n function newDiv() {\n var div = $... |
How do I make all occurrences of a phrase (search term) in a file to be highlighted in the VS code editor?
| In Visual Studio Code (VS Code), you can highlight all occurrences of a search term or phrase in a file using the following steps:
1. **Open the File**: Open the file in which you want to highlight the occurrences.
2. **Use the Find Feature**:
- Press `Ctrl + F` (or `Cmd + F` on macOS) to open the Find widget at t... | 38,833 | [
{
"from": "human",
"value": "How do I make all occurrences of a phrase (search term) in a file to be highlighted in the VS code editor?\n"
},
{
"from": "gpt",
"value": "In Visual Studio Code (VS Code), you can highlight all occurrences of a search term or phrase in a file using the following ste... |
I want to update two columns in a table. The value of the second column is dependant upon the first; If the first is Null the second's value is 'false', otherwise it is 'true'.
Can I do this within TSQL or do I need to work out the values separately in my code before hand and change the SQL to suit. I was looking fo... | You can achieve this directly in T-SQL without needing to calculate the values separately in your code. You can use a simple `UPDATE` statement along with a `CASE` expression to set the values based on whether the first column is `NULL` or not.
Here's an example of how you can structure your SQL code:
```sql
DECLARE ... | 39,491 | [
{
"from": "human",
"value": "I want to update two columns in a table. The value of the second column is dependant upon the first; If the first is Null the second's value is 'false', otherwise it is 'true'.\nCan I do this within TSQL or do I need to work out the values separately in my code before hand and... |
OK, struggling to get a definitive answer to this one...
I have an application written in VB6 which requires MDAC (2.8 for this installation). MDAC is included in the installer for my application. When the software is removed and re-installed on the same machine MDAC seems to go awry and I receive the following error a... | The error you're experiencing, `Run-time error '-2147024769 (8007007f)': Automation error The specified procedure could not be found`, suggests that there might be a problem with the MDAC (Microsoft Data Access Components) installation or the underlying components that your VB6 application relies on.
Here are some ste... | 35,047 | [
{
"from": "human",
"value": "OK, struggling to get a definitive answer to this one...\nI have an application written in VB6 which requires MDAC (2.8 for this installation). MDAC is included in the installer for my application. When the software is removed and re-installed on the same machine MDAC seems to g... |
I'm looking for your best solutions for creating a new message instance based on a pre-defined XSD schema to be used within a Biztalk orchestration.
Extra votes go to answers with clear & efficient examples or answers with quality referenced links.
| Creating a new message instance based on a pre-defined XSD schema in BizTalk orchestration involves several steps, including importing the XSD schema, generating the corresponding BizTalk artifacts, and then using these artifacts within your orchestration. Here's a detailed guide with examples to help you through the p... | 36,043 | [
{
"from": "human",
"value": "I'm looking for your best solutions for creating a new message instance based on a pre-defined XSD schema to be used within a Biztalk orchestration.\nExtra votes go to answers with clear & efficient examples or answers with quality referenced links.\n"
},
{
"from": "gpt"... |
I'm using QT's QGLFramebufferObject for off-screen rendering.
After rendering to the buffer I read the result using glReadPixels()
The problem is that sometimes the background color I read is just 0 (transparent black) and sometimes it is 0xFF000000 (opaque black)
This seem to be related to the time the buffer is initi... | When using QGLFramebufferObject (FBO) in Qt for off-screen rendering, the behavior you're encountering regarding the background color is likely related to how the FBO is being initialized and how OpenGL manages buffers and their contents.
### Understanding FBO Initialization and Background Color
1. **FBO Initializati... | 31,276 | [
{
"from": "human",
"value": "I'm using QT's QGLFramebufferObject for off-screen rendering.\nAfter rendering to the buffer I read the result using glReadPixels()\nThe problem is that sometimes the background color I read is just 0 (transparent black) and sometimes it is 0xFF000000 (opaque black)\nThis seem t... |
I am writing a simple memory game using ruby + qt (trying to get away from c++ for while...)
In order to allow a X second timeout to view two open pieces, I need either timers or do the work in a background thread.
What is the simplest way of implementing this without reinventing the wheel?
Ruby threads? Qt threads? Qt... | To implement a simple memory game in Ruby using Qt, you have several options for handling the timeout when two cards are revealed. The simplest and most straightforward approach would be to use a **Qt Timer**. Qt Timers are integrated into the event loop of the Qt framework, making them a natural fit for GUI applicatio... | 36,330 | [
{
"from": "human",
"value": "I am writing a simple memory game using ruby + qt (trying to get away from c++ for while...)\nIn order to allow a X second timeout to view two open pieces, I need either timers or do the work in a background thread.\nWhat is the simplest way of implementing this without reinvent... |
Given:
my @mylist1;
push(@mylist1,"A");
push(@mylist1,"B");
push(@mylist1,"C");
my @mylist2;
push(@mylist2,"A");
push(@mylist2,"D");
push(@mylist2,"E");
What's the quickest way in Perl to insert in mylist2 all elements that are in mylist1 and not already in mylist2 (ABCDE).
| To insert all elements from `@mylist1` into `@mylist2` that are not already in `@mylist2`, you can use a hash to keep track of the elements in `@mylist2`. This will allow you to check for duplicates efficiently. Here's a quick way to do this in Perl:
```perl
my @mylist1 = ("A", "B", "C");
my @mylist2 = ("A", "D", "E")... | 39,636 | [
{
"from": "human",
"value": "Given:\nmy @mylist1;\npush(@mylist1,\"A\");\npush(@mylist1,\"B\");\npush(@mylist1,\"C\");\n\nmy @mylist2;\npush(@mylist2,\"A\");\npush(@mylist2,\"D\");\npush(@mylist2,\"E\");\n\nWhat's the quickest way in Perl to insert in mylist2 all elements that are in mylist1 and not already... |
Does anyone know if NHibernate supports returning output parameters from stored procedures? I've had a search in the documentation but can't really find anything that confirms either way.
| NHibernate does support calling stored procedures, including those that use output parameters, but it's not as straightforward as some other ORM frameworks. You can utilize native SQL queries to achieve this. Here's a general approach on how you can work with stored procedures and output parameters in NHibernate:
1. *... | 33,308 | [
{
"from": "human",
"value": "Does anyone know if NHibernate supports returning output parameters from stored procedures? I've had a search in the documentation but can't really find anything that confirms either way.\n"
},
{
"from": "gpt",
"value": "NHibernate does support calling stored procedu... |
Any python libs for parsing apache config files or if not python anyone aware of such thing in other languages (perl, php, java, c#)?
As i'll be able to rewrite them in python.
| Parsing Apache configuration files can be a bit tricky due to the syntax and various directives used in those files. While there are no widely known dedicated libraries in Python specifically for parsing Apache config files, you can handle the parsing using general-purpose libraries or by writing a custom parser. Below... | 35,473 | [
{
"from": "human",
"value": "Any python libs for parsing apache config files or if not python anyone aware of such thing in other languages (perl, php, java, c#)?\nAs i'll be able to rewrite them in python.\n"
},
{
"from": "gpt",
"value": "Parsing Apache configuration files can be a bit tricky d... |
For Each line As String In System.IO.File.ReadAllLines("file.txt")
'Do Something'
Next
and
Using f As System.IO.FileStream = System.IO.File.OpenRead("somefile.txt")
Using s As System.IO.StreamReader = New System.IO.StreamReader(f)
While Not s.EndOfStream
Dim line As String = s.ReadL... | The code snippets you provided are written in Visual Basic .NET (VB.NET). If you are encountering issues in Visual Studio 2005 where your code is mostly red (which typically means there are errors), there are a few common reasons for this.
### Possible Issues and Solutions:
1. **Check for References:**
Ensure you ... | 33,238 | [
{
"from": "human",
"value": "For Each line As String In System.IO.File.ReadAllLines(\"file.txt\")\n'Do Something'\nNext\n\nand\nUsing f As System.IO.FileStream = System.IO.File.OpenRead(\"somefile.txt\")\n Using s As System.IO.StreamReader = New System.IO.StreamReader(f)\n While Not s.EndOfStr... |
(Scroll down to bottom of post to find solution.)
Got a asp.net page which contains a
Datalist. Inside this datalist, there
is a template containing a
dropdownlist and each time the
datalist is filled with an item, a
ItemCreatedCommand is called. The
itemCreatedCommand is responsible for
databinding the dropdownlist. ... | It seems you've encountered a common issue when working with dynamic data controls in ASP.NET, especially regarding event handling and state management. Let's break down the key points that lead to your solution and clarify some of the concepts involved.
### Problem Breakdown:
1. **Data Binding in ItemCreated**: Using... | 35,686 | [
{
"from": "human",
"value": "(Scroll down to bottom of post to find solution.)\nGot a asp.net page which contains a\nDatalist. Inside this datalist, there\nis a template containing a\ndropdownlist and each time the\ndatalist is filled with an item, a\nItemCreatedCommand is called. The\nitemCreatedCommand i... |
To my way of thinking I need to use tooltip like the tooltip in 1.x and the magicword #tip# 's function.
Any suggestion?
| If you're looking to implement tooltips similar to those in a previous version (like 1.x) and the functionality of the magic word `#tip#`, here are a few suggestions you could consider:
### 1. **Using CSS and JavaScript for Tooltips**
You can create custom tooltips using HTML, CSS, and a bit of JavaScript. Here’s a s... | 34,609 | [
{
"from": "human",
"value": "To my way of thinking I need to use tooltip like the tooltip in 1.x and the magicword #tip# 's function.\nAny suggestion?\n"
},
{
"from": "gpt",
"value": "If you're looking to implement tooltips similar to those in a previous version (like 1.x) and the functionality ... |
This question exists because it has
historical significance, but it is not
considered a good, on-topic question
for this site, so please do not use it
as evidence that you can ask similar
questions here.
More info: https://stackoverflow.com/faq
Anyone knows if it's possible to find all A records, CNAME or s... | To find all DNS records (A, CNAME, etc.) for a domain name, you can use various tools and techniques. However, it’s important to note that you may not be able to retrieve all records, especially if they are not publicly accessible or if DNS servers have restrictions.
Here are some methods you can use to find the DNS r... | 37,414 | [
{
"from": "human",
"value": "\nThis question exists because it has\n historical significance, but it is not\n considered a good, on-topic question\n for this site, so please do not use it\n as evidence that you can ask similar\n questions here.\nMore info: https://stackoverflow.com/faq\n\nAnyone knows ... |
In a .NET CF application I wrote, one of the features is to acquire frames from remote cameras. Frames are acquired as single jpeg images and displayed on the screen when available.
It was a good enough solution, but I don't like the fact that the time needed to convert the stream into an Image object, with the Bitmap(... | If you're working with .NET Compact Framework and need to convert a JPEG image stream to an `Image` object without the overhead you're experiencing with the `Bitmap` constructor, you can consider a few alternative approaches to improve performance.
1. **Use a MemoryStream**: Since the Compact Framework doesn’t have th... | 36,466 | [
{
"from": "human",
"value": "In a .NET CF application I wrote, one of the features is to acquire frames from remote cameras. Frames are acquired as single jpeg images and displayed on the screen when available.\nIt was a good enough solution, but I don't like the fact that the time needed to convert the str... |
I'm using MediaTemple's (dv) hosting service. How do I determine what mail-server is installed? Should I use the shell? If so, what command would be used?
| To determine what mail server is installed on your MediaTemple (dv) hosting service, you can indeed use the shell (SSH) to connect to your server and check the mail server software in use. Here are some steps and commands you can use:
1. **Connect to your server via SSH**:
Use an SSH client (like Terminal on macOS/... | 38,392 | [
{
"from": "human",
"value": "I'm using MediaTemple's (dv) hosting service. How do I determine what mail-server is installed? Should I use the shell? If so, what command would be used?\n"
},
{
"from": "gpt",
"value": "To determine what mail server is installed on your MediaTemple (dv) hosting ser... |
What percentage of your total development effort do you spend on implementing and maintaining simple Create, Read, Update and Delete (CRUD) methods in your data access layer?
Does moving to an ORM like Hibernate or Entity Framework lead to significant savings?
Are there any design smells which let you know when moving ... | Hi Ashish,
The percentage of total development effort spent on implementing and maintaining CRUD operations in a data access layer can vary significantly based on several factors, including the complexity of the application, the number of entities, and the team's familiarity with the technology stack. However, it's no... | 38,131 | [
{
"from": "human",
"value": "What percentage of your total development effort do you spend on implementing and maintaining simple Create, Read, Update and Delete (CRUD) methods in your data access layer?\nDoes moving to an ORM like Hibernate or Entity Framework lead to significant savings?\nAre there any de... |
I am looking to write a function like
ref String TestIt( int index )
{
return this.TestArray[index];
};
so that I could write code like:
MyClass.TestIt(0) = "Hello World";
My goal is to mimic this c++ declaration
CString& MyClass::Data( UINT index);
By Reference I am referring to the c++ term the Address of the var... | In C#, you cannot directly return a reference to a member of an array or list like you can in C++. However, you can achieve similar functionality by using an array wrapper or a custom class with a property that provides a reference-like behavior.
Since you want to keep it as close to the C++ style as possible while tr... | 37,471 | [
{
"from": "human",
"value": "I am looking to write a function like \nref String TestIt( int index )\n{\nreturn this.TestArray[index];\n};\n\nso that I could write code like:\nMyClass.TestIt(0) = \"Hello World\";\n\nMy goal is to mimic this c++ declaration\nCString& MyClass::Data( UINT index);\n\nBy Referenc... |
I am trying to write a decorator to do logging:
def logger(myFunc):
def new(*args, **keyargs):
print 'Entering %s.%s' % (myFunc.im_class.__name__, myFunc.__name__)
return myFunc(*args, **keyargs)
return new
class C(object):
@logger
def f():
pass
C().f()
I would like this to p... | The error you're encountering is due to the fact that you are trying to access the `im_class` attribute, which is specific to bound methods in Python 2. However, in Python 3 (which is what you are likely using since you've defined your class using `object`), you need to use a different approach. In Python 3, bound meth... | 36,904 | [
{
"from": "human",
"value": "I am trying to write a decorator to do logging:\ndef logger(myFunc):\n def new(*args, **keyargs):\n print 'Entering %s.%s' % (myFunc.im_class.__name__, myFunc.__name__)\n return myFunc(*args, **keyargs)\n\n return new\n\nclass C(object):\n @logger\n def... |
The background
I'm building a fair-sized web application with a friend in my own time, and we've decided to go with the Django framework on Python. Django provides us with a lot of features we're going to need, so please don't suggest alternative frameworks.
The only decision I'm having trouble with, is whether we u... | It's great to see that you're taking the time to carefully consider your technology stack for your web application! Here are some insights regarding your questions about Jython and its compatibility with Django:
### Jython Limitations
1. **Library Support**: Jython does not support all Python libraries, especially tho... | 36,760 | [
{
"from": "human",
"value": " The background \nI'm building a fair-sized web application with a friend in my own time, and we've decided to go with the Django framework on Python. Django provides us with a lot of features we're going to need, so please don't suggest alternative frameworks.\nThe only decisi... |
I'm fairly new to deploying desktop applications, so this is the first time I'm building an installer for my software. Currently, the first time I run my software after installing it, it crashes. After that, it runs fine. I'm still in the process of debugging this issue, but I've noticed that a reboot immediately af... | When deploying desktop applications, it's not uncommon to encounter issues that cause your software to crash on the first run after installation. Here are some common reasons why some installers prompt for a reboot before running the software:
### Common Reasons for Reboot Prompt:
1. **File Locks**: During installati... | 35,577 | [
{
"from": "human",
"value": "I'm fairly new to deploying desktop applications, so this is the first time I'm building an installer for my software. Currently, the first time I run my software after installing it, it crashes. After that, it runs fine. I'm still in the process of debugging this issue, but ... |
I got a message saying script xyz.py returned exit code 0. What does this mean?
What do the exit codes in Python mean? How many are there? Which ones are important?
| In Python, as well as in many other programming languages, exit codes (also known as return codes or status codes) are used to indicate the status of a program after it has finished executing. The exit code is a number returned to the operating system, where `0` typically signifies successful execution, and any non-zer... | 35,368 | [
{
"from": "human",
"value": "I got a message saying script xyz.py returned exit code 0. What does this mean?\nWhat do the exit codes in Python mean? How many are there? Which ones are important?\n"
},
{
"from": "gpt",
"value": "In Python, as well as in many other programming languages, exit code... |
I have deployed a new build on Production server, but I dont see the change in this version. I found out that it was caused due to old version of the DLL file under the temporary ASP.net folder
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
In DEV environment, I can delete, but in Prod. I have... | To ensure that the new DLL files are recreated after deploying a new build on your production server, you can take the following steps:
### 1. **Recycle the Application Pool**
One of the simplest ways to force ASP.NET to clear the Temporary ASP.NET Files and regenerate the necessary DLLs is to recycle the application ... | 32,604 | [
{
"from": "human",
"value": "I have deployed a new build on Production server, but I dont see the change in this version. I found out that it was caused due to old version of the DLL file under the temporary ASP.net folder \nC:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files \n\nIn D... |
I have the following Macro I want to call from within an AutoHotkey script in order to set certain dates in my MonthCal object to be bold.
http://msdn.microsoft.com/en-us/library/bb774722(VS.85).aspx
How would I go about that?
Note that it's possible the easiest way to do it is to write a simple VB script which uses t... | Certainly! To achieve your goal of setting certain dates in your MonthCal object to be bold using an AutoHotkey script, you have a couple of options.
Since you're considering using a VBScript to run your macro, here's a basic outline of how to do that:
### Step 1: Create the VBScript
First, you'll need to create a ... | 31,319 | [
{
"from": "human",
"value": "I have the following Macro I want to call from within an AutoHotkey script in order to set certain dates in my MonthCal object to be bold.\nhttp://msdn.microsoft.com/en-us/library/bb774722(VS.85).aspx\nHow would I go about that? \nNote that it's possible the easiest way to do it... |
In visual studio 2008, when we press Ctrl+F5, the ASP.NET Development Server is launched to simulate a Web Server. I'm wondering what server does it simulate? IIS6 or IIS7? Is it possible to customize what server it simulate?
| In Visual Studio 2008, when you press `Ctrl + F5`, the built-in ASP.NET Development Server (also known as Cassini) is launched. This server is a lightweight web server that is specifically designed for development purposes and is not a direct simulation of IIS (Internet Information Services) versions like IIS6 or IIS7.... | 39,228 | [
{
"from": "human",
"value": "In visual studio 2008, when we press Ctrl+F5, the ASP.NET Development Server is launched to simulate a Web Server. I'm wondering what server does it simulate? IIS6 or IIS7? Is it possible to customize what server it simulate?\n"
},
{
"from": "gpt",
"value": "In Visua... |
With WSSv2 (SharePoint 2003) you could get the version of SharePoint you were working with
e.g. SPGloablAdmin.Version gives you "12.0.0.6219" for WSSv3 SP1
However its now obsolete (although still works).
Does anyone know the WSSv3 (SharePoint 2007) equivalent?
You have things like SPWebService.ContentService.Version ... | In SharePoint 2007 (WSS v3), you can still retrieve the version of the SharePoint server by utilizing the `SPGlobalAdmin` class. However, since you've mentioned that `SPGlobalAdmin.Version` is obsolete, you can use another approach by accessing the `SPFarm` class.
Here is how you can get the version information for S... | 40,244 | [
{
"from": "human",
"value": "With WSSv2 (SharePoint 2003) you could get the version of SharePoint you were working with\ne.g. SPGloablAdmin.Version gives you \"12.0.0.6219\" for WSSv3 SP1\nHowever its now obsolete (although still works). \nDoes anyone know the WSSv3 (SharePoint 2007) equivalent?\nYou have t... |
My client wants to send email announcements and reports for customers. Now. The python-side code doesn't seem too hard but there's the rest of the story.
What do I require in order to send such emails that won't end up getting blocked by email servers and clients?
| Sending emails that won't be blocked by email servers and clients requires careful consideration of several factors. Here's a checklist to help ensure that your email announcements and reports are delivered successfully:
### 1. **Use a Reputable Email Service Provider (ESP)**
- Choose a trusted ESP like SendGrid, M... | 34,381 | [
{
"from": "human",
"value": "My client wants to send email announcements and reports for customers. Now. The python-side code doesn't seem too hard but there's the rest of the story.\nWhat do I require in order to send such emails that won't end up getting blocked by email servers and clients?\n"
},
{
... |
I use ${...} instead of <c:out value="${...}"/> in JSPs; in tomcat 6.0.10, it can parse it successfully. But in SunOne Application Server 8.2, it doesn't support this kind of usage
| The `${...}` syntax is part of the Expression Language (EL) introduced in JSP 2.0, which allows for easier access to data stored in JavaBeans, maps, lists, etc. The `<c:out>` tag from the JSTL (JavaServer Pages Standard Tag Library) is a common way to output values in JSP while avoiding issues related to HTML escaping.... | 36,127 | [
{
"from": "human",
"value": "I use ${...} instead of <c:out value=\"${...}\"/> in JSPs; in tomcat 6.0.10, it can parse it successfully. But in SunOne Application Server 8.2, it doesn't support this kind of usage\n"
},
{
"from": "gpt",
"value": "The `${...}` syntax is part of the Expression Langu... |
I just read this post about why new-line warnings exist, but to be honest my team has people working on several different platforms and with several different editors (everyone uses what bests suites them), so the warning has become ubiquitous, and since its not really a warning worth taking care of it's become noise a... | It's common for teams working on cross-platform projects with multiple editors and development environments to run into issues with differing newline conventions, which can lead to a proliferation of warnings that can mask more serious issues. In GCC, the warning about line endings often relates to the `-Wnewline-eof` ... | 39,699 | [
{
"from": "human",
"value": "I just read this post about why new-line warnings exist, but to be honest my team has people working on several different platforms and with several different editors (everyone uses what bests suites them), so the warning has become ubiquitous, and since its not really a warning... |
I am using the link-report option in Flex Builder 3 to try to track down dependencies in my Flex application's modules.
However a different report is generated for each module and they all use the same filename so they end up overwriting each other!
Is there a way to generate separate files for each module - without ha... | Unfortunately, the Flex SDK does not support dynamic naming of the link report file directly through command line arguments as you've suggested (e.g., `linkreport_%MODULE%.xml`). The `-link-report` option only allows for a single output file, which is why you're encountering the issue of files being overwritten.
Howev... | 40,028 | [
{
"from": "human",
"value": "I am using the link-report option in Flex Builder 3 to try to track down dependencies in my Flex application's modules.\nHowever a different report is generated for each module and they all use the same filename so they end up overwriting each other!\nIs there a way to generate ... |
In a JSF dataTable I want to display the row index next to the rows... like:
Column A Column B
1 xxx
2 yyy
I thought that I could use an implicit el variable like #{rowIndex} but this is not working.
A solution I found is to create a binding for the data table and use the binding like:
<h:dataTa... | In JSF, to display the row index in a `h:dataTable`, you can use the `varStatus` attribute of the `h:dataTable` which provides you with a `UIData` object containing index information about the current row. This is a cleaner and more straightforward method than binding the data table.
Here’s how you can do it:
```xml... | 39,406 | [
{
"from": "human",
"value": "In a JSF dataTable I want to display the row index next to the rows... like:\nColumn A Column B\n1 xxx\n2 yyy\n\nI thought that I could use an implicit el variable like #{rowIndex} but this is not working.\nA solution I found is to create a binding for the... |
I got my Xampp server running and can run my html in subdirectories now, as well (can't have spaces in the subdirectory names).
SSI Includes or PHP Includes:
Xampp says SSI is deactivated. Tried uncommenting the lines for includes, but it doesn't change the deactivation.
How do I activate SSI?
Then, how do I implement ... | To enable Server Side Includes (SSI) on your XAMPP server and effectively use either SSI or PHP includes in your HTML files, follow these steps:
### Enabling Server Side Includes (SSI)
1. **Locate the Apache Configuration File:**
- Open the `httpd.conf` file. This is usually located in the directory:
```
... | 36,168 | [
{
"from": "human",
"value": "I got my Xampp server running and can run my html in subdirectories now, as well (can't have spaces in the subdirectory names).\nSSI Includes or PHP Includes:\nXampp says SSI is deactivated. Tried uncommenting the lines for includes, but it doesn't change the deactivation.\nHow ... |
I'm wondering if I'm missing something about Java Beans. I like my objects to do as much initialization in the constructor as possible and have a minimum number of mutators. Beans seem to go directly against this and generally feel clunky. What capabilities am I missing out on by not building my objects as Beans?
| JavaBeans are a specific convention in Java for creating reusable software components. They follow certain design principles that can sometimes seem counterintuitive, especially if you're accustomed to more traditional object-oriented principles, such as heavy reliance on constructors and encapsulation through private ... | 37,692 | [
{
"from": "human",
"value": "I'm wondering if I'm missing something about Java Beans. I like my objects to do as much initialization in the constructor as possible and have a minimum number of mutators. Beans seem to go directly against this and generally feel clunky. What capabilities am I missing out on b... |
Is it possible to write a stored procedure (in tsql or other variants) with dynamic parameters like sp_executesql?
i.e. the number and type of parameters in not known in advance and should be built dynamically on client side.
just the way you can pass any number of parameters with any type to sp_executesql.
| In T-SQL, you cannot create a stored procedure that accepts a dynamic number of parameters directly. However, you can achieve similar functionality by using a combination of techniques. Here are a couple of common approaches to work with dynamic parameters in T-SQL.
### Approach 1: Using a Single Parameter for Dynamic... | 31,341 | [
{
"from": "human",
"value": "Is it possible to write a stored procedure (in tsql or other variants) with dynamic parameters like sp_executesql?\ni.e. the number and type of parameters in not known in advance and should be built dynamically on client side. \njust the way you can pass any number of parameters... |
I have a set of core, complicated JavaScript data structures/classes that I'd like to be able to use both in the browser as JavaScript and run on the desktop with .NET 3.5. Is it possible to compile web-friendly JavaScript into assemblies that my C# code can access?
Managed JScript - Is there a compiler for this avai... | It's a challenging scenario to have a set of JavaScript data structures that you'd like to share between a web environment and a .NET 3.5 desktop application. Let's evaluate your options more closely.
### 1. Managed JScript and JScript .NET
Both of these are Microsoft technologies designed for running JScript on the .... | 36,739 | [
{
"from": "human",
"value": "I have a set of core, complicated JavaScript data structures/classes that I'd like to be able to use both in the browser as JavaScript and run on the desktop with .NET 3.5. Is it possible to compile web-friendly JavaScript into assemblies that my C# code can access?\n\nManaged ... |
I have a HTML with the following content:
... some text ...
<a href="file.aspx?userId=123§ion=2">link</a> ... some text ...
... some text ...
<a href="file.aspx?section=5&user=678">link</a> ... some text ...
... some text ...
I would like to parse that and get a match with named groups:
match 1
group["user"]=123
g... | You can achieve this by using regular expressions with named groups in Python. The key is to create a regex pattern that captures the `userId` and `section` parameters regardless of their order in the URL.
Here’s a Python code example that demonstrates how to parse the provided HTML content:
```python
import re
# Sa... | 35,869 | [
{
"from": "human",
"value": "I have a HTML with the following content:\n... some text ...\n<a href=\"file.aspx?userId=123§ion=2\">link</a> ... some text ...\n... some text ...\n<a href=\"file.aspx?section=5&user=678\">link</a> ... some text ...\n... some text ...\n\nI would like to parse that and get a ... |
Recently I was trying to make a calendar application that will display the current year-month-date to the user. The problem is, if the user is gonna keep my application running even for the next day, how do I get notified ?? How shall I change the date displayed ? I don't wanna poll the current date to update it. Is th... | In C#, if you want to keep your calendar application displaying the current date without polling for changes and without relying on system events like `SystemEvent.TimeChanged`, you can use a timer to update the display at a regular interval. However, if you're looking for a more efficient way to only update the displa... | 36,308 | [
{
"from": "human",
"value": "Recently I was trying to make a calendar application that will display the current year-month-date to the user. The problem is, if the user is gonna keep my application running even for the next day, how do I get notified ?? How shall I change the date displayed ? I don't wanna ... |
If a user requests a large file from an Apache web server, but cancels the download before it completes, is this logged by Apache?
Can I tell from the log file which responses were not sent fully, and how many bytes were sent?
| Yes, Apache can log incomplete downloads, and you can configure it to capture information about the bytes sent in response to a request. When a user cancels a download, Apache logs the request, and the status of the transfer can be reflected in the log files.
By default, Apache uses the `combined` or `common` log form... | 38,132 | [
{
"from": "human",
"value": "If a user requests a large file from an Apache web server, but cancels the download before it completes, is this logged by Apache?\nCan I tell from the log file which responses were not sent fully, and how many bytes were sent?\n"
},
{
"from": "gpt",
"value": "Yes, A... |
Is it possible to search every field of every table for a particular value in Oracle?
There are hundreds of tables with thousands of rows in some tables so I know this could take a very long time to query. But the only thing I know is that a value for the field I would like to query against is 1/22/2008P09RR8.
<
I've t... | Searching every field of every table for a particular value in an Oracle database is indeed challenging, especially when dealing with numerous tables and columns. Here are some steps and techniques you can follow to achieve your goal:
### Step 1: Identify All Tables and Columns
To search for a specific value in every... | 32,735 | [
{
"from": "human",
"value": "Is it possible to search every field of every table for a particular value in Oracle?\nThere are hundreds of tables with thousands of rows in some tables so I know this could take a very long time to query. But the only thing I know is that a value for the field I would like to ... |
Is there a way to modify the default template for new pages so that it includes my custom 'using' statements?
| Yes, you can modify the default template for new pages in your development environment or text editor to include custom `using` statements. The steps to do this may vary depending on the environment or editor you are using, but here are general instructions for a few popular ones:
### Visual Studio
1. **Locate the Te... | 38,270 | [
{
"from": "human",
"value": "Is there a way to modify the default template for new pages so that it includes my custom 'using' statements?\n"
},
{
"from": "gpt",
"value": "Yes, you can modify the default template for new pages in your development environment or text editor to include custom `usi... |
I write a large static method that takes a generic as a parameter argument. I call this method, and the framework throws a System.InvalidProgramException. This exception is thrown even before the first line of the method is executed.
I can create a static class which takes the generic argument, and then make this a met... | The issue you're encountering with the `System.InvalidProgramException` when using a generic static method is indeed tied to the way generics are implemented in .NET, and it can be particularly nuanced.
### Understanding the Exception
The `System.InvalidProgramException` is generally thrown when the Common Language R... | 35,653 | [
{
"from": "human",
"value": "I write a large static method that takes a generic as a parameter argument. I call this method, and the framework throws a System.InvalidProgramException. This exception is thrown even before the first line of the method is executed.\nI can create a static class which takes the ... |
I have an already large table that my clients are asking for me to extend the length of the notes field. The notes field is already an NVARCHAR(1000) and I am being asked to expand it to 3000. The long term solution is to move notes out of the table and create a notes table that uses an NVARCHAR(max) field that is on... | Increasing the length of the `NVARCHAR(1000)` field to `NVARCHAR(3000)` is a relatively straightforward task, but there are several considerations to keep in mind, especially given your intent to eventually move the notes field out of the table. Here are some potential problems and considerations for the short term:
1... | 37,738 | [
{
"from": "human",
"value": "I have an already large table that my clients are asking for me to extend the length of the notes field. The notes field is already an NVARCHAR(1000) and I am being asked to expand it to 3000. The long term solution is to move notes out of the table and create a notes table th... |
Environment
I'm working on a C++ application that uses SQL Native Client 9.0 to communicate with a SQL Server 2000 database.
Scenario
2 connections are opened to the DBMS
Each connection is set to use transactions
A query on Connection1 works with TableA
A query on Connection2 works with TableB
TableB has a foreign ke... | Yes, you are correctly diagnosing the situation as a potential deadlock issue stemming from the use of transactions across multiple connections that interact with related tables.
Here is a breakdown of what's happening in your scenario:
1. **Transaction on Connection1**: You start a transaction on Connection1 and ins... | 37,736 | [
{
"from": "human",
"value": "Environment\nI'm working on a C++ application that uses SQL Native Client 9.0 to communicate with a SQL Server 2000 database.\nScenario\n\n2 connections are opened to the DBMS\nEach connection is set to use transactions\nA query on Connection1 works with TableA\nA query on Conne... |
I would like to change the default behavior of Joomla's password reminding mechanism. I would like to be provided with checking of the strength of a password and (optionally) with captcha capabilities. I was wondering if there's a free component for Joomla which I could install and use out-of-the-box.
| While there are several extensions available for Joomla that can help you enhance the password reminder and reset functionality, finding one that specifically checks password strength and includes captcha capabilities out-of-the-box can be a bit challenging. However, here are a few options you might consider:
1. **Joo... | 38,913 | [
{
"from": "human",
"value": "I would like to change the default behavior of Joomla's password reminding mechanism. I would like to be provided with checking of the strength of a password and (optionally) with captcha capabilities. I was wondering if there's a free component for Joomla which I could install ... |
Given something like this:
thefont = New Font("Courier New", fontheight)
and this:
' g is a Graphics object
g.DrawString("some text", thefont, Brushes.Black, X, Y)
what can I put in the middle of the two to change the width of the font, so that "some text" is expanded or compressed horizontally but the height remains t... | To change the width of the font while keeping the height the same in a `Graphics` object, you can use a `Matrix` transformation in conjunction with `Graphics` methods. The `Matrix` class allows you to apply scaling transformations, among other things.
Here's how you can achieve this:
1. Create a `Matrix` instance.
2.... | 39,076 | [
{
"from": "human",
"value": "Given something like this:\nthefont = New Font(\"Courier New\", fontheight)\nand this:\n' g is a Graphics object\ng.DrawString(\"some text\", thefont, Brushes.Black, X, Y)\nwhat can I put in the middle of the two to change the width of the font, so that \"some text\" is expanded... |
I have a bit of code that looks like this:
text = reg.Replace(text, new MatchEvaluator(MatchEvalStuff));
I need to pass in a 2nd parameter like this:
text = reg.Replace(text, new MatchEvaluator(MatchEvalStuff, otherData));
Is this possible, and what would be the best way to do this?
| In C#, the `MatchEvaluator` delegate has a specific signature that only allows it to take a single `Match` parameter and return a `string`. Therefore, you cannot directly pass a second parameter to the `MatchEvaluator` delegate.
However, there are several ways to work around this limitation. Below are a few options:
... | 39,929 | [
{
"from": "human",
"value": "I have a bit of code that looks like this:\ntext = reg.Replace(text, new MatchEvaluator(MatchEvalStuff));\n\nI need to pass in a 2nd parameter like this:\ntext = reg.Replace(text, new MatchEvaluator(MatchEvalStuff, otherData));\n\nIs this possible, and what would be the best way... |
When I try to create a new task in the task scheduler via the Java ProcessBuilder class I get an access denied error an Windows Vista. On XP it works just fine.
When I use the "Run as adminstrator" option it runs on Vista as well..
However this is a additional step requeried an the users might not know about this. When... | To ensure your Java application requests administrative privileges on startup in Windows Vista and later versions, you can create a manifest file for your application that specifies the requirement for elevated permissions. When a user starts your application, Windows will check the manifest and prompt for administrato... | 33,518 | [
{
"from": "human",
"value": "When I try to create a new task in the task scheduler via the Java ProcessBuilder class I get an access denied error an Windows Vista. On XP it works just fine.\nWhen I use the \"Run as adminstrator\" option it runs on Vista as well..\nHowever this is a additional step requeried... |
One of the tenants of DDD is to not allow your objects to enter an invalid state. To me this means there shouldn't be a public parameterless constructor because that's going to be an object in an invalid state 99% of the time.
Is this a good way to move forward? It becomes a huge PITA when you just want to new-up a cl... | You're correct in identifying that one of the key principles of Domain-Driven Design (DDD) is to maintain the integrity of your domain objects. This means ensuring that your objects cannot enter an invalid state and that all invariants are enforced at the time of construction.
### Avoiding Parameterless Constructors
... | 35,968 | [
{
"from": "human",
"value": "One of the tenants of DDD is to not allow your objects to enter an invalid state. To me this means there shouldn't be a public parameterless constructor because that's going to be an object in an invalid state 99% of the time. \nIs this a good way to move forward? It becomes a h... |
Is it possible to terminate a running thread without setting/checking any flags/semaphores/etc.?
| In general, forcibly terminating a thread without using flags, semaphores, or similar synchronization mechanisms is not considered a safe or advisable practice in modern programming paradigms. The primary reason is that abruptly terminating a thread can lead to several issues, including:
1. **Resource Leaks:** If a th... | 38,821 | [
{
"from": "human",
"value": "Is it possible to terminate a running thread without setting/checking any flags/semaphores/etc.?\n"
},
{
"from": "gpt",
"value": "In general, forcibly terminating a thread without using flags, semaphores, or similar synchronization mechanisms is not considered a safe... |
I'm trying to find out how to read/write to the extended file properties in C#
e.g. Comment, Bit Rate, Date Accessed, Category etc that you can see in Windows explorer.
Any ideas how to do this?
EDIT: I'll mainly be reading/writing to video files (AVI/DIVX/...)
| In C#, you can access and manipulate extended file properties using the `Windows.Storage` namespace, available in .NET Framework and .NET Core, but these are more commonly used in Universal Windows Platform (UWP) applications. However, for traditional desktop applications, you can use Windows APIs via PInvoke or levera... | 33,437 | [
{
"from": "human",
"value": "I'm trying to find out how to read/write to the extended file properties in C#\ne.g. Comment, Bit Rate, Date Accessed, Category etc that you can see in Windows explorer. \nAny ideas how to do this?\nEDIT: I'll mainly be reading/writing to video files (AVI/DIVX/...)\n"
},
{
... |
I am working on a multi-purpose page and rather than adding multiple grids to the same page we wanted to use a single GridView to the page, and on Page_Init add the needed columns, and set the respective DataSourceID.
So to do this, we have something like the following in the aspx, the codebehind in the Page_Init is ve... | The issue you're experiencing with the GridView disappearing after postbacks (such as paging) is likely due to the fact that the GridView's columns are being added in the `Page_Init` event, but the GridView is not being recreated with those columns on subsequent postbacks.
In ASP.NET Web Forms, controls have a lifecyc... | 37,313 | [
{
"from": "human",
"value": "I am working on a multi-purpose page and rather than adding multiple grids to the same page we wanted to use a single GridView to the page, and on Page_Init add the needed columns, and set the respective DataSourceID.\nSo to do this, we have something like the following in the a... |
Can there any way to insert a hex value into MYSQL?
I also want to be able to retreive it in hex form.
For example, something like:
INSERT INTO table ( hexTag )
VALUES ( HEX(0x41) );
And if I do this, I want it to put an 'A' into the table
| Yes, you can insert a hex value into a MySQL database, and you can also retrieve it in hex format. Below are examples of how to insert and retrieve hexadecimal values in MySQL.
### Inserting a Hexadecimal Value
To insert a hexadecimal value into a MySQL table, you can directly insert the hex value using the `0x` pref... | 38,342 | [
{
"from": "human",
"value": "Can there any way to insert a hex value into MYSQL?\nI also want to be able to retreive it in hex form.\nFor example, something like:\nINSERT INTO table ( hexTag )\nVALUES ( HEX(0x41) );\nAnd if I do this, I want it to put an 'A' into the table\n"
},
{
"from": "gpt",
... |
I started out with a generic interface called ILogin. The interfaces requires that you implement two properties: UserID and Password. I have many login-type classes that implement this interface. As my project grew and grew, I found that many classes repeated the UserID and Password code. Now I decide that I need a... | The design choice between using an interface or an abstract class (or both) often depends on the specific needs of your application and the flexibility you want in your design. Let's break down the considerations involved in your scenario.
### Keeping Both the Interface and the Abstract Class
1. **Interface `ILogin`*... | 35,275 | [
{
"from": "human",
"value": "I started out with a generic interface called ILogin. The interfaces requires that you implement two properties: UserID and Password. I have many login-type classes that implement this interface. As my project grew and grew, I found that many classes repeated the UserID and P... |
Okay, I have a FormView with a couple of child controls in an InsertItemTemplate. One of them is a DropDownList, called DdlAssigned. I reference it in the Page's OnLoad method like so:
protected void Page_Load(object sender, EventArgs e)
{
((DropDownList)FrmAdd.FindControl("DdlAssigned")).SelectedValue =
... | The issue you're encountering is likely due to the page's lifecycle in ASP.NET Web Forms. Specifically, setting the `SelectedValue` of a control during the `Page_Load` event may not update the rendered output correctly because the data binding for the control may not have occurred yet, or the control's state may be res... | 37,756 | [
{
"from": "human",
"value": "Okay, I have a FormView with a couple of child controls in an InsertItemTemplate. One of them is a DropDownList, called DdlAssigned. I reference it in the Page's OnLoad method like so:\nprotected void Page_Load(object sender, EventArgs e)\n{\n ((DropDownList)FrmAdd.FindContro... |
I have a controller that returns either JSON or partial html depending on if the user is logged in.
Is there anyway to tell the difference once the result has been returned??
What is the best way.
Obviously i have different actions to complete if the response is json or if it is the partial html. With the json one i d... | In a scenario where your controller can return either JSON or HTML based on the user's authentication status, you'll need a clear way to differentiate between the two response types in your client-side code. Here's a structured approach to achieve that:
### 1. Use Response Headers
One effective way to distinguish bet... | 36,327 | [
{
"from": "human",
"value": "I have a controller that returns either JSON or partial html depending on if the user is logged in. \nIs there anyway to tell the difference once the result has been returned??\nWhat is the best way.\nObviously i have different actions to complete if the response is json or if i... |
I have an HTML document that is using to embed a control. In some cases, IE fails to load the control in the tag and loads my alternative text.
Only problem... I don't know why it is failing. It doesn't show up as an error in the exclamation in the lower-left. I overrode the window.onerror method, but that didn't ... | Troubleshooting issues with embedded objects in Internet Explorer (IE) can be challenging, especially when you're not seeing any obvious errors. Here are some suggestions to help you get more information about why the control in the `<object>` tag is failing to load:
### 1. **Check Compatibility View Settings**
Someti... | 35,484 | [
{
"from": "human",
"value": "I have an HTML document that is using to embed a control. In some cases, IE fails to load the control in the tag and loads my alternative text.\nOnly problem... I don't know why it is failing. It doesn't show up as an error in the exclamation in the lower-left. I overrode t... |
I am using Visual Studio 2008 SP1 (version 9.0.30729.1). My problem is that the only reporting-related toolbox items I see are 3 "Textbox" controls. Where are the other stuff? Do I need to add a reference to a different assembly?
Here are the steps I take:
1) Open Visual Studio
2) Add new project --> "Reports App... | In Visual Studio 2008, if you're experiencing issues with missing report controls in the toolbox for your Report (.rdlc) files, it could be due to a few reasons. Here are some steps you can take to resolve this issue:
### 1. Ensure You Have the Right Components Installed
Make sure that the necessary components for Rep... | 37,367 | [
{
"from": "human",
"value": "I am using Visual Studio 2008 SP1 (version 9.0.30729.1). My problem is that the only reporting-related toolbox items I see are 3 \"Textbox\" controls. Where are the other stuff? Do I need to add a reference to a different assembly?\nHere are the steps I take:\n 1) Open Visual ... |
I have an asp.net intranet application for booking jobs and a phone index. Now most of my users are fine as they are using Firefox and or Internet Explorer. I have a user who can only use Safari and for some reason when we navigate to the intranet app, Safari seems to do a lot of loading then finally says; "Safari coul... | Hi Barry,
The issue you’re encountering with Safari could stem from several factors, ranging from network-related issues to specific compatibility problems between Safari and your ASP.NET application. Here’s a breakdown of possible causes and recommendations on how to handle Safari compatibility in the future.
### Po... | 34,814 | [
{
"from": "human",
"value": "I have an asp.net intranet application for booking jobs and a phone index. Now most of my users are fine as they are using Firefox and or Internet Explorer. I have a user who can only use Safari and for some reason when we navigate to the intranet app, Safari seems to do a lot o... |
In my app I've got a thread which displays for some time "please wait" dialog window, sometimes it is a very tiny amout of time and there is some glitch while drawing UI (I guess).
I get the exception "Thread was being aborted" and completly have no idea how get rid of it. I mean Catch that exception in some way, or in... | The issue you're facing with the "Thread was being aborted" exception is typically due to calling `Thread.Abort()`, which is not a safe way to terminate a thread. When you abort a thread, it raises a `ThreadAbortException` on that thread, which can lead to undefined behavior, especially if the thread is performing UI o... | 37,126 | [
{
"from": "human",
"value": "In my app I've got a thread which displays for some time \"please wait\" dialog window, sometimes it is a very tiny amout of time and there is some glitch while drawing UI (I guess).\nI get the exception \"Thread was being aborted\" and completly have no idea how get rid of it. ... |
Short of using a profiler, is there any way inside a running program to detect first chance exceptions? Ideally, I would like to record more detailed state information that is not available once the catch block has taken over the final exception.
| Detecting first chance exceptions in a running program can be quite challenging, especially if you're looking for a way to gather state information before the exception is handled. Here are a few methods you can consider, depending on the programming environment you're using:
### 1. **Windows Debugging API:**
If you a... | 35,798 | [
{
"from": "human",
"value": "Short of using a profiler, is there any way inside a running program to detect first chance exceptions? Ideally, I would like to record more detailed state information that is not available once the catch block has taken over the final exception.\n"
},
{
"from": "gpt",
... |
Here's the goal: to replace all standalone ampersands with & but NOT replace those that are already part of an HTML entity such as .
I think I need a regular expression for PHP (preferably for preg_ functions) that will match only standalone ampersands. I just don't know how to do that with preg_replace.
| To replace standalone ampersands (`&`) with `&` while avoiding those that are part of HTML entities (like ` `, `©`, etc.), you can use the following approach with a regular expression in PHP.
You can use `preg_replace` with a regular expression that matches standalone ampersands not preceded or followed ... | 37,040 | [
{
"from": "human",
"value": "Here's the goal: to replace all standalone ampersands with & but NOT replace those that are already part of an HTML entity such as .\nI think I need a regular expression for PHP (preferably for preg_ functions) that will match only standalone ampersands. I just don't k... |
I'm probably going to be using Tomcat and the Apache Axis webapp plugin, but I'm curious as to any other potential lightweight solutions.
The main goal of this is to connect to MySQL database for doing some demos.
Thanks,
Todd
| Hi Todd,
If you're looking for lightweight solutions to connect to a MySQL database for demos, you have several options besides Tomcat and Apache Axis. Here are some alternatives that might suit your needs:
### 1. **Spring Boot**
- **Description**: A popular framework that makes it easy to create standalone, produ... | 33,394 | [
{
"from": "human",
"value": "I'm probably going to be using Tomcat and the Apache Axis webapp plugin, but I'm curious as to any other potential lightweight solutions.\nThe main goal of this is to connect to MySQL database for doing some demos.\nThanks,\nTodd\n"
},
{
"from": "gpt",
"value": "Hi T... |
Greetings,
I've got a bat script which copies certain information from a computer onto a USB hard drive using Robocopy. The hard drive is FAT formatted and therefore doesn't support directories with extended attributes, leading me to robocopy error 282 as described here.
How do I tell robocopy to copy all the attribut... | Since your USB drive is formatted as RAW, it means it doesn't have a valid file system. Therefore, it's essential first to format the drive to a file system that supports extended attributes (like NTFS, FAT32, or exFAT) if you intend to copy files without running into issues related to extended attributes.
However, if... | 38,172 | [
{
"from": "human",
"value": "Greetings,\nI've got a bat script which copies certain information from a computer onto a USB hard drive using Robocopy. The hard drive is FAT formatted and therefore doesn't support directories with extended attributes, leading me to robocopy error 282 as described here.\nHow ... |
Paragraph 6.7.3.8 of the C99 spec states
If the specification of an array type includes any type qualifiers, the element type is so-qualified, not the array type. If the specification of a function type includes any type qualifiers, the behavior is undefined.
In the rationale (logical page 87, physical page 94), an example ... | Your question delves into a nuanced aspect of the C99 specification regarding type qualifiers and array types. The issue arises from the way qualifiers are applied to array types and the semantics of casting in C.
1. **Type Qualifiers and Arrays**: According to C99, when you specify an array type, the qualifiers (like... | 36,939 | [
{
"from": "human",
"value": "Paragraph 6.7.3.8 of the C99 spec states\nIf the specification of an array type includes any type qualifiers, the element type is so-qualified, not the array type. If the specification of a function type includes any type qualifiers, the behavior is undefined. \nIn the rationale (logi... |
I'm adding an existing site to SVN.
The files already exist on the webserver, and now identical copies (- configuration files) exist in the repository.
I want to convert the webserver directory into an SVN working copy, but when I run:
svn checkout http://path.to/svn/repo/httpdocs .
I get the error:
svn: Failed to ad... | When you want to convert an existing directory that is already populated with files into a Subversion (SVN) working copy, you typically want to "import" those files into SVN rather than perform a checkout directly, especially when the files are already present on the filesystem. However, since you already have the file... | 35,531 | [
{
"from": "human",
"value": "I'm adding an existing site to SVN.\nThe files already exist on the webserver, and now identical copies (- configuration files) exist in the repository.\nI want to convert the webserver directory into an SVN working copy, but when I run:\nsvn checkout http://path.to/svn/repo/htt... |
MS Access allows the numeric type GUID (in German it's called 'Replikations-ID', so I guess in English that would be 'replication id') which is stored as a 16 byte binary field in the database.
I found how to access these fields in Delphi with TADOQuery/TADOTable using
(TheQuery.FieldByName('SomeGuidField') as TGUIDFi... | To set a GUID parameter in your TADOQuery for an SQL statement in Delphi, you can follow the approach you've already discovered. However, the key is to ensure you're using the correct format and value for the parameter. Here's a concise overview of how to properly set up and execute your query:
1. **SQL Statement**: Y... | 38,417 | [
{
"from": "human",
"value": "MS Access allows the numeric type GUID (in German it's called 'Replikations-ID', so I guess in English that would be 'replication id') which is stored as a 16 byte binary field in the database.\nI found how to access these fields in Delphi with TADOQuery/TADOTable using \n(TheQu... |
I want to store a large result set from database in memory. Every record has variable length and access time must be as fast as arrays. What is the best way to implement this? I was thinking of keeping offsets in a separate table and storing all of the records consecutively? Is it odd? (Programming Language: Delphi)
| Storing a large result set with variable-length records while ensuring fast access times is a common challenge, especially if you're aiming for performance similar to that of arrays. Your idea of using offsets and storing records consecutively is a valid approach and has its merits. Let’s discuss the idea and explore o... | 34,689 | [
{
"from": "human",
"value": "I want to store a large result set from database in memory. Every record has variable length and access time must be as fast as arrays. What is the best way to implement this? I was thinking of keeping offsets in a separate table and storing all of the records consecutively? Is ... |
In the middle of some refactoring and I've moved a resources file from one project to another. I think I clicked a warning telling me to Strongly type the resource file at one point and now I'm getting:
Could not find any resources
appropriate for the specified culture
or the neutral culture. Make sure
"MyProje... | It sounds like you're encountering a common issue when dealing with embedded resources in .NET, especially after moving a resource file between projects. Here are some steps you can take to troubleshoot and hopefully resolve the `MissingManifestResourceException`:
1. **Check Resource File Properties**:
- Ensure tha... | 38,199 | [
{
"from": "human",
"value": "In the middle of some refactoring and I've moved a resources file from one project to another. I think I clicked a warning telling me to Strongly type the resource file at one point and now I'm getting:\n\nCould not find any resources\n appropriate for the specified culture\n ... |
I'm currently doing the following to use typed datasets in vs2008:
Right click on "app_code" add new dataset, name it tableDS.
Open tableDS, right click, add "table adapter"
In the wizard, choose a pre defined connection string, "use SQL statements"
select * from tablename and next + next to finish. (I generate one t... | You're correct that the approach you're currently using retrieves the entire table and then filters the data in memory, which can lead to performance issues, especially with larger datasets. Instead, you can modify your TableAdapter to include a method that retrieves data based on a specific condition, such as `cpcID`.... | 36,522 | [
{
"from": "human",
"value": "I'm currently doing the following to use typed datasets in vs2008: \nRight click on \"app_code\" add new dataset, name it tableDS.\nOpen tableDS, right click, add \"table adapter\"\nIn the wizard, choose a pre defined connection string, \"use SQL statements\"\nselect * from tabl... |
I built a [widget][1] that grabs the URL from the frontmost window in Safari, then allows you to shorten it using the tr.im API. Works sweet as.
I want to make this more flexible, so am investigating how to grab an URL from other browsers. Here's the AppleScript that works in Safari:
tell application "Safari"
retur... | To create a more comprehensive solution for grabbing the URL from different browsers on macOS, you can use AppleScript for some of the more popular browsers. Here’s a list of AppleScript commands for several modern browsers:
### 1. **Safari**
```applescript
tell application "Safari"
return URL of front document as... | 33,726 | [
{
"from": "human",
"value": "I built a [widget][1] that grabs the URL from the frontmost window in Safari, then allows you to shorten it using the tr.im API. Works sweet as.\nI want to make this more flexible, so am investigating how to grab an URL from other browsers. Here's the AppleScript that works in S... |
i'm looking for a way to programatically convert word documents in docx format to doc format without using ole automation. i already have a windows service that does this but it means installing office on a server and it is a little unreliable and not supported. i am aware of the aspose.words product, and i will try ... | There are several libraries and tools that can help you programmatically convert DOCX files to DOC format without relying on OLE Automation or requiring Microsoft Office to be installed on the server. Here are some recommendations:
1. **Aspose.Words**: As you mentioned, Aspose.Words is a powerful library for handling ... | 38,263 | [
{
"from": "human",
"value": "i'm looking for a way to programatically convert word documents in docx format to doc format without using ole automation. i already have a windows service that does this but it means installing office on a server and it is a little unreliable and not supported. i am aware of ... |
I'm relatively new to Javascript and was wondering if there's a quick way to shuffle content that is contained in multiple <div> tags. For example
<div id='d1'>
<span>alpha</span>
<img src='alpha.jpg'>
</div>
<div id='d2'>
<span>beta</span>
<img src='beta.jpg'>
</div>
<div id='d3'>
<span>gamma</span>
<img ... | You can achieve a random shuffle of the contents within your `<div>` elements using JavaScript. The idea is to select all the div elements, shuffle their order, and then re-append them to the parent container. Here's how you can implement it:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
... | 37,327 | [
{
"from": "human",
"value": "I'm relatively new to Javascript and was wondering if there's a quick way to shuffle content that is contained in multiple <div> tags. For example\n<div id='d1'>\n <span>alpha</span>\n <img src='alpha.jpg'>\n</div>\n<div id='d2'>\n <span>beta</span>\n <img src='beta.jpg'>\n... |
We have a setup here that is less than ideal, We have our webserver configured so that there is a global application and then we have each web applications dll ( hundreds ) in WEBROOT/bin
Recently I made a change to a ASPX page in .NET 1.1. and we I went to check the change it was complaining that a seperate and totall... | In ASP.NET, especially in older versions like .NET 1.1, the behavior you're observing can be attributed to how ASP.NET handles application domains and assembly loading. Here are a few possible reasons why changing an ASPX file could result in other unrelated DLLs being reloaded:
1. **Application Domain Reloading**: Wh... | 37,256 | [
{
"from": "human",
"value": "We have a setup here that is less than ideal, We have our webserver configured so that there is a global application and then we have each web applications dll ( hundreds ) in WEBROOT/bin\nRecently I made a change to a ASPX page in .NET 1.1. and we I went to check the change it ... |
So, I now know what to save from nightly builds. What about when I give something to customers?
For example, I probably want to save debugging information (e.g. PDB).
What else?
| When you are preparing to deliver software to customers, especially in the context of builds, it’s important to consider various artifacts and information that will aid in debugging, support, and maintenance. Here’s a list of items you might want to include:
1. **Executable Files**: The main binaries or executables th... | 37,530 | [
{
"from": "human",
"value": "So, I now know what to save from nightly builds. What about when I give something to customers? \nFor example, I probably want to save debugging information (e.g. PDB).\nWhat else?\n"
},
{
"from": "gpt",
"value": "When you are preparing to deliver software to custo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.