instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I have a PHP application which needs to output a python script, more specifically a bunch of variable assignment statements, eg. subject_prefix = 'This String From User Input' msg_footer = """This one too.""" The contents of subject_prefix et al need to be written to take user input; as such, I need to escape the cont...
When you need to safely embed user input into a Python script using PHP, you have to consider how to escape special characters to ensure that the generated Python code remains valid. Instead of trying to manually escape every character, it's usually better to use a well-defined method to safely serialize the input. Fo...
28,547
[ { "from": "human", "value": "I have a PHP application which needs to output a python script, more specifically a bunch of variable assignment statements, eg.\nsubject_prefix = 'This String From User Input'\nmsg_footer = \"\"\"This one too.\"\"\"\n\nThe contents of subject_prefix et al need to be written to ...
What is the most efficient way to enumerate every cell in every sheet in a workbook? The method below seems to work reasonably for a workbook with ~130,000 cells. On my machine it took ~26 seconds to open the file and ~5 seconds to enumerate the cells . However I'm no Excel expert and wanted to validate this code snipp...
Your code snippet for enumerating every cell in every sheet in an Excel workbook using Microsoft Office Interop is mostly functional, but there are several areas where you could optimize it. Here are some suggestions to improve efficiency and readability: ### 1. Use `GetValue` with `GetAddress` - The use of `UsedRange...
28,090
[ { "from": "human", "value": "What is the most efficient way to enumerate every cell in every sheet in a workbook?\nThe method below seems to work reasonably for a workbook with ~130,000 cells. On my machine it took ~26 seconds to open the file and ~5 seconds to enumerate the cells . However I'm no Excel exp...
I have a Spring Interceptor which attempts to add an HTTP header in the postHandle() method. public void postHandle(HttpServletRequest req, HttpServletResponse resp, Object obj1, ModelAndView mv) throws Exception { response.setHeader("SomeHeaderSet", "set"); response.addHeader("Som...
In Spring MVC, the `postHandle` method of an interceptor is indeed a valid place to add HTTP headers to the response. However, if you're not seeing the headers being added, there are a few things you should check: 1. **Response Commitment**: If the response has already been committed (meaning that the headers have alr...
26,863
[ { "from": "human", "value": "I have a Spring Interceptor which attempts to add an HTTP header in the postHandle() method.\npublic void postHandle(HttpServletRequest req, HttpServletResponse resp, \n Object obj1, ModelAndView mv)\n throws Exception {\n response.setHeader(\"SomeHeade...
The HttpRequestPool class provides a solution. Many thanks to those who pointed this out. A brief tutorial can be found at: http://www.phptutorial.info/?HttpRequestPool-construct Problem I'd like to make concurrent/parallel/simultaneous HTTP requests in PHP. I'd like to avoid consecutive requests as: a set of reque...
Using the PECL HTTP extension, specifically the `HttpRequest` class, to make concurrent HTTP requests isn't directly supported in the way you might expect. The `HttpRequest` class is designed for synchronous requests, meaning each request is handled one after the other. However, you can achieve concurrent behavior usi...
24,197
[ { "from": "human", "value": "\n\nThe HttpRequestPool class provides a solution. Many thanks to those who pointed this out.\nA brief tutorial can be found at: http://www.phptutorial.info/?HttpRequestPool-construct\n\nProblem\nI'd like to make concurrent/parallel/simultaneous HTTP requests in PHP. I'd like to...
I'm building a auto updater and I need to know what kind of upload speeds people get on a 56K modem?
A standard 56K modem has a theoretical maximum download speed of 56 Kbps (kilobits per second) and a maximum upload speed of around 33.6 Kbps. However, actual speeds can vary based on several factors, including line quality, distance from the service provider, and network congestion. For practical purposes, users may ...
34,331
[ { "from": "human", "value": "I'm building a auto updater and I need to know what kind of upload speeds people get on a 56K modem?\n" }, { "from": "gpt", "value": "A standard 56K modem has a theoretical maximum download speed of 56 Kbps (kilobits per second) and a maximum upload speed of around 3...
What exactly is a Geographic Information System?
A Geographic Information System (GIS) is a framework for gathering, managing, analyzing, and visualizing spatial or geographic data. It combines hardware, software, and data to capture, manage, analyze, and display all forms of geographically referenced information. GIS allows users to visualize and interpret data in v...
32,564
[ { "from": "human", "value": "What exactly is a Geographic Information System?\n" }, { "from": "gpt", "value": "A Geographic Information System (GIS) is a framework for gathering, managing, analyzing, and visualizing spatial or geographic data. It combines hardware, software, and data to capture,...
I am developing an iPhone application that persists data to a SQLite3 database. For each row I persist I wish to include a 'created date' and a 'last modified date' My question is what is the recommend approach for storing this information in a table? The properties are represented as NSDate in my application but I a...
When working with SQLite and dates, there are a few common approaches to storing `NSDate` objects. Since SQLite does not have a native `DATETIME` type, you can choose one of the following methods to store your date information effectively. ### 1. Storing Dates as Strings in ISO 8601 Format One of the most common meth...
31,579
[ { "from": "human", "value": "I am developing an iPhone application that persists data to a SQLite3 database. \nFor each row I persist I wish to include a 'created date' and a 'last modified date'\nMy question is what is the recommend approach for storing this information in a table? \nThe properties are rep...
i have a server - client application that runs on java 1.3; i want to change to java 1.6 step by step, meaning first few clients, than rest of the clients and finally server... i was wondering could you direct me to some common problems that can come along and what should i look after?
Upgrading a server-client application from Java 1.3 to Java 1.6 can be a significant change, given the differences between these versions. Here are some common problems you may encounter during this step-by-step migration, along with guidance on what to look out for: ### Common Problems and Considerations 1. **Langua...
27,662
[ { "from": "human", "value": "i have a server - client application that runs on java 1.3; i want to change to java 1.6 step by step, meaning first few clients, than rest of the clients and finally server...\ni was wondering could you direct me to some common problems that can come along and what should i loo...
I've got a small little page that is going to be viewed from a BB. Here's my 2 questions: If I "click" on the link to submit the page, I get the following error: "JavaScript: An error occurred while executing a script." I can tell my BB to emulate a Microsoft IE browser and I don't get this error. I hope to not use th...
It sounds like you're facing two issues with your web page when viewed on a BlackBerry (BB) device. Let’s break them down and provide possible solutions for each. ### Issue 1: "JavaScript: An error occurred while executing a script." This error usually indicates that there is a JavaScript compatibility issue between ...
29,817
[ { "from": "human", "value": "I've got a small little page that is going to be viewed from a BB. Here's my 2 questions:\n\nIf I \"click\" on the link to submit the page, I get the following error: \"JavaScript: An error occurred while executing a script.\" I can tell my BB to emulate a Microsoft IE browser a...
I'm running Python 2.6 on Unix and when I run the interactive prompt (SQLite is supposed to be preinstalled) I get: [root@idev htdocs]# python Python 2.6 (r26:66714, Oct 23 2008, 16:25:34) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> i...
The error you are encountering (`ImportError: No module named sqlite`) suggests that the SQLite module is not available in your Python 2.6 installation. This can happen if the SQLite library was not installed or if the Python interpreter was compiled without SQLite support. Here are steps you can take to resolve the i...
29,793
[ { "from": "human", "value": "I'm running Python 2.6 on Unix and when I run the interactive prompt (SQLite is supposed to be preinstalled) I get:\n[root@idev htdocs]# python\nPython 2.6 (r26:66714, Oct 23 2008, 16:25:34)\n[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2\nType \"help\", \"copyright\", \...
I have a html string held in memory after transforming to my desired template with XSLT. What is the best mechanism to the send this to the client printer? In previous projects I have shamelessly cheated and created a print preview screen, which was essentially an ASPX page with white background that I then printed us...
To send an HTML string to the client's printer directly, you can indeed create a print preview screen as you have done in previous projects, but there are also other effective methods to achieve this without the need for a separate ASPX page. ### Method 1: Using `window.print()` with a Print Preview If you want to ke...
29,358
[ { "from": "human", "value": "I have a html string held in memory after transforming to my desired template with XSLT. What is the best mechanism to the send this to the client printer? \nIn previous projects I have shamelessly cheated and created a print preview screen, which was essentially an ASPX page wi...
I need a webserver to serve up very simple POST/GET requests as JSON. I don't need MVC, Rails, Django. I need something that takes up very little memory, preferrably around 5K per reqeust. The webserver will talk to backend services like Scribe using Facebook Thrift. Each http request will also access a SQLLite dat...
Given your requirements for a lightweight web server that handles simple POST/GET requests, serves JSON responses, accesses SQLite databases, and can deliver static HTML files, let's evaluate your options and consider some additional possibilities: ### Evaluated Options: 1. **Nginx with PHP**: - **Pros**: Nginx is...
26,319
[ { "from": "human", "value": "I need a webserver to serve up very simple POST/GET requests as JSON. I don't need MVC, Rails, Django. I need something that takes up very little memory, preferrably around 5K per reqeust. The webserver will talk to backend services like Scribe using Facebook Thrift. Each ht...
a while back I ran across a situation where we needed to display message-boxes to the user for notifications but we could not use MessageBox.Show because it blocks the GUI thread (so nothing on the screen gets updated while the dialog is active). Any suggestions on an alternative? [I coded an alternative at the time bu...
Your approach to creating a non-blocking alternative to `MessageBox.Show` using a custom dialog is quite reasonable, especially when you need to ensure that the UI remains responsive. However, if you're looking for alternative methods or libraries that can help streamline the process or enhance functionality, here are ...
24,743
[ { "from": "human", "value": "a while back I ran across a situation where we needed to display message-boxes to the user for notifications but we could not use MessageBox.Show because it blocks the GUI thread (so nothing on the screen gets updated while the dialog is active). Any suggestions on an alternativ...
I have an existing C++ project on a linux environment, and would like to import it into the Eclipse IDE. Not sure if I should start a new Eclipse C++ project, or if there was some way to import the source files?
To import your existing C++ project into the Eclipse IDE on a Linux environment, you have a couple of options. You can either create a new Eclipse C++ project and then import your existing source files into it, or you can try to import the project directly if it contains a Makefile or an Eclipse project file. Here’s ho...
31,181
[ { "from": "human", "value": "I have an existing C++ project on a linux environment, and would like to import it into the Eclipse IDE.\nNot sure if I should start a new Eclipse C++ project, or if there was some way to import the source files?\n" }, { "from": "gpt", "value": "To import your existi...
I've been using Visio 2002/2003 Enterprise Architect to do my database schema design visually and then forward-generate the DDL to create the database. I wanted to switch to Visio 2007, but while it does have database diagramming support, it doesn't have the ability to generate DDL. Bummer. I am really disappointed be...
If you're looking for a tool that can visually design database schemas and generate DDL for SQL Server, here are several options that might work for you: 1. **dbForge Studio for SQL Server**: While it’s a commercial product, it offers a free trial and has comprehensive features for database design, including schema vi...
33,147
[ { "from": "human", "value": "I've been using Visio 2002/2003 Enterprise Architect to do my database schema design visually and then forward-generate the DDL to create the database.\nI wanted to switch to Visio 2007, but while it does have database diagramming support, it doesn't have the ability to generate...
I am using the AdoNetAppender to write to a SQL Server 2005 database table. I have bufferSize set to 1 so that entries are written immediately. My DBA is concerned that log4net is leaving its database connection open. We have ~50 connections to the database today but only 22 log entries. In several cases there are mult...
When using the AdoNetAppender in log4net to log entries directly to a SQL Server database, it typically relies on connection pooling to manage database connections efficiently. If you're noticing a high number of open connections relative to the number of log entries, there are a few potential areas to investigate and ...
28,345
[ { "from": "human", "value": "I am using the AdoNetAppender to write to a SQL Server 2005 database table. I have bufferSize set to 1 so that entries are written immediately.\nMy DBA is concerned that log4net is leaving its database connection open. We have ~50 connections to the database today but only 22 lo...
I have a bit of a problem. I wrote an API a long time ago for our production system, and it used Apache XML Beans. The schema was homogeneous (ie no imports, everything was from within the same schema), and everything worked just fine, even if the code for API handling was incredibly verbose. I've since written a fa...
The error you're encountering suggests that the XML Beans validation process is expecting elements from the old namespace rather than the new one. This can happen when mixing different XML schemas, especially if the older schema has a strong binding to certain namespaces and types. Here are a few potential solutions o...
32,960
[ { "from": "human", "value": "I have a bit of a problem. I wrote an API a long time ago for our production system, and it used Apache XML Beans. The schema was homogeneous (ie no imports, everything was from within the same schema), and everything worked just fine, even if the code for API handling was inc...
Now, I know a difference between parameters in a URL and a POST parameter: some browsers may misbehave if the URL is too long, so it is not a good idea to stuff hundreds of parameters in a URL, even if your app can respond to a GET request. For the sake of discussion, let's suppose the following web application: a user...
You're correct in your understanding of the distinction between GET and POST requests, especially concerning the handling of parameters. Let's clarify a few points: 1. **GET vs. POST**: GET requests append parameters to the URL, while POST requests send parameters in the body of the request. This makes POST better sui...
29,237
[ { "from": "human", "value": "Now, I know a difference between parameters in a URL and a POST parameter: some browsers may misbehave if the URL is too long, so it is not a good idea to stuff hundreds of parameters in a URL, even if your app can respond to a GET request.\nFor the sake of discussion, let's sup...
Has anyone found a good class, or other file that will convert a .doc file into html or something that I can read and turn into html? I have been looking around for a couple hours now and have only found ones that require msword on the server in order to convert the file. I am pretty sure that is not an option but I h...
If you're looking for a way to convert `.doc` files to HTML without relying on Microsoft Word on the server, there are several libraries and tools that you can use. Here are some options that might work for you: ### PHP Libraries 1. **PHPWord**: - [PHPWord](https://github.com/PHPOffice/PHPWord) is a library that a...
28,413
[ { "from": "human", "value": "Has anyone found a good class, or other file that will convert a .doc file into html or something that I can read and turn into html? \nI have been looking around for a couple hours now and have only found ones that require msword on the server in order to convert the file. I am...
I'm interfacing with a payment gateway and not having any luck with Net::SSLeay and its post_https subroutine. The payment gateway has issued me a client certificate that must be used for authentication. The Net::SSLeay perldoc has the following example: ($page, $response, %reply_headers) = post_https('www.b...
The error you're encountering, "Too many arguments for Net::SSLeay::post_https", is due to the number of arguments being passed to the `post_https` function in your code. The `post_https` function in the `Net::SSLeay` module expects a specific number and type of arguments. In the example from the documentation, the fu...
30,804
[ { "from": "human", "value": "I'm interfacing with a payment gateway and not having any luck with Net::SSLeay and its post_https subroutine. The payment gateway has issued me a client certificate that must be used for authentication. The Net::SSLeay perldoc has the following example:\n($page, $response, %r...
Is there a (standardized) way to get the name of the current method using c++? Using GNU GCC you can do this by using the macro __FUNCTION__ and __PRETTY_FUNCTION__ (surrounded by 2 underscores), however, this is of course non portable. Is there a way to do this in standard c++ or a way to make it portable?
In standard C++, there is no built-in way to retrieve the name of the current function or method. The macros like `__FUNCTION__`, `__PRETTY_FUNCTION__`, and others (`__func__`, etc.) are compiler-specific extensions and not part of the C++ standard. Here's an overview of the options you have: ### 1. `__func__` macro ...
31,335
[ { "from": "human", "value": "Is there a (standardized) way to get the name of the current method using c++? \nUsing GNU GCC you can do this by using the macro __FUNCTION__ and __PRETTY_FUNCTION__ (surrounded by 2 underscores), however, this is of course non portable. Is there a way to do this in standard c+...
I'm creating a control and need to pass it the current logon user as a parameter (declaratively) I tried this but didn't work (I got "<%= User.Identity.Name %>" as value): <cc1:MyControl id="myid" runat="server" User="<%= User.Identity.Name %>" /> Is there a way to do it?
When you're trying to pass the current logged-in user's identity to a server-side control declaratively, the issue arises because `<%= User.Identity.Name %>` is evaluated at runtime, while the attribute values in ASP.NET controls are evaluated at design time (when the page is compiled). To pass the user identity to yo...
33,134
[ { "from": "human", "value": "I'm creating a control and need to pass it the current logon user as a parameter (declaratively)\nI tried this but didn't work (I got \"<%= User.Identity.Name %>\" as value):\n<cc1:MyControl id=\"myid\" runat=\"server\" User=\"<%= User.Identity.Name %>\" />\n\nIs there a way to ...
We use Telerik's RadEditor for our content management system's WYSIWYG editor. We need the find & replace functionality that is in the WYSIWYG editor to also be in the HTML editor. The editor is pretty customizable, anyone know if there is a way to enable this or hack it in?
Telerik's RadEditor does not natively include a find and replace feature in the HTML editor view. However, there are a few methods you could consider to implement this functionality: ### 1. Custom JavaScript Implementation You can add a custom JavaScript function to perform find and replace operations in the HTML edit...
29,544
[ { "from": "human", "value": "We use Telerik's RadEditor for our content management system's WYSIWYG editor. We need the find & replace functionality that is in the WYSIWYG editor to also be in the HTML editor. The editor is pretty customizable, anyone know if there is a way to enable this or hack it in?\n...
I need to send a very specific (non-standard) string to an FTP server: dir "SYS:\IC.ICAMA." The case is critical, as are the style of quotes and their content. Unfortunately, ftplib.dir() seems to use the 'LIST' command rather than 'dir' (and it uses the wrong case for this application). The FTP server is actually a t...
Yes, you can send specific commands to an FTP server using the `ftplib.FTP.sendcmd()` method, which allows you to issue arbitrary FTP commands directly. However, as you noticed, there may be some automatic command sequences or state changes that are not compatible with what you want to achieve. To send the exact comma...
22,510
[ { "from": "human", "value": "I need to send a very specific (non-standard) string to an FTP server:\ndir \"SYS:\\IC.ICAMA.\"\n\nThe case is critical, as are the style of quotes and their content.\nUnfortunately, ftplib.dir() seems to use the 'LIST' command rather than 'dir' (and it uses the wrong case for t...
I have two html pages, when you click on something on the first html, it will go to the second one. What I want to do is to show text according to what you clicked on the first html. different texts are wrapped with different ids. Here's how I wrote: <a href="secondpage.html#one"></a> <a href="secondpage.html#two"></a>...
To achieve the desired functionality where clicking on the links in the first HTML page navigates to the second page and displays corresponding content based on the clicked link, you'll need to adjust both your HTML and JavaScript. ### 1. HTML Structure for the Second Page It looks like you're trying to use anchor t...
29,330
[ { "from": "human", "value": "I have two html pages, when you click on something on the first html, it will go to the second one. What I want to do is to show text according to what you clicked on the first html. different texts are wrapped with different ids. Here's how I wrote:\n<a href=\"secondpage.html#o...
For this xml (in a SQL 2005 XML column): <doc> <a>1</a> <b ba="1" bb="2" bc="3" /> <c bd="3"/> </doc> I'd like to be able to retrieve the names of the attributes (ba, bb, bc, bd) rather than the values inside SQL Server 2005. Well, XPath certainly allows this with name() but SQL doesn't support that. This is my chi...
In SQL Server 2005, the XML capabilities are indeed more limited compared to XPath/XQuery capabilities in other environments. Unfortunately, SQL Server's XML support does not directly allow you to retrieve attribute names through a simple query. However, you can still achieve your goal by extracting the attribute valu...
29,101
[ { "from": "human", "value": "For this xml (in a SQL 2005 XML column):\n<doc>\n <a>1</a>\n <b ba=\"1\" bb=\"2\" bc=\"3\" />\n <c bd=\"3\"/>\n</doc>\n\nI'd like to be able to retrieve the names of the attributes (ba, bb, bc, bd) rather than the values inside SQL Server 2005. Well, XPath certainly allows this ...
I want to have a function that will return the reverse of a list that it is given -- using recursion. How can I do that?
You can create a recursive function in Python that returns the reverse of a list. The idea is to take the first element of the list and append it to the reverse of the rest of the list. Here's a simple implementation of such a function: ```python def reverse_list(lst): # Base case: if the list is empty, return an ...
33,491
[ { "from": "human", "value": "I want to have a function that will return the reverse of a list that it is given -- using recursion. How can I do that?\n" }, { "from": "gpt", "value": "You can create a recursive function in Python that returns the reverse of a list. The idea is to take the first e...
What format do I use for Date/Time when writing to an XML file using .NET? Do I simply use DateTime.ToString(), or do I have to use a specific format?
When writing dates and times to an XML file in .NET, it's recommended to use the ISO 8601 format, which is the standard format for representing date and time in XML. The ISO 8601 format ensures compatibility across different systems and programming languages. In .NET, you can easily achieve this using the `DateTime` o...
31,557
[ { "from": "human", "value": "What format do I use for Date/Time when writing to an XML file using .NET? Do I simply use DateTime.ToString(), or do I have to use a specific format?\n" }, { "from": "gpt", "value": "When writing dates and times to an XML file in .NET, it's recommended to use the IS...
How would you convert a parapraph to hex notation, and then back again into its original string form? (C#) A side note: would putting the string into hex format shrink it the most w/o getting into hardcore shrinking algo's?
To convert a string to hexadecimal notation and then back again in C#, you can follow these steps: 1. **Convert string to hex**: Each character in the string is represented by its ASCII (or Unicode) value, which can be converted to a hexadecimal string. 2. **Convert hex back to string**: Each pair of hex digits can be...
31,905
[ { "from": "human", "value": "How would you convert a parapraph to hex notation, and then back again into its original string form?\n(C#)\nA side note: would putting the string into hex format shrink it the most w/o getting into hardcore shrinking algo's?\n" }, { "from": "gpt", "value": "To conv...
I have a c++ application which logs to some file using log4cxx (RollingFile appender). I want to log into the same file, at the same time, from another module written in c#; so i configured log4net to use the same file, but i can't get the new messages in. If i deactivate the c++ logging, i can see c# messages. So i th...
When using logging frameworks across different languages (like C++ and C#), especially when they both attempt to write to the same log file simultaneously, you can encounter locking issues. This is because both log4cxx (for C++) and log4net (for C#) have their default behaviors when it comes to file handling, which oft...
30,254
[ { "from": "human", "value": "I have a c++ application which logs to some file using log4cxx (RollingFile appender). I want to log into the same file, at the same time, from another module written in c#; so i configured log4net to use the same file, but i can't get the new messages in. If i deactivate the c+...
Is there any way, from a PHP script called from mod_php with apache, to tell apache to do an INTERNAL redirect to some other file? I do not want to read/require this file from PHP and spit it out, I think it'd be more efficient to pass this off to Apache. I believe this can be done with mod_perl and I'm curious if the...
Yes, you can achieve internal redirection in Apache using the `mod_rewrite` module, but it's important to understand that PHP itself does not directly provide a way to trigger an internal redirect. However, you can use the `header()` function in PHP to set a status code and a new location, which behaves like an externa...
29,456
[ { "from": "human", "value": "Is there any way, from a PHP script called from mod_php with apache, to tell apache to do an INTERNAL redirect to some other file?\nI do not want to read/require this file from PHP and spit it out, I think it'd be more efficient to pass this off to Apache. I believe this can be...
I need to construct some rather simple SQL, I suppose, but as it's a rare event that I work with DBs these days I can't figure out the details. I have a table 'posts' with the following columns: id, caption, text and a table 'comments' with the following columns: id, name, text, post_id What would the (single) SQL ...
To retrieve the captions of all posts that have one or more comments associated with them, you can use a `JOIN` between the `posts` and `comments` tables based on the `post_id` foreign key in the `comments` table. You can also use `DISTINCT` to ensure that you get unique captions in case a post has multiple comments. H...
34,205
[ { "from": "human", "value": "I need to construct some rather simple SQL, I suppose, but as it's a rare event that I work with DBs these days I can't figure out the details.\nI have a table 'posts' with the following columns:\n\nid, caption, text\n\nand a table 'comments' with the following columns:\n\nid, n...
So I have the following user defined type in my oracle database: CREATE OR REPLACE TYPE METRIC_IMPERIAL_DISTANCE AS OBJECT ( METERS_FEET INTEGER, CENTIMETERS_INCHES INTEGER, FRACTION NUMBER ) I can do the following: SELECT t_id, get_distance_breakdown (h.height, h.unit_of_measure_id) height_breakdown FR...
The issue you are encountering is related to how Oracle handles the scope of aliases in subqueries. In Oracle SQL, when you create an alias for a column in the subquery (like `height_breakdown`), it cannot be used directly to access its fields in the outer query. Instead, you need to include the `get_distance_breakdown...
31,877
[ { "from": "human", "value": "So I have the following user defined type in my oracle database: \nCREATE OR REPLACE TYPE METRIC_IMPERIAL_DISTANCE AS OBJECT\n(\n METERS_FEET INTEGER,\n CENTIMETERS_INCHES INTEGER,\n FRACTION NUMBER\n)\n\nI can do the following:\nSELECT t_id, get_distance_breakdown (h.height,...
How do I convert a keycode to a keychar in .NET?
In .NET, you can convert a key code (which you might get from key event arguments) to a character using a combination of the `Control.ModifierKeys` property and the `KeyEventArgs` or `KeyPressEventArgs` depending on your context (such as handling keyboard events in a Windows Forms application). Here’s how to do it ste...
28,874
[ { "from": "human", "value": "How do I convert a keycode to a keychar in .NET?\n" }, { "from": "gpt", "value": "In .NET, you can convert a key code (which you might get from key event arguments) to a character using a combination of the `Control.ModifierKeys` property and the `KeyEventArgs` or `K...
I am trying to plan a way for 5 developers to use Visual Studio 2005/2008 to collaboratively develop an ASP.NET web app on a development web server against an Oracle 8i(soon to be 10g) Database. The developers are either on the local network or coming in over a vpn (not a very fast connection), I evaluated the latest ...
Given your constraints and requirements, it sounds like you need a source control system that facilitates a centralized model with support for locking files, along with a deployment mechanism that allows for immediate visibility of changes on a development server. ### 1. Source Control Recommendations For your "Lock ...
27,180
[ { "from": "human", "value": "I am trying to plan a way for 5 developers to use Visual Studio 2005/2008 to collaboratively develop an ASP.NET web app on a development web server against an Oracle 8i(soon to be 10g) Database.\nThe developers are either on the local network or coming in over a vpn (not a very ...
I have a timely operation that runs on a background thread. While running, I currently put the cursor in a wait state: Mouse.OverrideCursor = Cursors.Wait I just implemented a feature that allows the user to click a "Cancel" button if they're tired of waiting. However, some users may not realize they can do this (de...
In .NET, you can create a custom cursor that combines the hourglass (wait) state with the standard arrow pointer by using a `Cursor` object. However, the .NET framework does not provide a pre-defined cursor that combines both the wait cursor and the arrow cursor. You can create a custom cursor that includes both elemen...
29,848
[ { "from": "human", "value": "I have a timely operation that runs on a background thread. While running, I currently put the cursor in a wait state:\nMouse.OverrideCursor = Cursors.Wait\n\nI just implemented a feature that allows the user to click a \"Cancel\" button if they're tired of waiting. However, s...
I just wrote a new web part and now I am getting this error when I try to deploy them on my non-dev servers: the default namespace 'http://schemas.microsoft.com/WebPart/v2' is a reserved namespace for base Web Part propertiees. Custom Web Part properties require a unique namespace (specified through an Xml...
The error you're encountering is due to the use of the default namespace for your custom Web Part properties. SharePoint requires that any custom properties defined in a Web Part have a unique XML namespace to avoid conflicts with reserved namespaces like `http://schemas.microsoft.com/WebPart/v2`. To resolve this issu...
33,009
[ { "from": "human", "value": "I just wrote a new web part and now I am getting this error when I try to deploy them on my non-dev servers:\n\nthe default namespace\n 'http://schemas.microsoft.com/WebPart/v2'\n is a reserved namespace for base Web\n Part propertiees. Custom Web Part\n properties require a...
I want to simplify my execution of a Groovy script that makes calls to an Oracle database. How do I add the ojdbc jar to the default classpath so that I can run: groovy RunScript.groovy instead of: groovy -cp ojdbc5.jar RunScript.groovy
To simplify your execution of a Groovy script by adding the `ojdbc` jar to the default classpath, you can do this in a couple of different ways depending on your operating system. Here’s how you can achieve that: ### 1. Set the CLASSPATH Environment Variable You can set the `CLASSPATH` environment variable to include...
30,211
[ { "from": "human", "value": "I want to simplify my execution of a Groovy script that makes calls to an Oracle database. How do I add the ojdbc jar to the default classpath so that I can run:\ngroovy RunScript.groovy\n\ninstead of:\ngroovy -cp ojdbc5.jar RunScript.groovy\n\n" }, { "from": "gpt", ...
I am using the WMD markdown editor in a project for a large number of fields that correspond to a large number of properties in a large number of Entity classes. Some classes may have multiple properties that require the markdown. I am storing the markdown itself since this makes it easier to edit the fields later. How...
You're on the right track in wanting to minimize code duplication and make your solution cleaner. Here are a few approaches you could consider for handling Markdown conversion more elegantly in your project: ### 1. Use a View Component As you mentioned in your edit, creating a view component in your Struts2 applicati...
28,890
[ { "from": "human", "value": "I am using the WMD markdown editor in a project for a large number of fields that correspond to a large number of properties in a large number of Entity classes. Some classes may have multiple properties that require the markdown.\nI am storing the markdown itself since this mak...
Is which IPs are assigned to which ISPs public information? How do geo IP services obtain this information and maintain this information? How can I personally figure out where a certain IP belongs without using one of these services?
Yes, the assignment of IP addresses to ISPs (Internet Service Providers) is generally public information. Organizations like the Internet Assigned Numbers Authority (IANA) and regional Internet registries (RIRs) such as ARIN, RIPE NCC, APNIC, and others manage and allocate IP address space. They maintain databases that...
30,874
[ { "from": "human", "value": "Is which IPs are assigned to which ISPs public information? How do geo IP services obtain this information and maintain this information?\nHow can I personally figure out where a certain IP belongs without using one of these services?\n" }, { "from": "gpt", "value":...
So let's say I have two different functions. One is a part of the BST class, one is just a helper function that will call on that Class function. I will list them out here. sieve(BST<T>* t, int n); this function is called like this: sieve(t,n) the object is called BST t; I'm going to be using the class remove fun...
You're correct in your understanding of how function parameters work in C++. When you declare a function with a parameter like `sieve(BST<int> t, int n)`, you are indeed passing `t` by value. This means that a copy of the object is created, and any modifications made to `t` inside `sieve` do not affect the original `t`...
31,985
[ { "from": "human", "value": "So let's say I have two different functions. One is a part of the BST class, one is just a helper function that will call on that Class function. I will list them out here.\nsieve(BST<T>* t, int n);\n\nthis function is called like this: sieve(t,n) the object is called BST t; ...
Is there such a thing? I'm talking about something like a C++ new command i.e. allocation of memory which necessitates explicit releasing of the memory (or risk memory leaks). I ask because I remember having to solve some GDI leak problems previously by setting forms/controls/other objects to Nothing but can't remembe...
Yes, memory management is a concern when developing in VB6 (Visual Basic 6). While VB6 automates a lot of memory management through its built-in garbage collection system, there are still scenarios where you need to be vigilant to avoid memory leaks and other issues. Here are some key points regarding memory managemen...
31,596
[ { "from": "human", "value": "Is there such a thing? \nI'm talking about something like a C++ new command i.e. allocation of memory which necessitates explicit releasing of the memory (or risk memory leaks).\nI ask because I remember having to solve some GDI leak problems previously by setting forms/controls...
Our application runs off MySQL, but a client has another application that requires SQL. We want to run them both on the same box. What are some technical considerations for this configuration... is this really just a matter of making sure there are no port conflicts?
Running both MySQL and Microsoft SQL Server (or any other SQL variant) on the same machine is definitely possible, and while port conflicts are one of the considerations, there are several other technical aspects you should evaluate. Here’s a list of considerations: ### 1. **Port Configuration** - **Default Ports**: M...
30,205
[ { "from": "human", "value": "Our application runs off MySQL, but a client has another application that requires SQL. We want to run them both on the same box. What are some technical considerations for this configuration... is this really just a matter of making sure there are no port conflicts?\n" }, {...
We are trying to make big decisions about our support for classic asp. Does anyone see a reason why Microsoft can't drop support for IIS. Any examples of Microsoft technologies like this that have had their support dropped would help. ASP is a tricky one because dropping support in IIS would eventually kill it, unlike ...
Dropping support for Classic ASP (Active Server Pages) in IIS would have significant implications, particularly because Classic ASP is heavily intertwined with IIS as its hosting environment. While Microsoft has indeed moved on to newer web technologies such as ASP.NET and ASP.NET Core, there are some considerations re...
30,655
[ { "from": "human", "value": "We are trying to make big decisions about our support for classic asp. Does anyone see a reason why Microsoft can't drop support for IIS.\nAny examples of Microsoft technologies like this that have had their support dropped would help. ASP is a tricky one because dropping suppor...
"Both DataSource and DataSourceID are defined on 'grdCommunication'. Remove one definition." I just got this error today, the code has been working until this afternoon I published the latest version to our server and it broke with that error both locally and on the server. I don't use "DataSourceID", the application...
It sounds like you've encountered a frustrating issue, especially since you have searched thoroughly for any reference to `DataSourceID` without finding it in your code. The error message you're encountering indicates that the ASP.NET page is trying to set both `DataSource` and `DataSourceID` for the `GridView`, which ...
29,351
[ { "from": "human", "value": "\"Both DataSource and DataSourceID are defined on 'grdCommunication'. Remove one definition.\"\nI just got this error today, the code has been working until this afternoon I published the latest version to our server and it broke with that error both locally and on the server. ...
I'm a hobbyist programmer with couple of database driven mobile web sites and I finally have decided to switch from classic asp to .net. But after couple of days reading I couldn’t decide which way I should go. Shall I learn c# or continue to vb in .net?
The choice between C# and VB.NET can depend on several factors, including your personal preference, community support, and future career opportunities. Here are some considerations to help you decide: ### 1. **Popularity and Community Support** - **C#** is generally more popular and has a larger community. This mea...
30,336
[ { "from": "human", "value": "I'm a hobbyist programmer with couple of database driven mobile web sites and I finally have decided to switch from classic asp to .net. But after couple of days reading I couldn’t decide which way I should go. Shall I learn c# or continue to vb in .net?\n" }, { "from": ...
How you can read a file (text or binary) from a batch file? There is a way to read it in a binary mode or text mode?
In Windows batch files, reading files (both text and binary) isn't straightforward since batch files lack built-in commands for direct binary file manipulation. However, you can read text files easily using the `type` command or through a loop. For binary files, it’s more challenging since batch files are not designed ...
29,175
[ { "from": "human", "value": "How you can read a file (text or binary) from a batch file? There is a way to read it in a binary mode or text mode?\n" }, { "from": "gpt", "value": "In Windows batch files, reading files (both text and binary) isn't straightforward since batch files lack built-in co...
I have two mysql tables, one containing details on cars and one containing all the possible models of the cars, as such: cars: car_id model [more details] models: model_id model_name Now, my problem is that the model details stored in the 'cars' table is the model_name, rather than the model_id which is wh...
To update the `cars` table so that the `model` column contains the corresponding `model_id` from the `models` table instead of the `model_name`, you can use an `UPDATE` statement with a `JOIN`. Here's how you can achieve this in MySQL: 1. Make sure you have a backup of your `cars` table before performing the update, j...
33,048
[ { "from": "human", "value": "I have two mysql tables, one containing details on cars and one containing all the possible models of the cars, as such:\n\ncars:\n car_id\n model\n [more details]\n\nmodels:\n model_id\n model_name\n\nNow, my problem is that the model details stored in the 'cars' table is ...
In traditional embedded programming, we will give a delay function like so: for(i=0;i<255;i++) for(j=0;j<255;j++); In the microprocessor's view, is this how the sleep() function works? Is there an alternative for the sleep() function in C?
In traditional embedded programming, the use of a delay loop like the one you've provided is a common technique to create a delay in execution. This method uses nested loops to create a time-consuming operation that effectively pauses the program's execution for a certain duration. ### How the Delay Loop Works ```c f...
30,726
[ { "from": "human", "value": "In traditional embedded programming, we will give a delay function like so:\nfor(i=0;i<255;i++)\n for(j=0;j<255;j++);\n\nIn the microprocessor's view, is this how the sleep() function works?\nIs there an alternative for the sleep() function in C?\n" }, { "from": "gpt",...
I am trying to populate a dropdown list control on an web page using VS 2008 and keep getting an error that it can't load the DataContext. My backend is a SQLx server 2005 DB. I create a Link To SQL data context and have 1 table in it. My LinKDataSource is as follows - asp:LinqDataSource ID="LinqDataSource1" runa...
It sounds like you're encountering a common issue with the LinqDataSource in ASP.NET. The errors you're seeing indicate that the application is unable to find the specified `DACDataContext` type. Here are some steps you can take to troubleshoot and resolve the issue: 1. **Namespace and Assembly Verification**: Ensu...
30,863
[ { "from": "human", "value": "I am trying to populate a dropdown list control on an web page using VS 2008 and keep getting an error that it can't load the DataContext. My backend is a SQLx server 2005 DB. I create a Link To SQL data context and have 1 table in it. My LinKDataSource is as follows - \n asp:L...
What is the correct way to check if a value is a date/number in Delphi? I know other languages have functions like isDate and isNaN, but what is the Delphi equivalent? at the minute I have this function isNumeric(s1:string):boolean; begin // will throw exception if its not a number // there must be a better wa...
In Delphi, you can check if a string can be converted to a numeric value or a date without relying on exceptions, which is indeed a better practice for readability and performance. Here's how you can accomplish this: ### Checking if a String is Numeric You can create a function to check if a string is numeric using t...
26,668
[ { "from": "human", "value": "What is the correct way to check if a value is a date/number in Delphi?\nI know other languages have functions like isDate and isNaN, but what is the Delphi equivalent? at the minute I have this\nfunction isNumeric(s1:string):boolean;\nbegin \n // will throw exception if it...
What are the popular (ok, popular is relative) web frameworks for the various flavours of LISP?
LISP is a family of programming languages with a rich history and various dialects, each having its own set of web frameworks. Here's a summary of some of the popular web frameworks for different LISP dialects: ### Common LISP 1. **Hunchentoot**: A widely used web server and application framework that supports easy ro...
28,209
[ { "from": "human", "value": "What are the popular (ok, popular is relative) web frameworks for the various flavours of LISP?\n" }, { "from": "gpt", "value": "LISP is a family of programming languages with a rich history and various dialects, each having its own set of web frameworks. Here's a su...
i wonder if it is possible to cascade converters when using wpf databinding. e.g. something like <SomeControl Visibility="{Binding Path=SomeProperty, Converter={StaticResource firstConverter}, Converter={StaticResource secondConverter}}"/> is it possible at all or do i have to create a custom converter that combines ...
In WPF, you cannot directly use multiple converters in a single binding expression like you've shown in your example. The WPF binding system allows only one converter per binding. Therefore, if you want to apply the logic of multiple converters, you will need to create a custom converter that combines the functionality...
30,970
[ { "from": "human", "value": "i wonder if it is possible to cascade converters when using wpf databinding.\ne.g. something like \n<SomeControl Visibility=\"{Binding Path=SomeProperty, Converter={StaticResource firstConverter}, Converter={StaticResource secondConverter}}\"/>\n\nis it possible at all or do i h...
I'm working on an asp.net web site. We have to use com interop to interact with legacy vb6 activex components. The components in many cases rely on receiving a context object (which is itself a vb6 activex component) as a parameter. The context object is fairly costly to construct. Therefore one idea is that a conte...
Storing a .NET object that is a wrapper around a COM object (like your VB6 ActiveX component) in an ASP.NET session can lead to several potential issues. Here are a few considerations: 1. **COM Object Lifetime Management**: COM objects have their own lifetime management rules, which are generally based on reference co...
28,313
[ { "from": "human", "value": "I'm working on an asp.net web site. We have to use com interop to interact with legacy vb6 activex components. The components in many cases rely on receiving a context object (which is itself a vb6 activex component) as a parameter. The context object is fairly costly to cons...
I need to find all occurrences of a function call in a C++ file using python, and extract the arguments for each call. I'm playing with the pygccxml package, and extracting the arguments given a string with the function call is extremely easy: from pygccxml.declarations import call_invocation def test_is_call_invocati...
Using `pygccxml` is a great choice for parsing C++ code, as it provides a robust way to analyze C++ declarations and calls. However, if you're specifically interested in extracting function calls and their arguments from a C++ file, you might find `pygccxml` a bit complex for that particular task. Instead, you could us...
26,914
[ { "from": "human", "value": "I need to find all occurrences of a function call in a C++ file using python, and extract the arguments for each call.\nI'm playing with the pygccxml package, and extracting the arguments given a string with the function call is extremely easy:\nfrom pygccxml.declarations import...
How is it possible that .NET is finding the wrong MyType in this scenario? I have a type A.B.C.D.MyType in a project that I'm working on, and I'm referencing a DLL that has a type A.B.MyType. I do not have any using A.B; statements anywhere in my code, and I do have using A.B.C.D;. When I compile, the compiler thinks a...
This issue can arise from how the .NET compiler resolves type names in the context of namespaces. Here’s a breakdown of what might be happening in your scenario: 1. **Namespace Resolution**: The .NET compiler uses the fully-qualified type names when resolving types. If you reference `MyType` without qualifying it with...
31,803
[ { "from": "human", "value": "How is it possible that .NET is finding the wrong MyType in this scenario?\nI have a type A.B.C.D.MyType in a project that I'm working on, and I'm referencing a DLL that has a type A.B.MyType. I do not have any using A.B; statements anywhere in my code, and I do have using A.B.C...
At my current job we have a CMS system that is .NET/SQL Server based. While customizing a couple of the modules for some internal use, I was a little surprised to see that instead of having APIs that returned data via your typical result set that was bound to a DataGrid/DataList/Repeater control, that the APIs returned...
Using XML combined with XSLT for rendering data in a web application, especially in a .NET/SQL Server context, comes with several benefits and trade-offs compared to more traditional data-binding techniques with direct result sets. Here are some advantages of this approach: 1. **Separation of Concerns**: By using XML ...
31,529
[ { "from": "human", "value": "At my current job we have a CMS system that is .NET/SQL Server based. While customizing a couple of the modules for some internal use, I was a little surprised to see that instead of having APIs that returned data via your typical result set that was bound to a DataGrid/DataList...
I need to encrypt and decrypt a querystring in ASP.NET. The querystring might look something like this: http://www.mysite.com/report.aspx?id=12345&year=2008 How do I go about encrypting the entire querystring so that it looks something like the following? http://www.mysite.com/report.aspx?crypt=asldjfaf32as98df8a ...
To encrypt and decrypt a query string in ASP.NET, you can use various encryption algorithms, but a common and more secure choice is AES (Advanced Encryption Standard) rather than TripleDES. AES is more secure and efficient than TripleDES. Here's how you can encrypt and decrypt a query string in ASP.NET using AES: ###...
28,136
[ { "from": "human", "value": "I need to encrypt and decrypt a querystring in ASP.NET. \nThe querystring might look something like this:\n\nhttp://www.mysite.com/report.aspx?id=12345&year=2008\n\nHow do I go about encrypting the entire querystring so that it looks something like the following?\n\nhttp://www.m...
We have recently implemented Transparent Data Encryption in SQL Server 2008 for local databases on our developers laptops to keep them protected in the case a laptop is stolen or lost. This works fine. Now we are trying to figure out a way to have the certificate expire everyday, forcing an automated process (a script...
Implementing Transparent Data Encryption (TDE) in SQL Server 2008 adds an important layer of security by encrypting your database files. However, having a certificate that expires daily and needing to re-acquire it is an unconventional approach, especially in terms of TDE usage and SQL Server management. Let's break do...
29,968
[ { "from": "human", "value": "We have recently implemented Transparent Data Encryption in SQL Server 2008 for local databases on our developers laptops to keep them protected in the case a laptop is stolen or lost. This works fine. \nNow we are trying to figure out a way to have the certificate expire everyd...
What are the correct version numbers for C#? What came out when? Why can't I find any answers about C# 3.5? This question is primarily to aid those who are searching for an answer using an incorrect version number, e.g. C# 3.5. The hope is that anyone failing to find an answer with the wrong version number will find th...
C# versions are closely tied to the .NET Framework releases. Here is a breakdown of the C# language versions along with their respective release information: 1. **C# 1.0** - Released with **.NET Framework 1.0** in **January 2002**. 2. **C# 1.2** - A minor update released with **.NET Framework 1.1** in **April 2003**. ...
31,071
[ { "from": "human", "value": "What are the correct version numbers for C#? What came out when? Why can't I find any answers about C# 3.5?\nThis question is primarily to aid those who are searching for an answer using an incorrect version number, e.g. C# 3.5. The hope is that anyone failing to find an answer ...
When including a header file in C++, what's the difference between... including the .h part versus not including .h part when wrapping it in <> signs? #include <iostream> vs. #include <iostream.h> wrapping the header name in double quotes versus wrapping it in < > signs? #include <iostream.h> vs. #include "iostream.h...
In C++, the way you include header files can significantly affect how the compiler locates and processes those files. Let's break down your questions regarding the use of `.h` extensions and the differences between using angle brackets (`< >`) and double quotes (`" "`). ### 1. Including `.h` vs. Not Including `.h` - ...
30,561
[ { "from": "human", "value": "When including a header file in C++, what's the difference between...\n\nincluding the .h part versus not including .h part when wrapping it in <> signs?\n#include <iostream> vs. #include <iostream.h>\n\nwrapping the header name in double quotes versus wrapping it in < > signs?\...
This is happening on Vista. I created a new dialog based MFC project to test this. I added a CEdit control to my dialog. I called SetLimitText to let my CEdit receive 100000 characters. I tried both: this->m_cedit1.SetLimitText(100000); UpdateData(FALSE); and static_cast<CEdit*>(GetDlgItem(IDC_EDIT1))->LimitText(1000...
The behavior you're experiencing when working with a `CEdit` control in an MFC application is likely due to the limitations of the underlying Windows controls or a bug related to handling large amounts of text in a dialog. While `CEdit` supports `SetLimitText` to restrict the maximum number of characters, the actual ha...
27,094
[ { "from": "human", "value": "This is happening on Vista.\nI created a new dialog based MFC project to test this. I added a CEdit control to my dialog. I called SetLimitText to let my CEdit receive 100000 characters. I tried both:\nthis->m_cedit1.SetLimitText(100000);\nUpdateData(FALSE);\n\nand \nstatic_cast...
I've worked with a couple of Visual C++ compilers (VC97, VC2005, VC2008) and I haven't really found a clearcut way of adding external libraries to my builds. I come from a Java background, and in Java libraries are everything! I understand from compiling open-source projects on my Linux box that all the source code ...
Adding external libraries to a Visual C++ (VC++) project can initially seem confusing, especially if you come from a Java background where dependency management is handled differently. Here's a general guide on how to link external libraries—both static (.lib) and dynamic (.dll)—to your VC++ projects. ### 1. **Linking...
20,547
[ { "from": "human", "value": "I've worked with a couple of Visual C++ compilers (VC97, VC2005, VC2008) and I haven't really found a clearcut way of adding external libraries to my builds. I come from a Java background, and in Java libraries are everything! \nI understand from compiling open-source projects...
Is there a way to have XAML properties scale along with the size of the uielements they belong to? In essence, I have a control template that I have created too large for it's use/ mainly because I want to use the same control with different sizes. The problem is that I can set the control size to Auto (in the ControlT...
Scaling properties like `StrokeThickness` in a WPF control template in relation to the size of the control is a common challenge. Unfortunately, there is no built-in property in XAML that automatically scales properties relative to the size of the parent control. However, you can achieve the desired effect by binding ...
28,957
[ { "from": "human", "value": "Is there a way to have XAML properties scale along with the size of the uielements they belong to?\nIn essence, I have a control template that I have created too large for it's use/ mainly because I want to use the same control with different sizes. The problem is that I can set...
How would I format the standard RSS pubDate string as something closer to ASP.NET's DateTime? So, from this: Wed, 29 Oct 2008 14:14:48 +0000 to this: 10/29/2008 2:14 PM
To format the standard RSS `pubDate` string to a format closer to ASP.NET's `DateTime` representation in C#, you can follow these steps: 1. Parse the RSS `pubDate` string into a `DateTime` object. 2. Format the `DateTime` object into the desired string format. Here’s a sample code snippet to achieve this in C#: ```c...
31,416
[ { "from": "human", "value": "How would I format the standard RSS pubDate string as something closer to ASP.NET's DateTime?\nSo, from this:\nWed, 29 Oct 2008 14:14:48 +0000\nto this:\n10/29/2008 2:14 PM\n" }, { "from": "gpt", "value": "To format the standard RSS `pubDate` string to a format close...
In Visual Studio 2008 (and others) when creating a .NET or silverlight application if you look at your project properties, it seems like you can only have one assembly name - across all configurations. I would like to compile my application as: MyAppDebug - in debug mode and just MyApp - in release mode Does anyone kno...
In Visual Studio 2008, the assembly name for a project is defined in the project properties and is typically uniform across all build configurations (Debug, Release, etc.). However, you can achieve your goal of having different assembly names for different build configurations by using conditional compilation directive...
31,007
[ { "from": "human", "value": "In Visual Studio 2008 (and others) when creating a .NET or silverlight application if you look at your project properties, it seems like you can only have one assembly name - across all configurations. I would like to compile my application as:\nMyAppDebug - in debug mode\nand j...
My application runs under tomcat. It is using GSS API (JNDI) to connect to Active Directory LDAP Server using Kerberos. It allows the user to define AD servers and try to connect to them. However, once the first Kerberos using connect attempt is done, the application does not read Kerberos configuration again (/etc/krb...
To avoid a restart of your Tomcat application server when changes to the Kerberos configuration file (`/etc/krb5.conf`) are made, you can take several approaches to manage and refresh the Kerberos configuration dynamically. Here are a few strategies: ### 1. Use a Custom Configuration Loader Instead of relying on the ...
27,702
[ { "from": "human", "value": "My application runs under tomcat.\nIt is using GSS API (JNDI) to connect to Active Directory LDAP Server using Kerberos.\nIt allows the user to define AD servers and try to connect to them.\nHowever, once the first Kerberos using connect attempt is done, the application does not...
What are the advantages and disadvantages of making a self-referencing table column a foreign key? For example to create a hierarchy of categories you use a column parent_id, which points to another category in the same table.
Creating a self-referencing table column, such as a `parent_id` that points to another record within the same table, can be a powerful way to establish hierarchical relationships, such as categories or organizational structures. Below are the advantages and disadvantages of making a self-referencing column a foreign ke...
29,074
[ { "from": "human", "value": "What are the advantages and disadvantages of making a self-referencing table column a foreign key?\nFor example to create a hierarchy of categories you use a column parent_id, which points to another category in the same table.\n" }, { "from": "gpt", "value": "Creati...
Does anyone have experience with using very large heaps, 12 GB or higher in Java? Does the GC make the program unusable? What GC params do you use? Which JVM, Sun or BEA would be better suited for this? Which platform, Linux or Windows, performs better under such conditions? In the case of Windows is there any perform...
When working with very large heaps in Java (12 GB or more), there are several considerations to keep in mind, especially regarding garbage collection (GC), JVM selection, and platform performance. ### GC and Large Heaps 1. **GC Impact**: Large heaps can lead to longer garbage collection pauses, especially with tradit...
30,686
[ { "from": "human", "value": "Does anyone have experience with using very large heaps, 12 GB or higher in Java?\n\nDoes the GC make the program unusable?\nWhat GC params do you use?\nWhich JVM, Sun or BEA would be better suited for this?\nWhich platform, Linux or Windows, performs better under such condition...
I have data in this form, Article ID Company A Company B Company C 1 Featured Mentioned -- 2 Mentioned Featured Mentioned 3 Mentioned -- -- 4 Featured Mentioned Mentioned 5 Mentioned Mentioned Featured I’d like to show, for exam...
You can achieve this in a more elegant way by leveraging a pivot table or a cross-tabulation approach, which can efficiently summarize the relationships between the companies based on their mentions. Here's a structured approach to help you create a grid showing the counts of mentions based on combinations of features:...
28,667
[ { "from": "human", "value": "I have data in this form, \nArticle ID Company A Company B Company C\n1 Featured Mentioned --\n2 Mentioned Featured Mentioned\n3 Mentioned -- --\n4 Featured Mentioned Mentioned\n5 Mentioned M...
I have a page with some dynamically added buttons. If you click a button before the page has fully loaded, it throws the classic exception: Invalid postback or callback argument. Event validation is enabled using in configuration or in a page. For security purposes, this feature verifies that arguments to pos...
The error you're encountering, "Invalid postback or callback argument," is common when using dynamic controls in ASP.NET Web Forms. This happens because the page's ViewState and event validation mechanisms are not fully initialized when the postback occurs due to the dynamic content being added. Here are several strat...
30,174
[ { "from": "human", "value": "I have a page with some dynamically added buttons. If you click a button before the page has fully loaded, it throws the classic exception:\n\nInvalid postback or callback argument. \nEvent validation is enabled using in configuration or in a page. For\n\nsecurity purposes, \n ...
I plan to use PyInstaller to create a stand-alone python executable. PythonInstaller comes with built-in support for UPX and uses it to compress the executable but they are still really huge (about 2,7 mb). Is there any way to create even smaller Python executables? For example using a shrinked python.dll or something ...
Creating a smaller standalone Python executable with PyInstaller can be challenging since Python itself adds some overhead to the final executable size. However, there are several strategies you can employ to reduce the size further: 1. **Using UPX**: Although you mentioned that PyInstaller already uses UPX, you can m...
31,018
[ { "from": "human", "value": "I plan to use PyInstaller to create a stand-alone python executable. PythonInstaller comes with built-in support for UPX and uses it to compress the executable but they are still really huge (about 2,7 mb).\nIs there any way to create even smaller Python executables? For example...
What are the best open source image gallery engines? Both stand-alone, and for existing frameworks such as Wordpress or Drupal. Hopefully we can build a good list here over time.
Certainly! There are a variety of open-source image gallery engines available that cater to different needs, from stand-alone applications to plugins for popular content management systems (CMS) like WordPress and Drupal. Here's a list of some of the best options in both categories: ### Stand-alone Image Gallery Engin...
19,635
[ { "from": "human", "value": "What are the best open source image gallery engines? Both stand-alone, and for existing frameworks such as Wordpress or Drupal.\nHopefully we can build a good list here over time.\n" }, { "from": "gpt", "value": "Certainly! There are a variety of open-source image ga...
I would like to cross-reference construct a distance chart similar to the one here (example is a road-distance cross-reference chart) and, ideally, store the data in SQL Server 2008 (preferably the Express version). It needs these properties / abilities Every column has a corresponding row with the same name (ie. not ...
Creating a distance chart that meets your requirements can be achieved in several ways, including using SQL Server for data storage and Excel for user interaction. Let's explore your options and identify the most suitable approach: ### Option 1: Excel as User Editing UI 1. **Implementation**: Use Excel as the front-e...
30,391
[ { "from": "human", "value": "I would like to cross-reference construct a distance chart similar to the one here (example is a road-distance cross-reference chart) and, ideally, store the data in SQL Server 2008 (preferably the Express version). It needs these properties / abilities\n\nEvery column has a cor...
I have the following code which plays a video clip but when it is finished it does not release the form but instead leaves the last frame of the video. how do I get it to clear when playback ends so that I can see the orignal contents of the form it took over to play the video? _video = new Video("video.wmv"); _video.O...
To ensure that your form clears the last frame of the video and returns to its original content after the video playback has finished, you need to handle the video playback events properly. Assuming you're using Windows Forms and the `Video` class is from a media-playing library, you would typically subscribe to an e...
32,776
[ { "from": "human", "value": "I have the following code which plays a video clip but when it is finished it does not release the form but instead leaves the last frame of the video. how do I get it to clear when playback ends so that I can see the orignal contents of the form it took over to play the video?\...
I have a large set of files, some of which contain special characters in the filename (e.g. ä,ö,%, and others). I'd like a script file to iterate over these files and rename them removing the special characters. I don't really mind what it does, but it could replace them with underscores for example e.g. Störung%20.doc...
You can use a Windows batch file to iterate over your files and rename them by replacing special characters with underscores. Below is a sample batch script that achieves this: ### Batch Script (rename_files.bat) ```batch @echo off setlocal enabledelayedexpansion rem Define the directory containing the files set "di...
28,204
[ { "from": "human", "value": "I have a large set of files, some of which contain special characters in the filename (e.g. ä,ö,%, and others). I'd like a script file to iterate over these files and rename them removing the special characters. I don't really mind what it does, but it could replace them with un...
Which cryptography algorithm is the most secure that ships with .net?
As of my last knowledge update in October 2023, the .NET framework provides several cryptographic algorithms, but the most secure and recommended algorithms generally include: 1. **AES (Advanced Encryption Standard)**: AES is widely regarded as one of the most secure symmetric encryption algorithms. It supports key si...
33,488
[ { "from": "human", "value": "Which cryptography algorithm is the most secure that ships with .net?\n" }, { "from": "gpt", "value": "As of my last knowledge update in October 2023, the .NET framework provides several cryptographic algorithms, but the most secure and recommended algorithms general...
Been a while since I've dealt with ASP.NET and this is the first time I've had to deal with master pages. Been following tutorials everything is fine except a problem I'm having with the footer. The master page has divs for topContent, mainContent and footerContent. In mainContent I have a ContentPlaceHolder. The def...
It sounds like you've made some progress in solving your issue! Dealing with layout in ASP.NET Master Pages can be tricky, especially when CSS positioning comes into play. For the benefit of future reference and to provide a more comprehensive solution, here are some important considerations when designing layouts wit...
28,912
[ { "from": "human", "value": "Been a while since I've dealt with ASP.NET and this is the first time I've had to deal with master pages. Been following tutorials everything is fine except a problem I'm having with the footer.\nThe master page has divs for topContent, mainContent and footerContent. In mainCo...
I have the following line of text Reference=*\G{7B35DDAC-FFE2-4435-8A15-CF5C70F23459}#1.0#0#..\..\..\bin\App Components\AcmeFormEngine.dll#ACME Form Engine and wish to grab the following as two separate capture groups: AcmeFormEngine.dll ACME Form Engine Can anyone help?
You can use a regular expression to extract the desired parts of the text. In this case, the pattern you're looking for can be broken down as follows: 1. The filename (which you want to capture) is followed by a `#` symbol and is preceded by a sequence that can include a file path with backslashes (`\`). 2. The name y...
29,037
[ { "from": "human", "value": "I have the following line of text\nReference=*\\G{7B35DDAC-FFE2-4435-8A15-CF5C70F23459}#1.0#0#..\\..\\..\\bin\\App Components\\AcmeFormEngine.dll#ACME Form Engine\n\nand wish to grab the following as two separate capture groups:\nAcmeFormEngine.dll\nACME Form Engine\n\nCan anyon...
For some reason, no matter how I go about it, I cannot get TortoiseSVN to add an Author to Log Messages. Currently we connect to a PC running svnserve, so it's not a file:// Address. We have tried using svn://Username@svnAddress, svn://svnAddress Even setting svn:keywords $Author: AuthorName$ I was under the impression...
It sounds like you're experiencing issues with getting author information to show up in log messages in TortoiseSVN while using svnserve. Here are several steps and considerations to help troubleshoot and resolve this issue: 1. **Check the Authentication Method**: Since you're connecting to an SVN repository using ...
29,672
[ { "from": "human", "value": "For some reason, no matter how I go about it, I cannot get TortoiseSVN to add an Author to Log Messages.\nCurrently we connect to a PC running svnserve, so it's not a file:// Address.\nWe have tried using svn://Username@svnAddress, svn://svnAddress\nEven setting svn:keywords $Au...
Are there any good source-code analyses tools for OSX. I am particularly interested in tools that are capable of diagramming function-call hierarchies for C and C++ source files.
Yes, there are several source code analysis tools available for macOS that can help you create function-call hierarchies for C and C++ code. Here are some options you might consider: 1. **Doxygen**: Primarily known for generating documentation from annotated C++ sources, Doxygen can also generate call graphs and funct...
30,629
[ { "from": "human", "value": "Are there any good source-code analyses tools for OSX. I am particularly interested in tools that are capable of diagramming function-call hierarchies for C and C++ source files.\n" }, { "from": "gpt", "value": "Yes, there are several source code analysis tools avail...
I am having an issue with IEMobile accessing my site. A certain redirect I use has a 302 response code, and the headers (yep, that's app-engine): Server Development/1.0 Python/2.5.2 Date Tue, 04 Nov 2008 16:47:02 GMT Content-Type text/html; charset=utf-8 Cache-Control no-cache Location http:...
It appears that the issue you're encountering is related to how IEMobile handles URL fragments (the part after the `#`) during redirects. In many cases, browsers may drop the fragment part of the URL when a redirect is made. Here are some steps you can take to address this issue: 1. **Use a 301 Redirect Instead**: If ...
31,643
[ { "from": "human", "value": "I am having an issue with IEMobile accessing my site. A certain redirect I use has a 302 response code, and the headers (yep, that's app-engine):\nServer Development/1.0 Python/2.5.2\nDate Tue, 04 Nov 2008 16:47:02 GMT\nContent-Type text/html; charset=utf-8\...
I have a project using GWT and it displays data in a table. I need a Table for GWT that supports: sorting by particular column scrolling the data, while the header is immobile filtering rows for data searched in the table The project is being created for internal purpose of the company, so I look for a solution that ...
For your GWT (Google Web Toolkit) project, you can use GWT's built-in `CellTable` or `Grid` widget, which allows for sorting, filtering, and the capability to keep the header immobile while allowing for scrolling. While there are commercial libraries available, many developers opt to extend the GWT framework with custo...
27,064
[ { "from": "human", "value": "I have a project using GWT and it displays data in a table.\nI need a Table for GWT that supports:\n\nsorting by particular column\nscrolling the data, while the header is immobile\nfiltering rows for data searched in the table\n\nThe project is being created for internal purpos...
I have sets of 5, 6 and 7 digit numbers. I need them to be displayed in the 000/000/000 format. So for example: 12345 would be displayed as 000/012/345 and 9876543 would be displayed as 009/876/543 I know how to do this in a messy way, involving a series of if/else statements, and strlen functions, but there has to ...
You can achieve the desired formatting using regular expressions in a more elegant way than using multiple if/else statements. The idea is to use a regex pattern to match your numbers and then use a replacement pattern to format them correctly. Here’s how you can do it in Python, for example: ```python import re def...
27,060
[ { "from": "human", "value": "I have sets of 5, 6 and 7 digit numbers. I need them to be displayed in the 000/000/000 format. So for example: \n12345 would be displayed as 000/012/345 \nand \n9876543 would be displayed as 009/876/543\nI know how to do this in a messy way, involving a series of if/else statem...
I've been tasked with writing a outlook .MSG files from XML files that have associated metadata. I've tried using the Aspose library, but all of the exposed MapiMessage properties are read only. Using the Outlook Object Model I'm unable to change the creation date, and other properties that I must have access to. I've ...
Creating `.MSG` files with full control over MAPI properties and metadata is somewhat challenging, given the limitations of existing libraries. Here are some options you can consider, even though they may not fully meet your requirements: ### 1. **Use Redemption Library** Redemption is a third-party library designed t...
24,999
[ { "from": "human", "value": "I've been tasked with writing a outlook .MSG files from XML files that have associated metadata. I've tried using the Aspose library, but all of the exposed MapiMessage properties are read only. Using the Outlook Object Model I'm unable to change the creation date, and other pro...
I want to have two items on the same line using float: left for the item on the left. I have no problems achieving this alone. The problem is, I want the two items to stay on the same line even when you resize the browser very small. You know... like how it was with tables. The goal is to keep the item on the right fro...
To achieve the layout you desire, where both items stay on the same line and the right item never wraps to the next line, you can use CSS Flexbox instead of floats. Flexbox provides a more flexible way to create responsive layouts without the issues that come from using floats. Here’s how you can do it with Flexbox: ...
30,302
[ { "from": "human", "value": "I want to have two items on the same line using float: left for the item on the left.\nI have no problems achieving this alone. The problem is, I want the two items to stay on the same line even when you resize the browser very small. You know... like how it was with tables.\nTh...
I'm doing some small changes to C++ MFC project. I'm .NET developer so Windows programming is new to me. I need to launch some method right after CDialog is completely shown (painted) for the first time, but only once. How can I do this? In .NET I would handle Form.Shown event. Do I need to handle some message? Which? ...
In MFC, to execute a method right after a `CDialog` is completely shown (i.e., painted), you can use the `OnInitDialog` method. This method is called after the dialog is created and before it is shown, but you can also use the `OnShowWindow` method to check when the dialog becomes visible. Here's a straightforward way...
29,223
[ { "from": "human", "value": "I'm doing some small changes to C++ MFC project. I'm .NET developer so Windows programming is new to me.\nI need to launch some method right after CDialog is completely shown (painted) for the first time, but only once.\nHow can I do this? In .NET I would handle Form.Shown event...
I'm not sure why I'm getting this error, but shouldn't this code compile, since I'm already checking to see if queue is getting initialized? public static void Main(String[] args) { Byte maxSize; Queue queue; if(args.Length != 0) { if(Byte.TryParse(args[0], out maxSize)) queue = ne...
The issue you are encountering in your code is related to the scope and initialization of the `queue` variable. In C#, if you declare a variable (like `queue` in your case) but do not initialize it before you use it, the compiler will throw an error saying that the variable might not have been initialized. Here's the ...
32,447
[ { "from": "human", "value": "I'm not sure why I'm getting this error, but shouldn't this code compile, since I'm already checking to see if queue is getting initialized? \npublic static void Main(String[] args)\n{\n Byte maxSize;\n Queue queue;\n\n if(args.Length != 0)\n {\n if(Byte.TryPa...
What do you suggest to use for code coverage on 64-bit environment. It seems that NCover supports 64-bit only in Enterprise version which seems to be quite expensive. Or isn't it? What are people using on 64-bit systems for .NET code coverage? EDIT: I am aware of the CorFlag workaround. I would like to know what others...
In a 64-bit environment for .NET applications, there are several options for code coverage that you can consider, especially if NCover's Enterprise version is too costly for your needs. Here are some popular alternatives that developers frequently use: 1. **dotCover**: - Part of JetBrains' ReSharper suite, dotCover...
31,454
[ { "from": "human", "value": "What do you suggest to use for code coverage on 64-bit environment. It seems that NCover supports 64-bit only in Enterprise version which seems to be quite expensive. Or isn't it? What are people using on 64-bit systems for .NET code coverage?\nEDIT: I am aware of the CorFlag wo...
I'm trying to implement a simple object bridge in cocoa where the bridge object acts as a kvo/bindings-compliant drop in for some arbitrary other NSObject instance. Here is my problem (more details in the code below): A bridge object acts as a drop in for a Person-Object, with an NSString* property called name and an A...
The problem you're encountering stems from the way that KVO (Key-Value Observing) handles its observers. When you bind to a nested property like `address.street`, the KVO framework expects to be able to manage observers for each of these properties. When the `address` property is replaced with a new `Address` instance,...
29,688
[ { "from": "human", "value": "I'm trying to implement a simple object bridge in cocoa where the bridge object acts as a kvo/bindings-compliant drop in for some arbitrary other NSObject instance.\nHere is my problem (more details in the code below):\nA bridge object acts as a drop in for a Person-Object, with...
In .net, is there a way using reflection to determine if a parameter on a method is marked with the "params" keyword?
Yes, you can use reflection in .NET to determine if a parameter of a method is marked with the `params` keyword. When a method parameter is marked with `params`, it is treated as an array of the specified type. You can check the `ParameterInfo` of a method to see if it has the `IsDefined` property set for the `ParamsAr...
31,165
[ { "from": "human", "value": "In .net, is there a way using reflection to determine if a parameter on a method is marked with the \"params\" keyword?\n" }, { "from": "gpt", "value": "Yes, you can use reflection in .NET to determine if a parameter of a method is marked with the `params` keyword. W...
After hosting an ASP.NET 2.0 web application on a windows 2000 server(IIS 5). I was unable to browse the web site. The following error message was displayed on the browser and three Event Log entries were added... Error Message on Browser Server Application Unavailable The web application you are attempting to access ...
The error messages you are encountering indicate that there are problems with the ASP.NET application due to permissions issues. Here's a breakdown of the relevant parts of the error log entries and some steps you can take to troubleshoot and resolve these issues. ### Breakdown of the Error Messages 1. **Event ID 100...
30,493
[ { "from": "human", "value": "After hosting an ASP.NET 2.0 web application on a windows 2000 server(IIS 5).\nI was unable to browse the web site.\nThe following error message was displayed on the browser and three Event Log entries were added...\nError Message on Browser\n\nServer Application Unavailable The...
This is similar to this question, but it seems like some of the answers there aren't quite compatible with MySQL (or I'm not doing it right), and I'm having a heck of a time figuring out the changes I need. Apparently my SQL is rustier than I thought it was. I'm also looking to change a column value rather than delete,...
To set the `duplicate` column to `TRUE` for all but the first row (based on `created_date`) for each unique `fingerprint`, you can use a common table expression (CTE) along with a `DELETE` statement to identify and update the appropriate rows. Since you want to change the value rather than delete, the approach will inv...
32,344
[ { "from": "human", "value": "This is similar to this question, but it seems like some of the answers there aren't quite compatible with MySQL (or I'm not doing it right), and I'm having a heck of a time figuring out the changes I need. Apparently my SQL is rustier than I thought it was. I'm also looking to ...
And this was supposed to be so easy... I have existing business and data access layers that handle the retrieval and update of the data in question. These work great with the existing Winforms application (.Net V2.0) Now, in trying to write a new web-based UI, I'm running into all sorts of problems (last time I wrote ...
It sounds like you're facing a few challenges transitioning from a WinForms application to a web-based ASP.NET application, particularly when it comes to data binding and managing UI layouts. ### Data Binding for Text Boxes In ASP.NET Web Forms, the data binding mechanism works a bit differently compared to WinForms....
28,597
[ { "from": "human", "value": "And this was supposed to be so easy...\nI have existing business and data access layers that handle the retrieval and update of the data in question. These work great with the existing Winforms application (.Net V2.0)\nNow, in trying to write a new web-based UI, I'm running int...
I'm having trouble with something that I thought would be easy... I can't get my NotifyIcon to show a balloon tip. The basic code is: public void ShowSystrayBubble(string msg, int ms) { sysTrayIcon.Visible = true; sysTrayIcon.ShowBalloonTip(20, "Title", "Text", ToolTipIcon.None); } Nothing happens when I execute ...
It looks like you're on the right track with your code for displaying a balloon tip using a `NotifyIcon`. However, there are a few points to consider that might help you resolve the issue on Windows XP with .NET 3.5. ### Key Points to Check: 1. **Visibility**: Make sure that the `NotifyIcon` is visible in the system ...
30,088
[ { "from": "human", "value": "I'm having trouble with something that I thought would be easy...\nI can't get my NotifyIcon to show a balloon tip. The basic code is:\npublic void ShowSystrayBubble(string msg, int ms)\n{\n sysTrayIcon.Visible = true;\n sysTrayIcon.ShowBalloonTip(20, \"Title\", \"Text\", Too...
Here's some Ruby code: puts %x{ pstree #{$$} } # never forks puts %x{ pstree '#{$$}' } # forks on amd64 only On 32-bit Ubuntu Dapper, I get this output: t.rb---pstree t.rb---pstree Which makes sense to me. But on 64-bit Ubuntu Hardy, I get this: t.rb---sh---pstree t.rb---pstree What's being shown here is that Rub...
The behavior you're observing when using backticks (`` `%x{}` ``) in Ruby to execute shell commands can indeed vary between different architectures and Ruby versions due to differences in how process handling is implemented in those environments. Let's delve into the specifics of the behavior you're seeing. ### Observ...
30,078
[ { "from": "human", "value": "Here's some Ruby code:\nputs %x{ pstree #{$$} } # never forks\nputs %x{ pstree '#{$$}' } # forks on amd64 only\n\nOn 32-bit Ubuntu Dapper, I get this output:\nt.rb---pstree\nt.rb---pstree\n\nWhich makes sense to me. But on 64-bit Ubuntu Hardy, I get this:\nt.rb---sh---pstree\...
I would really love to push for TDD development inside the shop I'm working in. Lots of the seniors over there didn't work with unit testing or did unit testing that was hitting the database. I would love to bring some good arguments, books for training, possible coach to ease the transition.
Promoting Test-Driven Development (TDD) in your workplace can be a rewarding challenge, especially if many team members are not familiar with unit testing or have only used integration tests that hit the database. Here are several strategies and resources to help you advocate for TDD and ease the transition. ### Key A...
24,056
[ { "from": "human", "value": "I would really love to push for TDD development inside the shop I'm working in. Lots of the seniors over there didn't work with unit testing or did unit testing that was hitting the database.\nI would love to bring some good arguments, books for training, possible coach to ease ...
I am currently using... select Table_Name, Column_name, data_type, is_Nullable from information_Schema.Columns ...to determine information about columns in a given database for the purposes of generating a DataAccess Layer. From where can I retrieve information about if these columns are participants in the primary ke...
To determine if columns are part of the primary key in a SQL Server database, you can query the `INFORMATION_SCHEMA.TABLE_CONSTRAINTS` and `INFORMATION_SCHEMA.KEY_COLUMN_USAGE` views. Here's how you can modify your query to include this information. You can use the following SQL statement: ```sql SELECT c.TABLE_...
32,098
[ { "from": "human", "value": "I am currently using...\nselect Table_Name, Column_name, data_type, is_Nullable\nfrom information_Schema.Columns\n\n...to determine information about columns in a given database for the purposes of generating a DataAccess Layer.\nFrom where can I retrieve information about if th...
This has happened to me 3 times now, and I am wondering if anyone is having the same problem. I am running Visual Studio 2008 SP1, and hitting SQL Server 2005 developer edition. For testing, I use the Server Explorer to browse a database I have already created. For testing I will insert data by hand (right click tabl...
It sounds like you're experiencing some very unusual and serious behavior with your development environment. The fact that your computer is rebooting instantly without any warning signs (like a blue screen) suggests that this might be a hardware issue rather than a software one. Here are a few troubleshooting steps you...
28,858
[ { "from": "human", "value": "This has happened to me 3 times now, and I am wondering if anyone is having the same problem. I am running Visual Studio 2008 SP1, and hitting SQL Server 2005 developer edition. \nFor testing, I use the Server Explorer to browse a database I have already created. For testing I ...
Wizards can kick-start features. They can also obfuscate your code, and are anti-YAGNI. On balance, do you think Wizards are more useful or more harmful?
The concept of "Wizards" in software development typically refers to automated tools or frameworks that simplify complex processes, often providing guided steps to accomplish tasks such as configuration or setup. The term may also extend to "wizards" in a more metaphorical sense, representing developers or tools that c...
33,802
[ { "from": "human", "value": "Wizards can kick-start features. They can also obfuscate your code, and are anti-YAGNI.\nOn balance, do you think Wizards are more useful or more harmful?\n" }, { "from": "gpt", "value": "The concept of \"Wizards\" in software development typically refers to automate...