instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I'm currently working on a blog application in ASP.NET MVC. I can't quite figure out how to handle my input validation! As far as I understand the view itself cannot know about input validation!? So how am I going to do this?
Input validation in an ASP.NET MVC application can be managed effectively by utilizing data annotations, model binding, and built-in validation mechanisms. Here's how you can handle input validation in your blog application: ### Step 1: Use Data Annotations in Your Model Define your model with data annotations that s...
17,051
[ { "from": "human", "value": "I'm currently working on a blog application in ASP.NET MVC.\nI can't quite figure out how to handle my input validation! As far as I understand the view itself cannot know about input validation!? So how am I going to do this?\n" }, { "from": "gpt", "value": "Input v...
I am researching the feasibility of setting up a mapping tool for my alliance in an online game. The game is not based in the real world so I am not interested in the content of the map tools available, just the functionality. Minimally, I would like the map to display information about where allied cities are locate...
There are several tools and platforms that could serve your needs for creating a custom mapping tool for your alliance in an online game. Here are some alternatives to the Google Maps API that might be easier to set up and use for your specific requirements: 1. **Mapbox**: - Mapbox offers a powerful mapping platfo...
18,594
[ { "from": "human", "value": "I am researching the feasibility of setting up a mapping tool for my alliance in an online game. \nThe game is not based in the real world so I am not interested in the content of the map tools available, just the functionality. \nMinimally, I would like the map to display infor...
I was trying to insert new data into an existing XML file, but it's not working. Here's my xml file: <list> <activity>swimming</activity> <activity>running</activity> <list> Now, my idea was making two files: an index page, where it displays what's on the file and provides a field for inserting new elements, a...
It looks like there are a few issues in your `index.php` and `insert.php` scripts that need to be addressed to get your XML manipulation working properly. Below are some corrections and suggestions for improvement. ### Issues in Your Code 1. **XML File Closing Tag**: Your XML file has a typo; the closing tag for `<li...
18,367
[ { "from": "human", "value": "I was trying to insert new data into an existing XML file, but it's not working. Here's my xml file:\n<list>\n <activity>swimming</activity>\n <activity>running</activity>\n<list>\n\nNow, my idea was making two files: an index page, where it displays what's on the file and...
Backstory: I'm using log4net to handle all logging for a project I'm working on. One particular method can be called under several different circumstances -- some that warrant the log messages to be errors and others that warrant the log messages to be warnings. So, as an example, how could I turn Public Sub CheckDiff...
To implement this functionality using delegates in VB.NET, you'll want to define a delegate type that matches the signature of the methods you intend to call (in this case, `ErrorFormat` and `WarnFormat`), and then use that delegate in your `CheckDifference` method. Here's how you can do it: ### Step 1: Define a Dele...
19,999
[ { "from": "human", "value": "Backstory: I'm using log4net to handle all logging for a project I'm working on. One particular method can be called under several different circumstances -- some that warrant the log messages to be errors and others that warrant the log messages to be warnings.\nSo, as an exam...
I'm currently looking at indexing an ASP website from Sharepoint and I need to replicate the old "advanced search" schema that the users are familiar with. In order to do this I need to index a few meta tags from the web pages. This is easily done and for the text fields I can use them in the search as well. However fo...
To successfully index date meta tags in SharePoint as `datetime` rather than as plain text, you need to ensure that the content source is set up correctly to recognize and parse these date fields. Here are the steps to help you achieve that: ### 1. Define Managed Properties To enable the SharePoint search to interpre...
19,171
[ { "from": "human", "value": "I'm currently looking at indexing an ASP website from Sharepoint and I need to replicate the old \"advanced search\" schema that the users are familiar with. In order to do this I need to index a few meta tags from the web pages. This is easily done and for the text fields I can...
I'm building an ASP.NET MVC applicaiton that will have custom role and membership providers. I have been looking into adminstration tools to save us some time, WSAT has crossed my path. It looks good at a glance, it's all open source and very simple if it doesn't work I can fix it myself. First question is have any ...
### Question 1: Experience with WSAT WSAT (Web Site Administration Tool) is a simple, open-source tool that allows for managing user accounts, roles, and profiles for ASP.NET applications. Many developers have found it useful for quick setups or smaller projects, but there are pros and cons to consider: #### Pros: 1....
18,767
[ { "from": "human", "value": "I'm building an ASP.NET MVC applicaiton that will have custom role and membership providers. I have been looking into adminstration tools to save us some time, WSAT has crossed my path. It looks good at a glance, it's all open source and very simple if it doesn't work I can f...
The subversion concept of branching appears to be focused on creating an [un]stable fork of the entire repository on which to do development. Is there a mechanism for creating branches of individual files? For a use case, think of a common header (*.h) file that has multiple platform-specific source (*.c) implementatio...
Subversion (SVN) has a different branching model compared to version control systems like ClearCase. In SVN, branching typically occurs at the repository level, meaning that when you create a branch, you’re creating a copy of the entire project (or trunk) at that point in time. However, SVN does not support branching i...
18,125
[ { "from": "human", "value": "The subversion concept of branching appears to be focused on creating an [un]stable fork of the entire repository on which to do development. Is there a mechanism for creating branches of individual files?\nFor a use case, think of a common header (*.h) file that has multiple pl...
While researching this issue, I found multiple mentions of the following scenario online, invariably as unanswered questions on programming forums. I hope that posting this here will at least serve to document my findings. First, the symptom: While running pretty standard code that uses waveOutWrite() to output PCM aud...
The problem you’re encountering seems to arise from a combination of the way you’re using the Windows audio API and the interaction between the API and the audio driver. While your code does demonstrate proper structure in terms of setting up and using the waveOut functions, there are a few points worth considering tha...
20,830
[ { "from": "human", "value": "While researching this issue, I found multiple mentions of the following scenario online, invariably as unanswered questions on programming forums. I hope that posting this here will at least serve to document my findings.\nFirst, the symptom: While running pretty standard code ...
I am trying to run xcopy that copies files excluding .obj, etc. What I am seeing is that Microsoft.Practices.ObjectBuilder.dll is not copied when my excludes.txt file contains .obj as an extension. When .obj is removed, I Microsoft.Practices.ObjectBuilder.dll is copied correctly. This does not happen to other dlls thou...
It sounds like you're encountering an issue with how `xcopy` interprets the contents of your `excludes.txt` file. When you specify extensions in the `excludes.txt`, `xcopy` should exclude any files matching those patterns. Here's what you might want to check and try: 1. **File Naming**: Ensure that `Microsoft.Practic...
19,576
[ { "from": "human", "value": "I am trying to run xcopy that copies files excluding .obj, etc.\nWhat I am seeing is that Microsoft.Practices.ObjectBuilder.dll is not copied when my excludes.txt file contains .obj as an extension. When .obj is removed, I Microsoft.Practices.ObjectBuilder.dll is copied correctl...
Is there any way to use C# to build a container application where each tab is actually its own process like with Google chrome?
Yes, it is possible to build a container application in C# where each tab runs in its own process, similar to how Google Chrome handles tabs. This can be achieved by using multiple processes, inter-process communication, and a user interface framework. Here's a high-level overview of how you might implement such a syst...
19,480
[ { "from": "human", "value": "Is there any way to use C# to build a container application where each tab is actually its own process like with Google chrome?\n" }, { "from": "gpt", "value": "Yes, it is possible to build a container application in C# where each tab runs in its own process, similar...
I would like to update a Windows Forms application to provide the following features: spell checking limited formatting of text: bold, italics, bulleted lists Ideally the formatted text could be accessed in a plain text way for reporting through tools that don't support the formatting, but could also be rendered as H...
Updating a Windows Forms application to include features such as spell checking, limited text formatting (bold, italics, bulleted lists), and the ability to render both plain text and HTML can be a bit of a challenge, but using WPF's `RichTextBox` is indeed a good option. Here's a general approach to accomplish this, a...
14,288
[ { "from": "human", "value": "I would like to update a Windows Forms application to provide the following features:\n\nspell checking\nlimited formatting of text: bold, italics, bulleted lists\n\nIdeally the formatted text could be accessed in a plain text way for reporting through tools that don't support t...
Environment: VS2008 (ATL), Borland Developer Studio 2006. Hello all. I'm having some troubles with ActiveX control events. Here is a brief description of my app architecture: There is an inproc COM server which contains STA ActiveX control (aka control) and MTA COM object (aka object). Here is the IDL definition of...
When dealing with ActiveX controls and cross-apartment communication, especially when firing events from one threading model to another (from MTA to STA in your case), there are several things to keep in mind. Your problem of access violations in `oleaut32.dll` when the Delphi client tries to access methods on the `IOb...
19,015
[ { "from": "human", "value": "Environment: VS2008 (ATL), Borland Developer Studio 2006. \nHello all. I'm having some troubles with ActiveX control events. \nHere is a brief description of my app architecture:\nThere is an inproc COM server which contains STA ActiveX control (aka control) and MTA COM object ...
I have a server written in Java that runs as a Windows service (thanks to Install4J). I want this service to be able to download the latest version of the JAR file it runs from, and start running the new code. The stitch is that I don't want the Windows service to fully exit. Ideally, I would accomplish this by a uni...
To achieve the desired functionality of updating a Java-based Windows service without completely exiting the service, you'll need to implement a mechanism that allows you to download the new version of your JAR file and replace the currently running JAR file while ensuring a smooth transition. Here’s one approach you c...
19,296
[ { "from": "human", "value": "I have a server written in Java that runs as a Windows service (thanks to Install4J). I want this service to be able to download the latest version of the JAR file it runs from, and start running the new code. The stitch is that I don't want the Windows service to fully exit.\...
Using .Net 3.0 and VS2005. The objects in question are consumed from a WCF service then serialized back into XML for a legacy API. So rather than serializing the TestObject, it was serializing .TestObject which was missing the [XmlRoot] attribute; however, all the [Xml*] attributes for the child elements were in the g...
To solve the issue of the generated WCF proxy class (`localhost.TestObject`) missing the `[XmlRoot]` attribute, which is causing serialization problems, we can explore a couple of strategies without directly modifying the generated proxy class. Since you want to avoid manual edits and don't want to rely on `[XmlType]`,...
17,862
[ { "from": "human", "value": "Using .Net 3.0 and VS2005. \nThe objects in question are consumed from a WCF service then serialized back into XML for a legacy API. So rather than serializing the TestObject, it was serializing .TestObject which was missing the [XmlRoot] attribute; however, all the [Xml*] attri...
Building on How Do You Express Binary Literals in Python, I was thinking about sensible, intuitive ways to do that Programming 101 chestnut of displaying integers in base-2 form. This is the best I came up with, but I'd like to replace it with a better algorithm, or at least one that should have screaming-fast perform...
Your current implementation of converting an integer to binary can certainly be optimized for better performance and simplicity. Below, I'll present a more efficient and intuitive approach that utilizes built-in functions and bit manipulation without needing a nested function. You can achieve a fast conversion of an i...
23,093
[ { "from": "human", "value": "Building on How Do You Express Binary Literals in Python, I was thinking about sensible, intuitive ways to do that Programming 101 chestnut of displaying integers in base-2 form. This is the best I came up with, but I'd like to replace it with a better algorithm, or at least on...
Has anyone done this? Basically, I want to use the html by keeping basic tags such as h1, h2, em, etc; clean all non http addresses in the img and a tags; and HTMLEncode every other tag. I'm stuck at the HTML Encoding part. I know to remove a node you do a "node.ParentNode.RemoveChild(node);" where node is the obje...
To achieve what you described—cleaning up HTML by keeping only basic tags and HTML encoding the other tags—you can use an HTML parsing library. In C#, one such library is Html Agility Pack. Below is a sample implementation that demonstrates how to keep only certain tags, clean up non-HTTP links, and HTML encode the oth...
13,912
[ { "from": "human", "value": "Has anyone done this? Basically, I want to use the html by keeping basic tags such as h1, h2, em, etc; clean all non http addresses in the img and a tags; and HTMLEncode every other tag. \nI'm stuck at the HTML Encoding part. I know to remove a node you do a \"node.ParentNode...
In my app I have these Hibernate-mapped types (general case): class RoleRule { private Role role; private PermissionAwareEntity entity; // hibernate-mapped entity for which permission is granted private PermissionType permissionType; // enum @ManyToOne @JoinColumn(name = "ROLE_ID") public Role getRole() { ...
The issue you're encountering is a common problem when dealing with Hibernate's handling of collections, particularly when it comes to the equals() and hashCode() methods in entity classes. Here's a breakdown of what's happening: ### Hibernate Collection Management When you have a bidirectional relationship (like `Ro...
18,691
[ { "from": "human", "value": "In my app I have these Hibernate-mapped types (general case):\nclass RoleRule {\n private Role role;\n private PermissionAwareEntity entity; // hibernate-mapped entity for which permission is granted\n private PermissionType permissionType; // enum\n\n @ManyToOne\n @JoinCol...
I've got a SharePoint application and I'm sad to say that in my SharePoint-induced excitement, I ignored a lot of the security concerns I should have been paying more attention to. Though we didn't before, now we actually need granular security, so I need to get educated. I'm mostly interested in how to best create g...
Creating a granular security model in SharePoint can be an effective way to manage access and permissions, especially in a scenario where you have a main site collection and several subsites. Here’s a structured approach to establishing groups and assigning users to meet your security requirements: ### Step 1: Assess ...
17,712
[ { "from": "human", "value": "I've got a SharePoint application and I'm sad to say that in my SharePoint-induced excitement, I ignored a lot of the security concerns I should have been paying more attention to. Though we didn't before, now we actually need granular security, so I need to get educated. I'm ...
Is there a way to use form fields that does not correspond to database field for temporary processings? I.e. I want to add: temp fields item1, item2 database field sum button with record hook that sets sum = item1 + item2
Yes, you can certainly implement temporary fields that do not directly correspond to your database fields for processing. Here’s a general approach to achieve this, which can be adapted based on the technology stack you are using (e.g., web forms, backend language, database management system). ### Steps to Implement T...
13,290
[ { "from": "human", "value": "Is there a way to use form fields that does not correspond to database field for temporary processings?\nI.e. I want to add:\n\ntemp fields item1, item2\ndatabase field sum\nbutton with record hook that sets sum = item1 + item2\n\n" }, { "from": "gpt", "value": "Yes,...
I have an asp.net textbox and a MaskedEditExtender control attached to it. The textbox is used for date input. The MaskedEditExtender has MaskType="Date" Mask="99/99/9999". When the form is submitted with an invalid date, the browser shows a Javascript error "... string was not recognized as a valid datetime". I know w...
The `MaskedEditExtender` is a part of the Ajax Control Toolkit and it is primarily used to provide a user-friendly input experience with masks for textboxes. However, by default, it may trigger validation when the form is submitted, particularly if you are trying to parse the input as a date. To handle your scenario w...
15,885
[ { "from": "human", "value": "I have an asp.net textbox and a MaskedEditExtender control attached to it. The textbox is used for date input. The MaskedEditExtender has MaskType=\"Date\" Mask=\"99/99/9999\".\nWhen the form is submitted with an invalid date, the browser shows a Javascript error \"... string wa...
I'm trying to confirm a user a unplugged my embedded device from a network before performing some maintenance. I'm considering "ping"ing all IP address on my sub-net, but that sounds crude. Is there a broadcast/ARP method that might work better?
Yes, using ARP (Address Resolution Protocol) can be a more effective method for confirming whether an embedded device is connected to the network compared to simply pinging each IP address. Here are a couple of methods you can consider: ### 1. **Broadcast ARP Request:** You can send a broadcast ARP request on the loca...
22,029
[ { "from": "human", "value": "I'm trying to confirm a user a unplugged my embedded device from a network before performing some maintenance. I'm considering \"ping\"ing all IP address on my sub-net, but that sounds crude. Is there a broadcast/ARP method that might work better?\n" }, { "from": "gpt", ...
I'm working on a web app that is somewhere between an email service and a social network. I feel it has the potential to grow really big in the future, so I'm concerned about scalability. Instead of using one centralized MySQL/InnoDB database and then partitioning it when that time comes, I've decided to create a sepa...
It sounds like you've put a lot of thought into the architecture of your web app, and it's great to see that you're being proactive about scalability. However, there are several considerations and potential pitfalls to keep in mind with your approach to using multiple SQLite databases, which you've wisely reevaluated. ...
20,579
[ { "from": "human", "value": "I'm working on a web app that is somewhere between an email service and a social network. I feel it has the potential to grow really big in the future, so I'm concerned about scalability.\nInstead of using one centralized MySQL/InnoDB database and then partitioning it when that...
I haven't a clue about encryption at all. But I need it. How? Say you have a system of nodes communicating with each other on a network via asynchronous messages. The nodes do not maintain session information about other nodes (this is a design restriction). Say you want to make sure only your nodes can read the messag...
You're on the right track regarding the need for encryption in a stateless communication system using UDP. Given your requirements, here's a breakdown of the steps you need to take, along with recommendations for encryption algorithms, key lengths, and modes: ### Choosing an Encryption Algorithm 1. **AES (Advanced En...
15,672
[ { "from": "human", "value": "I haven't a clue about encryption at all. But I need it. How?\nSay you have a system of nodes communicating with each other on a network via asynchronous messages. The nodes do not maintain session information about other nodes (this is a design restriction).\nSay you want to ma...
I need something like i6comp but for list of reg changes rather than list of files. Does such a thing exist? EDIT:I know there are ways to do monitor changes to the ergistry but are there ways to do it by examining the setup files?
To monitor registry changes in a manner similar to how `i6comp` analyzes file changes, you have a few options available for examining setup files and extracting registry modifications. 1. **Regshot**: This is a lightweight tool that can take a snapshot of the Windows registry and then compare it after a specific event...
20,688
[ { "from": "human", "value": "I need something like i6comp but for list of reg changes rather than list of files.\nDoes such a thing exist?\nEDIT:I know there are ways to do monitor changes to the ergistry but are there ways to do it by examining the setup files? \n" }, { "from": "gpt", "value": ...
I'm using a vendor API to obtain a JDBC connection to the application's database. The API works when running in the application server or when running in a stand-alone mode. I want to run a series of SQL statements in a single transaction. I'm fine with them occurring in the context of the JTA transaction if it exists....
Yes, there is a way to determine whether a `Connection` obtained from a DataSource is participating in a JTA (Java Transaction API) transaction or if it's a standalone JDBC connection. Here’s how you can approach this: ### 1. Check for the Connection's Transaction State You can check whether the `Connection` is part ...
17,523
[ { "from": "human", "value": "I'm using a vendor API to obtain a JDBC connection to the application's database. The API works when running in the application server or when running in a stand-alone mode. I want to run a series of SQL statements in a single transaction. I'm fine with them occurring in the con...
Here's my situation - I want to create a resized jpeg image from a user uploaded image, and then send it to S3 for storage, but am looking to avoid writing the resized jpeg to the disk and then reloading it for the S3 request. Is there a way to do this completely in memory, with the image data JPEG formatted, saved in ...
Yes, you can perform the image resizing and upload to S3 entirely in memory without writing the resized JPEG image to disk. This can be done using libraries such as `PIL` (Pillow) for image processing and `boto3` for interacting with Amazon S3. Here's a step-by-step guide to achieve that: 1. **Install Required Librar...
17,841
[ { "from": "human", "value": "Here's my situation - I want to create a resized jpeg image from a user uploaded image, and then send it to S3 for storage, but am looking to avoid writing the resized jpeg to the disk and then reloading it for the S3 request.\nIs there a way to do this completely in memory, wit...
I am embedding Ruby into my C project and want to load several files that define a class inherited from my own parent class. Each inherited class needs to set some variables on initialization and I don't want to have two different variables for Ruby and C. Is there a way to define a class variable that has an own custo...
Using Ruby in conjunction with C, particularly when embedding Ruby into a C project, involves several considerations regarding how to manage state and maintain the integrity of the data between the two languages. Here’s a structured approach to the challenges you’re facing, along with some suggestions: ### Class Varia...
19,108
[ { "from": "human", "value": "I am embedding Ruby into my C project and want to load several files that define a class inherited from my own parent class. Each inherited class needs to set some variables on initialization and I don't want to have two different variables for Ruby and C.\nIs there a way to def...
I wrote a savefile method to save an object to xml. But I am not sure how to test the method in NUnit. Do I need create a sample file manually and compare the string between the files? Are there any better ways to test the method? Thanks for your answer.
Testing a method that saves an object to XML in NUnit can be approached in several ways. Below are some strategies you can use to test your `savefile` method effectively: ### 1. **Compare Output with Known Good Output** Creating a sample XML file manually and comparing the output of your method against this known goo...
20,743
[ { "from": "human", "value": "I wrote a savefile method to save an object to xml. But I am not sure how to test the method in NUnit. Do I need create a sample file manually and compare the string between the files? Are there any better ways to test the method?\nThanks for your answer.\n" }, { "from":...
So I have a small C# app that needs to periodically check the contents of directories on multiple machines on the network. I thought I could just read \hostname\C$ as a directory path, but with the normal Directory class there doesn't seem to be a way to authenticate against the other servers so you can access the hid...
Accessing remote directories in a network environment where you need to authenticate with different machines can be accomplished in C# using the `System.IO` namespace, but you have to handle authentication yourself when accessing administrative shares like `C$`. Here's a high-level overview of the steps you can take t...
17,545
[ { "from": "human", "value": "So I have a small C# app that needs to periodically check the contents of directories on multiple machines on the network. I thought I could just read \\hostname\\C$ as a directory path, but with the normal Directory class there doesn't seem to be a way to authenticate against ...
Is there any way to view the activity log for the integrate SourceSafe inside Visual Studio 2005 Pro? I'd like to be able to quickly see the results of any Get Latest Version, Check In and Checkout actions, and I can't find a way to get that information without having to open the VSS client.
In Visual Studio 2005, when using Visual SourceSafe (VSS), there is no built-in feature that provides a detailed activity log directly within the IDE for SourceSafe operations like "Get Latest Version," "Check In," or "Check Out." However, you can access some basic history information within the IDE, and for more detai...
20,512
[ { "from": "human", "value": "Is there any way to view the activity log for the integrate SourceSafe inside Visual Studio 2005 Pro? I'd like to be able to quickly see the results of any Get Latest Version, Check In and Checkout actions, and I can't find a way to get that information without having to open th...
I'd like to know if Flash/AS3 has any nice way to convert an AS3 'Date' object to/from rfc-850 timestamp format (as used by HTTP date and last-modified). This question is very similar to this question about rfc 3339, except it's specific to AS3 and rfc-850. RFC-850 is like: Thu, 09 Oct 2008 01:09:43 GMT
In ActionScript 3 (AS3), there is no built-in function to directly convert a `Date` object to RFC-850 format or vice versa. However, you can create custom functions to perform these conversions. ### Converting a `Date` object to RFC-850 format RFC-850 format is represented as: ``` Day, DD Mon YYYY HH:MM:SS GMT ``` He...
18,040
[ { "from": "human", "value": "I'd like to know if Flash/AS3 has any nice way to convert an AS3 'Date' object to/from rfc-850 timestamp format (as used by HTTP date and last-modified).\nThis question is very similar to this question about rfc 3339, except it's specific to AS3 and rfc-850.\nRFC-850 is like: Th...
I've got 2 databases on one server; let’s call them db A and B. Database A is about 11 GB, database B is very small (155mb). Database B has some views and procs which are constantly accessing and updating data in database A. The interesting thing is, the log for database B quickly grows to huge sizes, I think it grew...
Hi John, The rapid growth of the transaction log for Database B is indeed a point of concern, especially since it is interacting with Database A. Let’s explore a few reasons why this might be happening, particularly in the context of SQL Server 2000 and your specific setup. ### 1. **Full Recovery Model**: Since Datab...
21,012
[ { "from": "human", "value": "I've got 2 databases on one server; let’s call them db A and B. Database A is about 11 GB, database B is very small (155mb). Database B has some views and procs which are constantly accessing and updating data in database A.\nThe interesting thing is, the log for database B qu...
I have a personal wiki that I take notes on. The wiki's pages are in a subversion working copy directory, "pages", and I set their permissions to 664, owned by www-data:www-data. My username is in the "www-data" group, so I can checkin and mess with the pages manually. For a while, I had an issue because every time I...
The behavior you are observing with Subversion (SVN) regarding file ownership can be attributed to how SVN manages files and directories in its version control system. When you check in (commit) changes to SVN, it handles files in a way that can affect their ownership under certain conditions. Here's a breakdown of wha...
20,757
[ { "from": "human", "value": "I have a personal wiki that I take notes on. The wiki's pages are in a subversion working copy directory, \"pages\", and I set their permissions to 664, owned by www-data:www-data. My username is in the \"www-data\" group, so I can checkin and mess with the pages manually.\nFo...
I have an application written in java, and I want to add a flash front end to it. The flash front end will run on the same computer as the java app in the stand alone flash player. I need two way communication between the two parts, and have no idea how to even start going about this. I suppose I could open a socket b...
To achieve two-way communication between a Java application and a Flash front-end using ActionScript 3.0, you have a few options, but the most common approach is to use sockets or local connection. Here's a brief overview of both methods: ### 1. LocalConnection (Recommended for Flash Applications) The `LocalConnectio...
16,011
[ { "from": "human", "value": "I have an application written in java, and I want to add a flash front end to it. The flash front end will run on the same computer as the java app in the stand alone flash player. I need two way communication between the two parts, and have no idea how to even start going about...
Can Visual Studio 2005 Team edition for Developer coexist peacefully with Visual Studio 2008 Database edition on my machine? Are they completely separate applications that won't interfere in any way with each other? Update: What about Visual Studio 2008 Developer edition? If I install this on the same machine as 2008 ...
Visual Studio 2005 Team Edition for Developer and Visual Studio 2008 Database Edition can coexist on the same machine without any issues. Microsoft designed the Visual Studio versions to be installed side by side, so you can have multiple versions installed without them interfering with one another. Each version mainta...
24,490
[ { "from": "human", "value": "Can Visual Studio 2005 Team edition for Developer coexist peacefully with Visual Studio 2008 Database edition on my machine? Are they completely separate applications that won't interfere in any way with each other?\nUpdate: \nWhat about Visual Studio 2008 Developer edition? If ...
I am trying to use the BGGA closures prototype with an existing JDK 6 (standard on Mac OS X Leopard). The sample code I'm compiling is from a BGGA tutorial: public static void main(String[] args) { // function with no arguments; return value is always 42 int answer = { => 42 }.invoke(); System.out.println(answer...
Using the BGGA closures prototype with JDK 6 can be quite tricky due to the complexity of modifying the boot classpath, especially on macOS. Here are some suggestions to help you integrate it correctly, especially when using Eclipse and Maven. ### Using the Command Line If you want to use the command line, make sure ...
15,676
[ { "from": "human", "value": "I am trying to use the BGGA closures prototype with an existing JDK 6 (standard on Mac OS X Leopard). The sample code I'm compiling is from a BGGA tutorial:\npublic static void main(String[] args) {\n // function with no arguments; return value is always 42\n int answer = { =...
Hoping that someone has some info on how to parse a xfa file. I can parse csv or xml files just fine, but an xfa one has come along and I'm not familar with the format. Looks like tab delimited body with column metadata at the top. Anyone dealt with these before or can give me a steer on how to parse them? I use vb.net...
Parsing XFA (XML Forms Architecture) files can indeed be a bit challenging if you're not familiar with the format. XFA is typically used in conjunction with PDF files and is based on XML, but it’s structured differently than standard XML. Here's a general approach for parsing XFA files, particularly if you are seeing a...
18,296
[ { "from": "human", "value": "Hoping that someone has some info on how to parse a xfa file. I can parse csv or xml files just fine, but an xfa one has come along and I'm not familar with the format. Looks like tab delimited body with column metadata at the top.\nAnyone dealt with these before or can give me ...
I've been unable to build P4Python for an Intel Mac OS X 10.5.5. These are my steps: I downloaded p4python.tgz (from http://filehost.perforce.com/perforce/r07.3/tools/) and expanded it into "P4Python-2007.3". I downloaded p4api.tar (from http://filehost.perforce.com/perforce/r07.3/bin.macosx104x86/) and expanded it in...
The errors you're encountering when building P4Python on macOS 10.5.5 appear to be related to the use of `Py_ssize_t`, which is a type that was introduced in Python 2.5. Since you are using Python 2.4.3, this type will not be recognized by the compiler, leading to the errors you are seeing. Here's a brief overview of...
19,716
[ { "from": "human", "value": "I've been unable to build P4Python for an Intel Mac OS X 10.5.5.\nThese are my steps:\n\nI downloaded p4python.tgz (from\nhttp://filehost.perforce.com/perforce/r07.3/tools/) and expanded\nit into \"P4Python-2007.3\".\nI downloaded p4api.tar (from\nhttp://filehost.perforce.com/pe...
I need a function which executes an INSERT statement on a database and returns the Auto_Increment primary key. I have the following C# code but, while the INSERT statement works fine (I can see the record in the database, the PK is generated correctly and rows == 1), the id value is always 0. Any ideas on what might be...
The issue you are facing arises from the way you're attempting to retrieve the auto-incremented primary key after performing an INSERT operation in a Microsoft Access database using OleDb. In Access, the method to get the last inserted ID is different from that in SQL Server, and the way you are constructing your SQL s...
20,974
[ { "from": "human", "value": "I need a function which executes an INSERT statement on a database and returns the Auto_Increment primary key. I have the following C# code but, while the INSERT statement works fine (I can see the record in the database, the PK is generated correctly and rows == 1), the id valu...
In JPA the Entities are nice annotated Plain Old Java Objects. But I have not found a good way to interact with them and the database. In my current app, my basic design is always to have a sequence based id as primary key so I usually have to look up entities by other properties than PK. And for each Entity I have a s...
Your frustrations with using EJBs to interact with JPA entities are quite common. Many developers seek ways to simplify and reduce boilerplate code while still adhering to best practices. Below are some suggestions that may help address your issues: ### 1. Use a Repository Pattern Instead of putting your query logic ...
16,981
[ { "from": "human", "value": "In JPA the Entities are nice annotated Plain Old Java Objects. But I have not found a good way to interact with them and the database.\nIn my current app, my basic design is always to have a sequence based id as primary key so I usually have to look up entities by other properti...
I have an application that launches a webpage in the "current" browser when the user selects it. This part of my app works fine in the Windows version but I can't figure out how to do this in Linux build. Right now the Linux version is hardcoded for Firefox in a specific directory and runs a new instance of it each tim...
To launch a URL in the currently running instance of the default web browser on Linux, you'll want to make use of `xdg-open`, which is a command-line utility that opens a file or URL in the user's preferred application. This approach avoids the need to hardcode the path to a specific browser and supports various deskto...
22,067
[ { "from": "human", "value": "I have an application that launches a webpage in the \"current\" browser when the user selects it. This part of my app works fine in the Windows version but I can't figure out how to do this in Linux build.\nRight now the Linux version is hardcoded for Firefox in a specific dire...
Is there a way to do this in one line? $x =~ s/^\s+//; $x =~ s/\s+$//; In other words, remove all leading and trailing whitespace from a string.
Yes, you can combine both substitutions into a single line in Perl using a regular expression. Here’s how you can do it: ```perl $x =~ s/^\s+|\s+$//g; ``` This uses a single regex substitution with the alternation operator `|` to match either leading or trailing whitespace and removes it in one go. The `g` modifier i...
25,607
[ { "from": "human", "value": "Is there a way to do this in one line?\n$x =~ s/^\\s+//;\n$x =~ s/\\s+$//;\n\nIn other words, remove all leading and trailing whitespace from a string.\n" }, { "from": "gpt", "value": "Yes, you can combine both substitutions into a single line in Perl using a regular...
I'm trying to use Google's jstemplate as a client-side templating engine on an ASP.NET page, and it seems to be conflicting with ASP.NET AJAX. The problem is not jstemplate.js but util.js, which it needs as a support file. I've isolated the problem as follows:: <%@ Page Language="VB" %> <body> <form id="form1" runa...
The issue you are encountering seems to stem from a conflict between Google's `util.js` and ASP.NET AJAX, particularly regarding the handling of the `event` object. There are a few approaches you can take to address this issue. ### Possible Solutions 1. **Load `util.js` Outside of the ScriptManager**: Since you me...
19,733
[ { "from": "human", "value": "I'm trying to use Google's jstemplate as a client-side templating engine on an ASP.NET page, and it seems to be conflicting with ASP.NET AJAX. The problem is not jstemplate.js but util.js, which it needs as a support file.\nI've isolated the problem as follows::\n<%@ Page Langua...
On a CentOS LAMP box, trying to get require_once to work inside a script in PHP5. If the file to be included is not a in symlinked directory, it works fine, but if the file to be required is in a directory found via a symbolic link, it fails to find it. Is this a limitation of require_once and symbolic links? EDIT - Th...
The issue you're encountering with `require_once` in PHP not working with files in a symlinked directory may not be directly due to `require_once` itself but could indeed be related to permissions or the configuration of your server. Here are a few steps you can take to troubleshoot and resolve this issue: 1. **Check...
20,629
[ { "from": "human", "value": "On a CentOS LAMP box, trying to get require_once to work inside a script in PHP5. If the file to be included is not a in symlinked directory, it works fine, but if the file to be required is in a directory found via a symbolic link, it fails to find it.\nIs this a limitation of ...
I have a problem with an SQL query on Postgresql. This select clause is an example from a lecture on databases: 1 select t.CourseNr, t.StudentsPerCourse, g.StudentCount, 2 t.StudentsPerCourse/g.StudentCount as Marketshare 3 from (select CourseNr, count(*) as StudentsPerCourse 4 from taking 5 group b...
In PostgreSQL, when you perform division between two integer types, the result will also be an integer. If you want the result to be a float or numeric, you will need to explicitly cast one or both of the integers to a floating point type before performing the division. You can achieve this in your query by using the ...
23,155
[ { "from": "human", "value": "I have a problem with an SQL query on Postgresql. This select clause is an example from a lecture on databases:\n1 select t.CourseNr, t.StudentsPerCourse, g.StudentCount, \n2 t.StudentsPerCourse/g.StudentCount as Marketshare\n3 from (select CourseNr, count(*) as StudentsP...
I have an Asp.Net 2.0 (VB.Net) app and I'm trying to export a Control (ASCX) to another project. I need to know what other files that the Control needs in order to work. Is there any way - using VS.Net 2005 or an external app - to recursively trace the dependencies of a page or control in a solution? For example, for ...
In ASP.NET Web Forms (including ASCX controls) created with Visual Studio 2005 (using VB.Net), determining all the dependencies of a particular control can be a bit challenging since there isn't a built-in tool for recursively tracing dependencies directly in Visual Studio 2005. However, you can use several strategies ...
16,498
[ { "from": "human", "value": "I have an Asp.Net 2.0 (VB.Net) app and I'm trying to export a Control (ASCX) to another project. I need to know what other files that the Control needs in order to work. \nIs there any way - using VS.Net 2005 or an external app - to recursively trace the dependencies of a page o...
A python script is running two parallel python processes ( created via os.fork() ) each of which eventually tries to check out a subversion repository leaf into the same working copy dir. Before running 'svn co ...' command in a sub-process ( via python subprocess module ) the parent python code checks if the working c...
The behavior you are experiencing is due to the concurrent execution of two processes that are both checking for the existence of the working copy directory and potentially trying to execute the `svn co` command at the same time. Here's a breakdown of why this may happen and how to handle it: ### Why the Existence Che...
19,164
[ { "from": "human", "value": "A python script is running two parallel python processes ( created via os.fork() ) each of which eventually tries to check out a subversion repository leaf into the same working copy dir.\nBefore running 'svn co ...' command in a sub-process ( via python subprocess module ) the ...
The documentation for +[NSThread detachNewThreadSelector:toTarget:withObject:] says: For non garbage-collected applications, the method aSelector is responsible for setting up an autorelease pool for the newly detached thread and freeing that pool before it exits. My question is, do I need to create my own NSAuto...
In the context of using `NSOperation` and its `-main` method, you are responsible for creating your own `NSAutoreleasePool` if you are working in a non-garbage-collected environment (i.e., with manual reference counting, also known as "MRC"). `NSOperation` does not automatically create an autorelease pool for you in i...
24,423
[ { "from": "human", "value": "The documentation for +[NSThread detachNewThreadSelector:toTarget:withObject:] says:\n\nFor non garbage-collected applications, the method aSelector is responsible\n for setting up an autorelease pool for the newly detached thread and freeing\n that pool before it exits.\n\nMy...
I'm new to Maven so I may be missing something obvious, but I've got a maven project and when I try to "mvn package" this project it fails with ERROR BUILD ERROR INFO ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.apache.maven.wa...
The error message indicates that your Maven build is trying to resolve a dependency on `org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-SNAPSHOT`, which it cannot find. The `SNAPSHOT` version denotes that it is an unstable version in development, and it's common for such versions to be hosted on a different repository or ...
20,343
[ { "from": "human", "value": "I'm new to Maven so I may be missing something obvious, but\nI've got a maven project and when I try to \"mvn package\" this project it fails with\nERROR BUILD ERROR INFO\n------------------------------------------------------------------------ [INFO] Failed to resolve artifact...
I'm trying to use a link to open an overlay instead of in a separate popup window. This overlay should consist of a semi-transparent div layer that blocks the whole screen from being clicked on. I also aim to disable scrolling at this point. Not matter where you are on the main page, when the link is clicked, the overl...
To achieve an overlay that blocks the whole screen and centers an iframe within it, you can follow these steps using HTML, CSS, and JavaScript. Below is a simple example that demonstrates how to create this functionality. ### HTML Structure ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> ...
15,721
[ { "from": "human", "value": "I'm trying to use a link to open an overlay instead of in a separate popup window. This overlay should consist of a semi-transparent div layer that blocks the whole screen from being clicked on. I also aim to disable scrolling at this point. Not matter where you are on the main ...
We are trying to trace the time a windows default printer was changed and by who or what. Any ideas?
Tracing changes to the default printer in a Windows environment involves several steps, including checking system logs, using Windows Event Viewer, and possibly utilizing audit policies. Here are some approaches you can take to gather information on who or what changed the default printer: ### 1. **Check the Event Vie...
20,572
[ { "from": "human", "value": "We are trying to trace the time a windows default printer was changed and by who or what.\nAny ideas?\n" }, { "from": "gpt", "value": "Tracing changes to the default printer in a Windows environment involves several steps, including checking system logs, using Window...
I've been using htmldoc for a while, but I've run into some fairly serious limitations. I need the end solution to work on a Linux box. I'll be calling this library/utility/application from a Perl app, so any Perl interfaces would be a bonus.
If you're looking for alternatives to `htmldoc` for generating PDFs or other document formats from HTML on a Linux box, there are several options that you can consider. Some of these tools also have Perl interfaces or can be easily integrated into a Perl application. ### 1. **wkhtmltopdf** - **Description**: A popular...
19,673
[ { "from": "human", "value": "I've been using htmldoc for a while, but I've run into some fairly serious limitations. I need the end solution to work on a Linux box. I'll be calling this library/utility/application from a Perl app, so any Perl interfaces would be a bonus.\n" }, { "from": "gpt", "...
I am writing a project in C++ for an embedded system with no OS support; almost no library support. Very bare-metal. Hence, a fair amount of my code is tightly coupled(e.g., software triggered interrupts and the layer directly above them). Part of what I am doing involves changing the serial port configuration, thus dr...
In an embedded system with very limited libraries and no OS support, traditional software development methodologies might not be entirely applicable. However, you can adopt certain best practices and methodologies to ensure your development process is more robust and your code behaves as expected. ### Recommended Meth...
17,328
[ { "from": "human", "value": "I am writing a project in C++ for an embedded system with no OS support; almost no library support. Very bare-metal. Hence, a fair amount of my code is tightly coupled(e.g., software triggered interrupts and the layer directly above them).\nPart of what I am doing involves chang...
This is the one thing I could never get to work. My problem is to detect the end of one day and the start of the next and then splitting the diff into each day. Imagine you want to calculate a pay rate but it has to span across midnight. It also applies to calculating time to run on timed system, or time diff it should...
To handle situations where you need to detect the end of one day and the start of the next, particularly when calculating time spans across midnight, you can break down the problem into steps. This will involve identifying the start and end times, determining how to split the time between the two days, and calculating ...
16,029
[ { "from": "human", "value": "This is the one thing I could never get to work.\nMy problem is to detect the end of one day and the start of the next and then splitting the diff into each day.\nImagine you want to calculate a pay rate but it has to span across midnight.\nIt also applies to calculating time to...
I would like to pull artifacts from teamcity. I've been trying to use c# and the HtmlAgilityPack to goto the website and find the latest version and its artifacts. I'm currently stuck at the login, I think I just need to be sending Session Cookies out. Am I going in the right direction, has anyone else tried this? I re...
It looks like you're on the right track with your approach to logging into TeamCity and retrieving artifacts using C#. Using the `WebClient` class to manage HTTP requests and cookies is a common strategy for interacting with web applications that require authentication. However, I recommend a few improvements and consi...
17,620
[ { "from": "human", "value": "I would like to pull artifacts from teamcity.\nI've been trying to use c# and the HtmlAgilityPack to goto the website and find the latest version and its artifacts. I'm currently stuck at the login, I think I just need to be sending Session Cookies out.\nAm I going in the right ...
Occasionally, on a ASP (classic) site users will get this error: [DBNETLIB][ConnectionRead (recv()).]General network error. Seems to be random and not connected to any particular page. The SQL server is separated from the web server and my guess is that every once and a while the "link" goes down between the two. Rou...
The error message you're encountering, `[DBNETLIB][ConnectionRead (recv()).]General network error`, is indicative of a problem in the network communication between your ASP classic application and the SQL Server database. Given that the issue appears to be random, there are several potential causes and corresponding so...
13,059
[ { "from": "human", "value": "Occasionally, on a ASP (classic) site users will get this error:\n[DBNETLIB][ConnectionRead (recv()).]General network error.\n\nSeems to be random and not connected to any particular page. The SQL server is separated from the web server and my guess is that every once and a whi...
When my browser renders the following test case, there's a gap below the image. From my understanding of CSS, the bottom of the blue box should touch the bottom of the red box. But that's not the case. Why? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-st...
The gap you are seeing below the image is due to the default behavior of images and the way they are treated within inline elements. In HTML and CSS, images are treated as inline elements by default. When an inline element is placed next to a block-level element or within a block-level element (like a `<div>`), the br...
22,694
[ { "from": "human", "value": "When my browser renders the following test case, there's a gap below the image. From my understanding of CSS, the bottom of the blue box should touch the bottom of the red box. But that's not the case. Why?\n\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n ...
Let's say I have a java program that makes an HTTP request on a server using HTTP 1.1 and doesn't close the connection. I make one request, and read all data returned from the input stream I have bound to the socket. However, upon making a second request, I get no response from the server (or there's a problem with th...
The issue you're encountering arises from how HTTP/1.1 and persistent connections (also known as keep-alive connections) function. Here’s a breakdown of what’s happening in your code and why you’re facing the problem: ### Persistent Connections in HTTP/1.1 1. **HTTP/1.1 Keep-Alive**: By default, HTTP/1.1 keeps connec...
16,462
[ { "from": "human", "value": "Let's say I have a java program that makes an HTTP request on a server using HTTP 1.1 and doesn't close the connection. I make one request, and read all data returned from the input stream I have bound to the socket. However, upon making a second request, I get no response from...
This is from the Stream - AQ docs. You can register system events, user events, and notifications on queues with Oracle Internet Directory. System events are database startup, database shutdown, and system error events. User events include user log on and user log off, DDL statements (create, drop, alter), and DML sta...
Yes, your understanding is on the right track. What you're looking at is a mechanism for handling events and notifications related to Oracle Internet Directory (OID) rather than embedding everything within the database itself. Here's how using Oracle Internet Directory for these events and notifications can be benefi...
23,355
[ { "from": "human", "value": "This is from the Stream - AQ docs.\n\nYou can register system events, user events, and notifications on queues with Oracle Internet Directory. System events are database startup, database shutdown, and system error events. User events include user log on and user log off, DDL st...
I'm looking for a good audio compression library for .NET. Anything using MP3 is out (because of the licensing issue). Basically I just need to be able to compress regular WAV audio data into some format, and decompress back to WAV. Preferably the code would be all .NET (C# or VB.NET), but I don't think this is like...
There are several audio compression libraries available for .NET that can help you compress and decompress WAV audio data. Since you are looking for alternatives to MP3, I'll suggest a few options that meet your criteria of being either lossless or relatively lossless: 1. **NAudio**: - **Description**: NAudio is a ...
19,681
[ { "from": "human", "value": "I'm looking for a good audio compression library for .NET. Anything using MP3 is out (because of the licensing issue). Basically I just need to be able to compress regular WAV audio data into some format, and decompress back to WAV. Preferably the code would be all .NET (C# o...
Slashdot has a little widget that allows you to tweak your comment threshold to filter out down-modded comments. It will be in one place if you scroll to the top of the page, and as you scroll down, at some point, where its original home is about to scroll off the page, it will switch to fixed position, and stay on yo...
To achieve a similar effect where a menu initially sits in its normal position and switches to a fixed position when the user scrolls down, you will need to utilize a combination of CSS for styling and JavaScript (or jQuery) to handle the scrolling logic. Here’s a step-by-step breakdown of how you can implement this: ...
18,731
[ { "from": "human", "value": "Slashdot has a little widget that allows you to tweak your comment threshold to filter out down-modded comments. It will be in one place if you scroll to the top of the page, and as you scroll down, at some point, where its original home is about to scroll off the page, it will...
In windows XP "FileInfo.LastWriteTime" will return the date a picture is taken - regardless of how many times the file is moved around in the filesystem. In Vista it instead returns the date that the picture is copied from the camera. How can I find out when a picture is taken in Vista? In windows explorer this field i...
In Windows Vista and later versions, the "Date Taken" information for images (like photos) is stored in the metadata of the file, specifically in the EXIF (Exchangeable Image File Format) data, which is typically embedded in JPEG files by digital cameras. To access the "Date Taken" information in Windows Vista, you ca...
22,888
[ { "from": "human", "value": "In windows XP \"FileInfo.LastWriteTime\" will return the date a picture is taken - regardless of how many times the file is moved around in the filesystem.\nIn Vista it instead returns the date that the picture is copied from the camera.\nHow can I find out when a picture is tak...
I have the following query in iSeries SQL which I output to a file. SELECT SSLOTMAK, SSLOTMDL, SSLOTYER, sum(SSCOUNT) FROM prqhdrss GROUP BY SSLOTMAK, SSLOTMDL, SSLotyer HAVING sum(SSCOUNT) > 4 ORDER BY SSLOTMAK, SSLOTMDL, SSLOTYER ...
In iSeries SQL, if you want to ensure that the result of a calculation (like `sum(SSCOUNT)`) is returned in a non-packed format, you can use the `CAST` function to explicitly convert the result into a desired data type. In your case, if you want to convert the `SUM(SSCOUNT)` result to a character string or a differen...
20,562
[ { "from": "human", "value": "I have the following query in iSeries SQL which I output to a file.\nSELECT SSLOTMAK, SSLOTMDL, SSLOTYER, sum(SSCOUNT) \nFROM prqhdrss \nGROUP BY SSLOTMAK, SSLOTMDL, SSLotyer \nHAVING sum(SSCOUNT) > 4 \nORDER BY SSLOTMAK...
I have a loop that looks something like this: for (int i = 0; i < max; i++) { String myString = ...; float myNum = Float.parseFloat(myString); myFloats[i] = myNum; } This is the main content of a method whose sole purpose is to return the array of floats. I want this method to return null if there is an er...
When it comes to placing the `try...catch` block in your loop, there are a few considerations to keep in mind, such as readability, performance, and code maintainability. ### 1. **Readability and Maintainability** - **Outer Try-Catch**: Placing the `try...catch` around the entire loop makes it clear that the whole blo...
19,770
[ { "from": "human", "value": "I have a loop that looks something like this:\nfor (int i = 0; i < max; i++) {\n String myString = ...;\n float myNum = Float.parseFloat(myString);\n myFloats[i] = myNum;\n}\n\nThis is the main content of a method whose sole purpose is to return the array of floats. I w...
I'm looking for a Windows network emulator that can emulate the packet-loss & latency characteristics of a 3G wireless network. I used to use a tool from GIPs that has been end-of-life'd. I've also tried Shunra Virtual Enterprise but found it a bit too basic
If you’re looking for a Windows network emulator that can simulate the characteristics of a 3G wireless network, there are several alternatives you can consider: 1. **Clumsy**: This is a simple and free Windows tool that allows you to introduce packet loss, latency, and other network conditions. It’s particularly usef...
21,070
[ { "from": "human", "value": "I'm looking for a Windows network emulator that can emulate the packet-loss & latency characteristics of a 3G wireless network. \nI used to use a tool from GIPs that has been end-of-life'd. I've also tried Shunra Virtual Enterprise but found it a bit too basic\n" }, { "f...
Greetings! I am trying to check directory write-permissions from within a Windows MFC/ATL program using C++. My first guess is to use the C-standard _access function, e.g.: if (_access("C:\mydir", 2) == -1) // Directory is not writable. But apparently on Windows 2000 and XP, _access can't determine directory permis...
To check the write permissions of a directory in Windows, the `_access` function is not sufficient since it does not account for the Windows security model based on Access Control Lists (ACLs). Instead, you should use the Windows API to explicitly check the permissions associated with the directory. You can achieve t...
18,729
[ { "from": "human", "value": "Greetings!\nI am trying to check directory write-permissions from within a Windows MFC/ATL program using C++. My first guess is to use the C-standard _access function, e.g.:\nif (_access(\"C:\\mydir\", 2) == -1)\n // Directory is not writable.\n\nBut apparently on Windows 2000...
I'm wondering if anyone can recommend a good C++ tree implementation, hopefully one that is stl compatible if at all possible. For the record, I've written tree algorithms many times before, and I know it can be fun, but I want to be pragmatic and lazy if at all possible. So an actual link to a working solution is the...
If you're looking for a generic tree implementation in C++ that is compatible with the STL and allows for flexibility in terms of data and structure, you might find the following libraries useful: 1. **Boost Graph Library (BGL)**: While primarily for graphs, the Boost Graph Library provides a lot of utility for tree s...
19,986
[ { "from": "human", "value": "I'm wondering if anyone can recommend a good C++ tree implementation, hopefully one that is \nstl compatible if at all possible.\nFor the record, I've written tree algorithms many times before, and I know it can be fun, but I want to be pragmatic and lazy if at all possible. So ...
Sorry if the title is poorly descriptive, but I can't do better right now =( So, I have this master-detail scheme, with the detail being a tree structure (one to many self relation) with n levels (on SQLServer 2005) I need to copy a detail structure from one master to the another using a stored procedure, by passing th...
To copy a hierarchical structure from one master record to another in SQL Server without using cursors, you can utilize a temporary table to store the details of the source hierarchy. Then, you can use a recursive Common Table Expression (CTE) to traverse the tree and create new entries based on the source structure. ...
16,542
[ { "from": "human", "value": "Sorry if the title is poorly descriptive, but I can't do better right now =(\nSo, I have this master-detail scheme, with the detail being a tree structure (one to many self relation) with n levels (on SQLServer 2005)\nI need to copy a detail structure from one master to the anot...
I use log4net in just about every code project. I was wondering what other generally useful code projects are available?
Log4net is a great choice for logging in .NET applications, and there are many other useful libraries and frameworks that can enhance your development experience across various aspects of coding. Here are some generally useful code projects you might consider integrating into your projects: 1. **Serilog**: An alternat...
19,081
[ { "from": "human", "value": "I use log4net in just about every code project. I was wondering what other generally useful code projects are available?\n" }, { "from": "gpt", "value": "Log4net is a great choice for logging in .NET applications, and there are many other useful libraries and framewo...
I'd like to create a batch job in X++ for Microsoft Axapta 3.0 (Dynamics AX). How can I create a job which executes an X++ function like this one? static void ExternalDataRead(Args _args) { ... }
Creating a batch job in Microsoft Dynamics AX 3.0 (Axapta) involves a few steps, including defining the job and setting it up for execution. Below are the steps to create a batch job that executes an X++ function, such as your `ExternalDataRead` method. ### Step 1: Create a Class for the Batch Job First, create a new...
19,247
[ { "from": "human", "value": "I'd like to create a batch job in X++ for Microsoft Axapta 3.0 (Dynamics AX).\nHow can I create a job which executes an X++ function like this one?\nstatic void ExternalDataRead(Args _args)\n{\n...\n}\n\n" }, { "from": "gpt", "value": "Creating a batch job in Microso...
Is there a way to make awk (gawk) ignore or skip missing files? That is, files passed on the command line that no longer exist in the file system (e.g. rapidly appearing/disappearing files under /proc/[1-9]*). By default, a missing file is a fatal error :-( I would like to be able to do the equivalent of something like...
`gawk` does not have an option to ignore missing files directly, but you can handle this behavior with a shell wrapper that captures errors when files are missing and continues executing the rest of the processing. Since your requirement is to minimize race conditions, we can use a combination of shell scripting and `g...
22,182
[ { "from": "human", "value": "Is there a way to make awk (gawk) ignore or skip missing files? That is, files passed on the command line that no longer exist in the file system (e.g. rapidly appearing/disappearing files under /proc/[1-9]*).\nBy default, a missing file is a fatal error :-(\nI would like to be ...
When working with cffile in ColdFusion, after an upload of a file to a webserver, the cffile structure is created that is supposed to have a value in it called "oldFileSize". Every time I do an upload and examine that value, it has the new file's size, not the overwritten file's size. Is there some setting somewhere ...
In ColdFusion 8, the `cffile` tag is designed to handle file uploads, and one of its features is the ability to overwrite existing files if specified. When you set the `action` attribute to `"upload"` and use the `overwrite` attribute, it is expected that the `oldFileSize` key in the resulting structure should contain ...
20,222
[ { "from": "human", "value": "When working with cffile in ColdFusion, after an upload of a file to a webserver, the cffile structure is created that is supposed to have a value in it called \"oldFileSize\". Every time I do an upload and examine that value, it has the new file's size, not the overwritten fil...
How do I define the Assembly folder for an Application correctly? I tried to use the registry Key: HKLM/SOFTWARE/Microsoft/.NET Framework/AssemblyFolders/App-Name and use the (Default) to set this to the path where the assemblies are located. Some time ago this worked fine, but as I compiled a new Version and deployed ...
To define the Assembly folder for a .NET application correctly using the Windows Registry, you have the right idea about adding a key under `HKLM\SOFTWARE\Microsoft\.NET Framework\AssemblyFolders`. However, it's essential to ensure that several factors are correctly addressed to ensure the assembly folder is recognized...
20,301
[ { "from": "human", "value": "How do I define the Assembly folder for an Application correctly?\nI tried to use the registry Key:\nHKLM/SOFTWARE/Microsoft/.NET Framework/AssemblyFolders/App-Name\nand use the (Default) to set this to the path where the assemblies are located.\nSome time ago this worked fine, ...
In C++, what's the easiest way to get the local computer's IP address and subnet mask? I want to be able to detect the local machine's IP address in my local network. In my particular case, I have a network with a subnet mask of 255.255.255.0 and my computer's IP address is 192.168.0.5. I need to get these had two valu...
To get the local computer's IP address and subnet mask in C++, you can use platform-specific libraries. For Windows, you might use the Winsock API, while for Unix-like systems (Linux, macOS), you can use the `ifaddrs` API. Here's a simple example that works on both Windows and Unix-like systems using conditional compi...
16,216
[ { "from": "human", "value": "In C++, what's the easiest way to get the local computer's IP address and subnet mask?\nI want to be able to detect the local machine's IP address in my local network. In my particular case, I have a network with a subnet mask of 255.255.255.0 and my computer's IP address is 192...
I have c# that will run in a windows service. I'm trying to use the Process and ProcessStartInfo classes to run an executable. If the executable is on the local drive, no problem. However, I need to run an executable on a shared drive. I've tried using the UNC notation (//machine_name/share_name/directory/runme.exe...
Running an executable located on a shared drive from a Windows service can indeed present some challenges, especially regarding permissions and the context in which the service is running. Here are some steps and considerations that might help you troubleshoot and successfully execute the application from a shared driv...
20,003
[ { "from": "human", "value": "I have c# that will run in a windows service. I'm trying to use the Process and ProcessStartInfo classes to run an executable. If the executable is on the local drive, no problem. However, I need to run an executable on a shared drive. I've tried using the UNC notation (//ma...
I'm working on a legacy app and for whatever reason it's trying to stuff URL-encoded angle brackets into a URL. For example, to get a URL ending with "<sometext>": http://somesite.com/somefolder/%3csometext%3e When the above URL-encoded URL is fetched, it generates a 400 error (Bad Request) on IIS6 and I can't quite fi...
The issue you are encountering with the URL-encoded angle brackets (`%3c` for `<` and `%3e` for `>`) likely relates to how IIS 6 handles URL encoding, especially in the context of security and URL parsing. IIS has restrictions and security measures that prevent certain characters from being passed in URLs to mitigate r...
21,194
[ { "from": "human", "value": "I'm working on a legacy app and for whatever reason it's trying to stuff URL-encoded angle brackets into a URL. For example, to get a URL ending with \"<sometext>\":\nhttp://somesite.com/somefolder/%3csometext%3e\nWhen the above URL-encoded URL is fetched, it generates a 400 err...
We have our JBoss and Oracle on separate servers. The connections seem to be dropped and is causing issues with JBoss. How can I have the JBoss reconnect to Oracle if the connection is bad while we figure out why the connections are being dropped in the first place?
To configure JBoss (now known as WildFly) to automatically reconnect to Oracle if a connection is lost, you can adjust your data source configuration and implement connection validation features. Below are steps that can help you enable automatic reconnections while you troubleshoot the underlying issue: ### Step 1: C...
18,372
[ { "from": "human", "value": "We have our JBoss and Oracle on separate servers. The connections seem to be dropped and is causing issues with JBoss. How can I have the JBoss reconnect to Oracle if the connection is bad while we figure out why the connections are being dropped in the first place?\n" }, { ...
I have a cluster of three mongrels running under nginx, and I deploy the app using Capistrano 2.4.3. When I "cap deploy" when there is a running system, the behavior is: The app is deployed. The code is successfully updated. In the cap deploy output, there is this: executing "sudo -p 'sudo password: ' mongrel_rail...
It looks like you've already identified the root of the problem: the `mongrel_rails cluster::restart` command does not wait for the processes to fully stop before trying to start them again. This can lead to issues like the one you experienced, where the old instances are not fully shut down before new ones are started...
20,121
[ { "from": "human", "value": "I have a cluster of three mongrels running under nginx, and I deploy the app using Capistrano 2.4.3. When I \"cap deploy\" when there is a running system, the behavior is: \n\nThe app is deployed. The code is successfully updated. \nIn the cap deploy output, there is this: \n\ne...
I normally don't work on Windows development, and am completely unfamiliar with the toolchain and build system. My embedded product includes some Windows DLLs from a third party in its filesystem (which are used by a Windows machine which mounts the filesystem). I have a problem: the most recent release of these DLLs h...
Certainly! Here's a step-by-step guide on how to check for debug symbols in a Windows DLL and how to strip them out using Visual Studio tools, specifically using the `strip` utility from the GNU Binutils, which can be accessed via Windows Subsystem for Linux (WSL) or other Unix-like environments, or using `EditBin`, wh...
17,150
[ { "from": "human", "value": "I normally don't work on Windows development, and am completely unfamiliar with the toolchain and build system. My embedded product includes some Windows DLLs from a third party in its filesystem (which are used by a Windows machine which mounts the filesystem).\nI have a proble...
Would a C++ CLI compiler be able to compile some large sets of C++ classes without modifications? Is C++ CLI a superset of C++?
C++/CLI is not a superset of standard C++. It is a language specification designed for interoperability with the .NET Framework, which allows you to write managed code in C++ that can interoperate with other .NET languages (like C# and VB.NET). While it incorporates many features of standard C++, it also includes exten...
21,379
[ { "from": "human", "value": "Would a C++ CLI compiler be able to compile some large sets of C++ classes without modifications? \nIs C++ CLI a superset of C++?\n" }, { "from": "gpt", "value": "C++/CLI is not a superset of standard C++. It is a language specification designed for interoperability ...
I like the simplistic look and design of some of the Microsoft blogs. Alas, I can't join the Microsoft dev party and create my own development blog on the blogs.msdn.com page because I don't work at Microsoft, and I already have my own wordpress blog. I was looking to have my blog styled to one of the default looking t...
Using a stylesheet from a Microsoft page without permission could potentially lead to legal issues, as it would likely be considered a violation of copyright. Copyright law protects original works of authorship, including software code and stylesheets. Even if you create a stylesheet that is inspired by Microsoft’s des...
23,829
[ { "from": "human", "value": "I like the simplistic look and design of some of the Microsoft blogs. Alas, I can't join the Microsoft dev party and create my own development blog on the blogs.msdn.com page because I don't work at Microsoft, and I already have my own wordpress blog.\nI was looking to have my b...
What I want to do is the following: read in multiple line input from stdin into variable A make various operations on A pipe A without losing delimiter symbols (\n,\r,\t,etc) to another command The current problem is that, I can't read it in with read command, because it stops reading at newline. I can read stdin wit...
To handle multiple lines of input while preserving delimiters like newlines, tabs, and others, and to pipe that input to another command, you can use a combination of `cat` and process substitution in bash. Below is a modified version of your script that captures input correctly and pipes it to another command while pr...
20,870
[ { "from": "human", "value": "What I want to do is the following:\n\nread in multiple line input from stdin into variable A\nmake various operations on A\npipe A without losing delimiter symbols (\\n,\\r,\\t,etc) to another command\n\nThe current problem is that, I can't read it in with read command, because...
How to convey a bad news to the client?
Conveying bad news to a client is a delicate situation that requires a thoughtful approach. Here are some steps to help you communicate effectively and maintain a professional relationship: 1. **Prepare for the Conversation**: - Understand the details of the situation thoroughly. - Anticipate potential question...
22,823
[ { "from": "human", "value": "How to convey a bad news to the client?\n" }, { "from": "gpt", "value": "Conveying bad news to a client is a delicate situation that requires a thoughtful approach. Here are some steps to help you communicate effectively and maintain a professional relationship:\n\n1...
Can anyone provide and example of downloading a PDF file using Watin? I tried the SaveAsDialogHandler but I couldn't figure it out. Perhaps a MemoryStream could be used? Thanks, --jb
Using WatiN (Web Application Testing in .NET) for downloading a PDF file can be a bit tricky since it’s primarily designed for automating web browsers rather than handling file downloads directly. However, you can work around it by intercepting the download process. One way to download a PDF file with WatiN is to avoi...
20,303
[ { "from": "human", "value": "Can anyone provide and example of downloading a PDF file using Watin? I tried the SaveAsDialogHandler but I couldn't figure it out. Perhaps a MemoryStream could be used?\nThanks,\n--jb\n" }, { "from": "gpt", "value": "Using WatiN (Web Application Testing in .NET) f...
I have an ASP.Net 2.0 application in which the Session_Start event is not firing in my Global.asax file. Can anyone tell why this is happening and how I can get it working? The application worked fine on my Windows XP development machine, but stopped working when deployed to the server (Win Server 2003/IIS 6/ASP.Net 2....
When the `Session_Start` event does not fire in your ASP.NET application, it can be due to a few common issues, especially given the server environment and your mention of a SharePoint installation. Here are some potential reasons and solutions for your issue: 1. **Session State Disabled**: Ensure that session state i...
19,099
[ { "from": "human", "value": "I have an ASP.Net 2.0 application in which the Session_Start event is not firing in my Global.asax file. Can anyone tell why this is happening and how I can get it working?\nThe application worked fine on my Windows XP development machine, but stopped working when deployed to th...
How to sort list of values using only one variable?
You can sort a list of values using a single variable by implementing an in-place sorting algorithm or using the concept of a "key" for sorting while only storing minimal additional state. Here’s a simple example using the insertion sort algorithm, which sorts a list using a single additional variable to track the curr...
22,909
[ { "from": "human", "value": "How to sort list of values using only one variable?\n" }, { "from": "gpt", "value": "You can sort a list of values using a single variable by implementing an in-place sorting algorithm or using the concept of a \"key\" for sorting while only storing minimal additiona...
Is there a way to do a mysql database query in Corel Draw 13(X3)?
CorelDRAW X3 does not natively support direct interaction with a MySQL database for executing queries or retrieving data. However, you can achieve integration between CorelDRAW and a MySQL database using a combination of other tools or programming languages. Here are a few approaches you can consider: 1. **Scripting ...
21,755
[ { "from": "human", "value": "Is there a way to do a mysql database query in Corel Draw 13(X3)? \n" }, { "from": "gpt", "value": "CorelDRAW X3 does not natively support direct interaction with a MySQL database for executing queries or retrieving data. However, you can achieve integration between ...
We have the following code in VxWorks: sig_hdr () { ... } task_low_priority() { ... // Install signal handler for SIGUSR1 signal(SIGUSR1, sig_hdr); ... } task_high_priority() { ... kill(pid, SIGUSR1); //pid is the ID of task_low_priority ... } The high priority task sends a signal (via ki...
In VxWorks, the behavior regarding signal handling and task scheduling is designed to provide real-time capabilities. Here's how it works in your described scenario: 1. When `task_high_priority()` calls `kill(pid, SIGUSR1)`, it sends a signal to the `task_low_priority()`. 2. In VxWorks, sending a signal to a task do...
21,862
[ { "from": "human", "value": "We have the following code in VxWorks:\n\nsig_hdr () { ... }\ntask_low_priority() {\n ...\n // Install signal handler for SIGUSR1\n signal(SIGUSR1, sig_hdr);\n ...\n}\ntask_high_priority() {\n ...\n kill(pid, SIGUSR1); //pid is the ID of task_low_priority\n ...
Is there an easy method to store a person's user settings in a sql 2000 database. Ideally all settings in one field so I don't keep having to edit the table every time I add a setting. I am thinking along the lines of serialize a settings class if anyone has an example. The reason I don't want to use the built in .NET ...
Storing user settings in a single field of a SQL Server 2000 database can be achieved by serializing an object (like a settings class) into a format that can be stored in a string field. Here are a couple of methods you could use to achieve this: JSON serialization or XML serialization. ### Using XML Serialization 1....
14,748
[ { "from": "human", "value": "Is there an easy method to store a person's user settings in a sql 2000 database. Ideally all settings in one field so I don't keep having to edit the table every time I add a setting. I am thinking along the lines of serialize a settings class if anyone has an example.\nThe rea...
I'm trying to link an RPATH containing the special string $ORIGIN into an executable built using GCC with the Code::Blocks IDE. I've specified -Wl,-R$ORIGIN in the linker options for the project, but the command line output to GCC is wrong (stripped for clarity): g++ -Wl,-R What is the correct way to specify this arg...
In Code::Blocks, specifying linker options that include special characters like `$` can sometimes be problematic because the IDE might not interpret them correctly. Instead of passing the `$ORIGIN` directly in the linker options, you can use the `-Wl,` flag followed by `-rpath` and then `'$ORIGIN'` in quotes to ensure ...
24,099
[ { "from": "human", "value": "I'm trying to link an RPATH containing the special string $ORIGIN into an executable built using GCC with the Code::Blocks IDE. I've specified\n-Wl,-R$ORIGIN\n\nin the linker options for the project, but the command line output to GCC is wrong (stripped for clarity):\ng++ -Wl,-R...
I am looking to get the actual property name from a MAPI schema property. I'm obtaining the MAPI Schema property "http://schemas.microsoft.com/mapi/proptag/0x67AA000B" but I would like to know what field this corresponds to (I.E. Anniversary, BusinessAddress, etc). Any insight would be appreciated.
The MAPI property you mentioned, identified by the property tag `0x67AA000B`, corresponds to the property known as **"PR_BUSINESS_ADDRESS"** in the MAPI schema. In this case, it is specifically a Boolean property that indicates whether the business address has been set for a contact. In general, the MAPI properties ca...
24,599
[ { "from": "human", "value": "I am looking to get the actual property name from a MAPI schema property. I'm obtaining the MAPI Schema property \"http://schemas.microsoft.com/mapi/proptag/0x67AA000B\" but I would like to know what field this corresponds to (I.E. Anniversary, BusinessAddress, etc). Any insight...
I have several python projects that share common modules. Until now, I've been ... ahem ... keeping multiple copies of the common code and synchronizing by hand. But I'd clearly prefer to do something else. It looks to me now, as if zc.Buildout maybe what I need. I guess that what I should be doing is putting each reus...
You're on the right track with your ideas about organizing your Python projects using a build system and separating reusable components into distinct packages or eggs. Let's break down your approach and clarify how to effectively manage your projects with zc.buildout and source control (like SVN). ### Project Structur...
18,179
[ { "from": "human", "value": "I have several python projects that share common modules. Until now, I've been ... ahem ... keeping multiple copies of the common code and synchronizing by hand. But I'd clearly prefer to do something else.\nIt looks to me now, as if zc.Buildout maybe what I need. I guess that w...
I guess this is an odd one, and the answer is most likely it is not possible since it would represent a security breach; but I am looking for a way - if any - to get a screendump of content inside the browser. I don't need the entire window, but actually just need to dump the rendered state of an tag. It need to be cr...
Taking a screenshot of a specific HTML element (like a `<div>` or an `<img>`) within a web page while ensuring cross-platform and cross-browser compatibility can be challenging. However, there are JavaScript libraries available that can help you achieve this in a secure and permissible way. ### Using `html2canvas` One...
19,881
[ { "from": "human", "value": "I guess this is an odd one, and the answer is most likely it is not possible since it would represent a security breach; but I am looking for a way - if any - to get a screendump of content inside the browser. I don't need the entire window, but actually just need to dump the re...
I am writing a drop-in replacement for a legacy application in Java. One of the requirements is that the ini files that the older application used have to be read as-is into the new Java Application. The format of this ini files is the common windows style, with header sections and key=value pairs, using # as the cha...
To read INI files in a way that supports multiple sections (headers) and avoids the limitations of the `Properties` class, you can create a custom parser for the INI file format. Here’s a simple approach to achieve this: ### Step 1: Create a Custom INI Parser You can create a class called `IniFile` that will manage t...
17,655
[ { "from": "human", "value": "I am writing a drop-in replacement for a legacy application in Java. One of the requirements is that the ini files that the older application used have to be read as-is into the new Java Application. The format of this ini files is the common windows style, with header section...
It seems like Sql Reporting Services Server logs information in several places including web server logs and logging tables in the database. Where are all the locations SSRS logs to, and what type of errors are logged in each place?
SQL Server Reporting Services (SSRS) logs information in several locations, each serving different purposes and containing different types of information. Here’s a breakdown of the primary locations where SSRS logs data and the types of errors or information logged in each place: ### 1. **ReportServer Database** - ...
13,786
[ { "from": "human", "value": "It seems like Sql Reporting Services Server logs information in several places including web server logs and logging tables in the database. Where are all the locations SSRS logs to, and what type of errors are logged in each place?\n" }, { "from": "gpt", "value": "S...
How can I to generate an RSS feed of Team Foundation Server commit messages? In Visual Studio's Source Control Explorer, the "View History" option produces a nice GUI view. Likewise, the command line tf history /recursive /stopafter:40 . produces a nice GUI view. I'd like an RSS feed that would supply the same, or...
To generate an RSS feed of commit messages from Team Foundation Server (TFS), you can use a combination of TFS command-line tools and a simple script or application to format the data into an RSS feed. Below are the steps you can follow to achieve this: ### Step 1: Get Commit Messages from TFS You can use the TFS com...
14,198
[ { "from": "human", "value": "How can I to generate an RSS feed of Team Foundation Server commit messages?\nIn Visual Studio's Source Control Explorer, the \"View History\" option produces a nice GUI view. Likewise, the command line \ntf history /recursive /stopafter:40 . \n\nproduces a nice GUI view. I'd ...
Anyone know a QR decoder that works on mac or that might be online? I just need to decode one single image.
Yes, there are several options you can use to decode a QR code on a Mac or online. Here are a few: ### Online QR Code Decoders 1. **ZXing Decoder Online**: - Visit the [ZXing Decoder](https://zxing.org/w/decode.jspx). - Upload your QR code image, and it will decode the contents for you. 2. **QR Code Reader**: ...
22,914
[ { "from": "human", "value": "Anyone know a QR decoder that works on mac or that might be online? I just need to decode one single image.\n" }, { "from": "gpt", "value": "Yes, there are several options you can use to decode a QR code on a Mac or online. Here are a few:\n\n### Online QR Code Decod...
I've got a client that, during testing, is giving me conflicting information. I don't think they are lying but more confused. So, I would like to setup some simple auditing in my ASP.Net application. Specifically, right when any page is called, I want to immediately insert the Querystring and/or form POST data into ...
In ASP.NET, while you can't directly access the raw POST data after reading it with `Request.Form`, you can use a combination of the `HttpRequest` object and the `Request.Params` collection to create an easy-to-use logging mechanism. Here’s how you can set up auditing for both query strings and form POST data effective...
18,541
[ { "from": "human", "value": "I've got a client that, during testing, is giving me conflicting information. I don't think they are lying but more confused. So, I would like to setup some simple auditing in my ASP.Net application. Specifically, right when any page is called, I want to immediately insert th...
I'm trying to write a resolution selection dialog that pops up when a program first starts up. To prevent boring the user, I want to implement the fairly standard feature that you can turn off that dialog with a checkbox, but get it back by holding down the alt key at startup. Unfortunately, there is no obvious way to ...
To achieve the functionality you're looking for in a Java application, you'll need to work around the fact that Java's standard libraries don't directly allow you to check the state of keys before the application starts up. However, you can use a few tricks involving the Java AWT (Abstract Window Toolkit) and some low-...
17,336
[ { "from": "human", "value": "I'm trying to write a resolution selection dialog that pops up when a program first starts up. To prevent boring the user, I want to implement the fairly standard feature that you can turn off that dialog with a checkbox, but get it back by holding down the alt key at startup.\n...
I have a problem with WSE on Windows 2000 Machines. The method SoapReceivers.Add crashed under Windows 2000. It seemes that the windows 2000 os did not allow to start a listening service on excluse addresses. So I find a out that I can set this in the config file to "false" But the problem is still be available. Anybo...
It sounds like you're experiencing issues with Windows Server Extensions (WSE) on Windows 2000, particularly when trying to add a SOAP receiver. You've already mentioned that you're trying to set some configuration settings to manage the listening service's address behavior, but the problem persists. Here are some ste...
14,500
[ { "from": "human", "value": "I have a problem with WSE on Windows 2000 Machines. The method SoapReceivers.Add crashed under Windows 2000. It seemes that the windows 2000 os did not allow to start a listening service on excluse addresses. So I find a out that I can set this in the config file to \"false\"\n\...