instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I have a table of Users that includes a bitmask of roles that the user belongs to. I'd like to select users that belong to one or more of the roles in a bitmask value. For example: select * from [User] where UserRolesBitmask | 22 = 22 This selects all users that have the roles '2', '4' or '16' in their bitmask. Is t...
Yes, you can express this bitmask logic in a LINQ query in C#. LINQ allows you to perform bitwise operations similarly to SQL. To select users that belong to one or more of the roles specified in a bitmask value, you can use the bitwise OR operator (`|`) in your query. Assuming you have a `User` class that includes a ...
14,307
[ { "from": "human", "value": "I have a table of Users that includes a bitmask of roles that the user belongs to. I'd like to select users that belong to one or more of the roles in a bitmask value. For example:\nselect *\nfrom [User]\nwhere UserRolesBitmask | 22 = 22\nThis selects all users that have the ...
We could also include IFrames as well.
Certainly! Including IFrames can enhance the functionality and interactivity of a webpage. Here’s how you can incorporate IFrames into your HTML, along with some considerations: ### Basic IFrame Example ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width...
13,684
[ { "from": "human", "value": "We could also include IFrames as well.\n" }, { "from": "gpt", "value": "Certainly! Including IFrames can enhance the functionality and interactivity of a webpage. Here’s how you can incorporate IFrames into your HTML, along with some considerations:\n\n### Basic IFra...
When running an old MFC application in Visual Studio's debugger I've seen a lot of warnings in the Output window like the following: Warning: skipping non-radio button in group. I understand that in MFC you put radio buttons in groups to indicate which sets of radio buttons go together. If I remember correctly you d...
### 1. How to Get Rid of the Warning The warning `Warning: skipping non-radio button in group` indicates that MFC is detecting non-radio button controls in a group that is expected to contain only radio buttons. To eliminate this warning: - Make sure that only radio buttons are marked as part of a group. - Set the "G...
14,116
[ { "from": "human", "value": "When running an old MFC application in Visual Studio's debugger I've seen a lot of warnings in the Output window like the following:\n\nWarning: skipping non-radio button in group.\n\nI understand that in MFC you put radio buttons in groups to indicate which sets of radio button...
I need to compare strings in shell: var1="mtu eth0" if [ "$var1" == "mtu *" ] then # do something fi But obviously the "*" doesn't work in Shell. Is there a way to do it?
In shell scripting, the `*` wildcard cannot be used directly in a string comparison as you've attempted. Instead, you can use pattern matching with the `[[` command, which supports wildcard matching. Here’s how you can modify your script: ```bash var1="mtu eth0" if [[ $var1 == mtu\ * ]]; then # do something e...
16,706
[ { "from": "human", "value": "I need to compare strings in shell:\nvar1=\"mtu eth0\"\n\nif [ \"$var1\" == \"mtu *\" ]\nthen\n # do something\nfi\n\nBut obviously the \"*\" doesn't work in Shell. Is there a way to do it?\n" }, { "from": "gpt", "value": "In shell scripting, the `*` wildcard cann...
I've build a WCF Service to accept a file and write it to disk. The front-end consists of a page with SWFUpload which is handling the upload on the client side. Apparently, SWFUpload posts the data with a Content Type of: multipart/form-data. I would think this ok but on the Service side I get an error. The error is "P...
When working with WCF (Windows Communication Foundation) and attempting to upload files using `multipart/form-data`, you'll run into some challenges because WCF was primarily designed for SOAP-based communication, which expects a `text/xml` content type. ### Solutions for Uploading Files Using WCF There are a few app...
9,612
[ { "from": "human", "value": "I've build a WCF Service to accept a file and write it to disk. The front-end consists of a page with SWFUpload which is handling the upload on the client side. Apparently, SWFUpload posts the data with a Content Type of: multipart/form-data.\nI would think this ok but on the Se...
Is anyone successfully using the CJ web services? I just keep getting java.lang.NullPointerExceptions even though my app is .net (clearly their errors). CJ support doesn't even know what a web service is. I googled and found many people getting this or other errors. Question is: is it a temporary problem or am I doomed...
It sounds like you're having a frustrating experience with the CJ (Commission Junction) web services, particularly with the daily publisher commission service. The `java.lang.NullPointerException` you’re encountering suggests that there might be an issue with the way the API is handling requests, possibly due to null v...
12,679
[ { "from": "human", "value": "Is anyone successfully using the CJ web services? I just keep getting java.lang.NullPointerExceptions even though my app is .net (clearly their errors). CJ support doesn't even know what a web service is. I googled and found many people getting this or other errors. Question is:...
I see this often in the build scripts of projects that use autotools (autoconf, automake). When somebody wants to check the value of a shell variable, they frequently use this idiom: if test "x$SHELL_VAR" = "xyes"; then ... What is the advantage to this over simply checking the value like this: if test $SHELL_VAR = "...
The idiom `if test "x$SHELL_VAR" = "xyes"; then` is used to safely check the value of the shell variable `SHELL_VAR` while avoiding potential issues that may arise if the variable is either unset or empty. Here are the main reasons for this approach: 1. **Avoiding Unbound Variables**: If `SHELL_VAR` is unset, using `t...
15,411
[ { "from": "human", "value": "I see this often in the build scripts of projects that use autotools (autoconf, automake). When somebody wants to check the value of a shell variable, they frequently use this idiom:\nif test \"x$SHELL_VAR\" = \"xyes\"; then\n...\n\nWhat is the advantage to this over simply che...
Why is it bad practice to declare variables on one line? e.g. private String var1, var2, var3 instead of: private String var1; private String var2; private String var3;
Declaring multiple variables on a single line can be considered bad practice for several reasons: 1. **Readability**: When variables are declared on one line, it can become difficult to quickly identify each variable, especially if the list is long or the variable names are not immediately clear. Declaring each variab...
9,598
[ { "from": "human", "value": "Why is it bad practice to declare variables on one line?\ne.g.\nprivate String var1, var2, var3\n\ninstead of: \nprivate String var1;\nprivate String var2;\nprivate String var3;\n\n" }, { "from": "gpt", "value": "Declaring multiple variables on a single line can be c...
What sort of database schema would you use to store email messages, with as much header information as practical/possible, into a database? Assume that they have been fed into a script from the MTA and parsed into the relevant headers/body/attachments. Would you store the message body whole in the database table, or sp...
Designing a database schema for storing email messages involves considering both the structure of the email and the practical aspects of querying and managing the data. Below is a proposed schema and some recommendations for handling the various components of an email. ### Database Schema 1. **Emails Table**: This...
11,929
[ { "from": "human", "value": "What sort of database schema would you use to store email messages, with as much header information as practical/possible, into a database?\nAssume that they have been fed into a script from the MTA and parsed into the relevant headers/body/attachments.\nWould you store the mess...
I'm preparing to deploy my Django app and I noticed that when I change the "DEBUG" setting to False, all references to static files (i.e., JavaScript, CSS, etc..) result in HTTP 500 errors. Any idea what's causing that issue (and how to fix it)?
When you set the `DEBUG` setting in your Django app to `False`, Django stops serving static files automatically. This is a common source of issues when deploying Django applications. Here are steps to diagnose and fix the problem: ### 1. Collect Static Files First, ensure that you have collected your static files. Whe...
13,142
[ { "from": "human", "value": "I'm preparing to deploy my Django app and I noticed that when I change the \"DEBUG\" setting to False, all references to static files (i.e., JavaScript, CSS, etc..) result in HTTP 500 errors.\nAny idea what's causing that issue (and how to fix it)?\n" }, { "from": "gpt",...
I'm talking about an action game with no upper score limit and no way to verify the score on the server by replaying moves etc. What I really need is the strongest encryption possible in Flash/PHP, and a way to prevent people calling the PHP page other than through my Flash file. I have tried some simple methods in th...
Securing an action game against cheating and score manipulation is a challenging task, especially when you're dealing with technologies like Flash and PHP. Here's a breakdown of potential strategies to enhance your game's security against common tampering tools, including those you mentioned: ### 1. Server-Side Valida...
12,374
[ { "from": "human", "value": "I'm talking about an action game with no upper score limit and no way to verify the score on the server by replaying moves etc. \nWhat I really need is the strongest encryption possible in Flash/PHP, and a way to prevent people calling the PHP page other than through my Flash fi...
I'm really confused by the various configuration options for .Net configuration of dll's, ASP.net websites etc in .Net v2 - especially when considering the impact of a config file at the UI / end-user end of the chain. So, for example, some of the applications I work with use settings which we access with: string blah ...
You've raised some important points regarding the configuration options available in .NET, particularly in .NET Framework 2.0, and how they relate to strong typing, sharing values across projects, and potential pitfalls. ### Overview of Configuration Options 1. **Application Settings (e.g., Properties.Settings.Defaul...
9,545
[ { "from": "human", "value": "I'm really confused by the various configuration options for .Net configuration of dll's, ASP.net websites etc in .Net v2 - especially when considering the impact of a config file at the UI / end-user end of the chain.\nSo, for example, some of the applications I work with use s...
By ETW I mean "Event Tracing for Windows". According to my experimenting one virtue is that while by-design it occasionally fails to record events in Very-Busy conditions it otherwise Just Works, as you might expect from a Kernel feature. ETW is the only game in town if you want per-processor-buffering to avoid cache-...
Event Tracing for Windows (ETW) is indeed a powerful and efficient way to log and trace events in Windows, but as you noted, it can be quite complex to use directly due to its low-level API and the intricate management of event providers, consumers, and metadata. Fortunately, several libraries and frameworks have been ...
12,970
[ { "from": "human", "value": "By ETW I mean \"Event Tracing for Windows\".\nAccording to my experimenting one virtue is that while by-design it occasionally fails to record events in Very-Busy conditions it otherwise Just Works, as you might expect from a Kernel feature. ETW is the only game in town if you ...
How to get a file's creation date or file size, for example this Hello.jpg at http://www.mywebsite.com/now/Hello.jpg(note: This URL does not exist)? The purpose of this question is to make my application re-download the files from the any website when it has detected that the website has an updated version of the files...
To determine whether a file on a remote server has been updated without downloading the entire file, you can use HTTP headers to check the file's creation date or last modification date, as well as its size. Here’s how you can approach this using HTTP requests in different programming languages. ### Using HTTP HEAD Re...
11,435
[ { "from": "human", "value": "How to get a file's creation date or file size, for example this Hello.jpg at http://www.mywebsite.com/now/Hello.jpg(note: This URL does not exist)? The purpose of this question is to make my application re-download the files from the any website when it has detected that the we...
I recently read this Question about SQLite vs MySQL and the answer pointed out that SQLite doesn't scale well and the official website sort-of confirms this, however. How scalable is SQLite and what are its upper most limits?
SQLite is a lightweight, serverless relational database management system that is designed for simplicity and ease of use. While it has many advantages, such as being easy to set up and requiring minimal configuration, it does have limitations when it comes to scalability, particularly for larger applications or high-c...
13,923
[ { "from": "human", "value": "I recently read this Question about SQLite vs MySQL and the answer pointed out that SQLite doesn't scale well and the official website sort-of confirms this, however.\nHow scalable is SQLite and what are its upper most limits?\n" }, { "from": "gpt", "value": "SQLite ...
I'm afraid my trial of VS 2008 is running out soon, and unless a client pays for it, I might be shelling out some cash for it. I've been looking through the comparison chart to compare VS Professional to Standard, and so far I think I'm safe. I wanted to hear from you on what the most important features are that I wo...
When comparing Visual Studio 2008 Professional to Standard, there are a few key features and tools that differentiate the two editions. Here are some of the most important features you might miss out on if you stick with Standard: 1. **Code Analysis Tools**: The Professional edition includes built-in code analysis too...
14,336
[ { "from": "human", "value": "I'm afraid my trial of VS 2008 is running out soon, and unless a client pays for it, I might be shelling out some cash for it. I've been looking through the comparison chart to compare VS Professional to Standard, and so far I think I'm safe. I wanted to hear from you on what ...
I have a scenario like this which I want to use capistrano to deploy my ruby on rails application: The web application is on a thin cluster with the config file stored under /etc/thin. also an init script is in /etc/init.d/thin, so it would start automatically whenever my server needs a reboot Also nginx is executed t...
Certainly! You can achieve this by using Capistrano to handle the deployment and a separate command to restart the Thin daemon using a user with the appropriate privileges. The idea is to separate the deployment and restart steps, where you deploy the application as `webuser` and then invoke a task that runs as a diffe...
13,120
[ { "from": "human", "value": "I have a scenario like this which I want to use capistrano to deploy my ruby on rails application:\n\nThe web application is on a thin cluster with the config file stored under /etc/thin. also an init script is in /etc/init.d/thin, so it would start automatically whenever my ser...
I need to determine the ID of a form field from within an action handler. The field is a part of a included facelets component and so the form will vary. included.xhtml <ui:component> <h:inputText id="contained_field"/> <h:commandButton actionListener="#{backingBean.update}" value="Submit"/> </ui:component> examp...
To determine the ID of the form or input field from within an action listener in your backing bean, you can use the `UIViewRoot` and component tree of the JSF context. This allows you to navigate the component hierarchy to find the ID of the input field at runtime. Here’s how you can do it: 1. **Get the Component fr...
13,111
[ { "from": "human", "value": "I need to determine the ID of a form field from within an action handler. The field is a part of a included facelets component and so the form will vary.\nincluded.xhtml \n<ui:component>\n <h:inputText id=\"contained_field\"/>\n <h:commandButton actionListener=\"#{backingBean....
Can I safely rename the cygdrive folder? Also, I would like to add other folders at root and map them to folders on windows in the same way as /cygdrive/c maps to my C drive. Is that possible?
Renaming the `/cygdrive` folder in Cygwin is not recommended. The `/cygdrive` directory serves a specific purpose in Cygwin, acting as a mount point for Windows drives (like C:, D:, etc.). Renaming it could lead to unintended behavior, as many scripts and programs might rely on the standard structure. However, if you ...
13,310
[ { "from": "human", "value": "Can I safely rename the cygdrive folder? Also, I would like to add other folders at root and map them to folders on windows in the same way as /cygdrive/c maps to my C drive. Is that possible?\n" }, { "from": "gpt", "value": "Renaming the `/cygdrive` folder in Cygwin...
How do you perform delete and put operations restfully in rails? I have read the documentation and thought I was doing everything properly, but I can't seem to get it to work. For example, if I wanted to delete an employee I would create a controller called "EmployeesController" and create a destroy method to perform t...
It looks like you're on the right track for implementing RESTful delete operations in Rails, but there are a few points that might be causing issues with your `link_to_remote` usage. First, it's important to note that `link_to_remote` has been deprecated since Rails 3. Instead, you should be using `link_to` with the `...
14,634
[ { "from": "human", "value": "How do you perform delete and put operations restfully in rails? I have read the documentation and thought I was doing everything properly, but I can't seem to get it to work.\nFor example, if I wanted to delete an employee I would create a controller called \"EmployeesControlle...
nHibernate is not able to retrieve manually changed data from repository table? I have disabled second level cache also but looks like it(nhibernate) is retrieving sometimes from cache and sometimes from repository table.
If you're facing issues with NHibernate retrieving stale data from the cache or not reflecting changes made directly in the database, there are several areas to investigate: 1. **Disable First-Level Cache:** First-level caching is always active in NHibernate for each session. If you're using a single session across di...
13,517
[ { "from": "human", "value": "nHibernate is not able to retrieve manually changed data from repository table? I have disabled second level cache also but looks like it(nhibernate) is retrieving sometimes from cache and sometimes from repository table.\n" }, { "from": "gpt", "value": "If you're fa...
How do I use the UNIX command find to search for files created on a specific date?
The `find` command in UNIX/Linux is powerful for searching files based on various criteria, including their creation or modification dates. However, it's important to note that not all filesystems record the creation date. Instead, most systems track the modification date. If your filesystem does support creation time ...
13,649
[ { "from": "human", "value": "How do I use the UNIX command find to search for files created on a specific date?\n" }, { "from": "gpt", "value": "The `find` command in UNIX/Linux is powerful for searching files based on various criteria, including their creation or modification dates. However, it...
I have an enum that looks as follows: public enum TransactionStatus { Open = 'O', Closed = 'C'}; and I'm pulling data from the database with a single character indicating - you guessed it - whether 'O' the transaction is open or 'C' the transaction is closed. now because the data comes out of the database as an object...
In .NET 1.1, you cannot use generics, which would make your task easier. However, you can create a more generic method to handle comparisons between different enum types and their respective character representations without writing multiple methods. You can leverage the `Enum` class methods and a simple reflection me...
13,146
[ { "from": "human", "value": "I have an enum that looks as follows:\npublic enum TransactionStatus { Open = 'O', Closed = 'C'};\n\nand I'm pulling data from the database with a single character indicating - you guessed it - whether 'O' the transaction is open or 'C' the transaction is closed.\nnow because th...
I'm looking to have a couple of plugins in a Flex project I'm working on. I know I can load a SWF using the SWFLoader, but I thought in Flex3 you can now have Runtime Shared Libraries or something. Does anyone have any good documentation on loading a plugin at runtime? Ideally I'd like to be able to load a plugin from ...
In Flex 3, you can indeed use Runtime Shared Libraries (RSLs) to load SWF files at runtime, which is useful for implementing plugins. RSLs allow you to load shared code from a URL, and they can be used to load additional components or libraries that you want to use in your Flex application. Here is a high-level approa...
10,928
[ { "from": "human", "value": "I'm looking to have a couple of plugins in a Flex project I'm working on. I know I can load a SWF using the SWFLoader, but I thought in Flex3 you can now have Runtime Shared Libraries or something. Does anyone have any good documentation on loading a plugin at runtime? Ideally I...
What is the best way to create reverse index for full text search in Common Lisp ? Is there any proven and (relatively) bug-free open library for SBCL or LispWorks ? I managed to create my own library on top of AllegroCache - it was fairly easy to create, reliable and fast, but lacks advanced search options (phrases, w...
Creating a reverse index for full-text search in Common Lisp can be quite complex, but you're right to look for existing libraries that can save you time and effort. There are several libraries that you might find useful for full-text search capabilities, including those that can work with SBCL and LispWorks. ### Libr...
11,014
[ { "from": "human", "value": "What is the best way to create reverse index for full text search in Common Lisp ? Is there any proven and (relatively) bug-free open library for SBCL or LispWorks ?\nI managed to create my own library on top of AllegroCache - it was fairly easy to create, reliable and fast, but...
Edit: Solved, there was a trigger with a loop on the table (read my own answer further below). We have a simple delete statement that looks like this: DELETE FROM tablename WHERE pk = 12345 This just hangs, no timeout, no nothing. We've looked at the execution plan, and it consists of many lookups on related tables t...
It sounds like you've been troubleshooting a challenging issue with a hanging delete operation, and you've narrowed it down to a potential trigger causing the problem. Here are a few additional steps and considerations that could help you further analyze and resolve the issue: 1. **Check for Triggers**: Since you ment...
14,471
[ { "from": "human", "value": "Edit: Solved, there was a trigger with a loop on the table (read my own answer further below).\n\nWe have a simple delete statement that looks like this:\nDELETE FROM tablename WHERE pk = 12345\n\nThis just hangs, no timeout, no nothing.\nWe've looked at the execution plan, and ...
We've noticed that IE7 has an odd behavor with code blocks posted on Stack Overflow. For example, this little code block: public PageSizer(string href, int index) { HRef = href; PageIndex = index; } Copy and pasted from IE7, ends up like this: public PageSizer(string href, int index){ HRef = href; PageI...
The issue you are encountering with Internet Explorer 7 (IE7) when copying and pasting code blocks that have been modified by JavaScript is indeed a known quirk of the browser. This behavior primarily stems from how IE7 handles the clipboard and the rendering of dynamically modified content. ### Explanation 1. **Rich...
15,888
[ { "from": "human", "value": "We've noticed that IE7 has an odd behavor with code blocks posted on Stack Overflow. For example, this little code block:\npublic PageSizer(string href, int index)\n{\n HRef = href;\n PageIndex = index;\n}\n\nCopy and pasted from IE7, ends up like this:\n\npublic PageSizer...
New class is a subclass of the original object It needs to be php4 compatible
In PHP4, object-oriented programming (OOP) was limited compared to later versions (like PHP5 and above). However, you can still create subclasses and inherit from a parent class. Here's how you can define a new class that is a subclass of an existing object in PHP4: ### Example Code ```php <?php // Parent class def...
13,946
[ { "from": "human", "value": "\nNew class is a subclass of the original object\nIt needs to be php4 compatible\n\n" }, { "from": "gpt", "value": "In PHP4, object-oriented programming (OOP) was limited compared to later versions (like PHP5 and above). However, you can still create subclasses and i...
Normal OSX applications eat the first mouse click when not focused to first focus the application. Then future clicks are processed by the application. iTunes play/pause button and Finder behave differently, the first click is acted on even when not focused. I am looking for a way to force an existing application (R...
To achieve the behavior you’re looking for with an existing application like Microsoft Remote Desktop Connection (or any other application) on macOS, where the first mouse click is processed directly rather than being consumed to bring the application to focus, you'll need to use a combination of settings and possibly ...
11,181
[ { "from": "human", "value": "Normal OSX applications eat the first mouse click when not focused to first focus the application. Then future clicks are processed by the application. iTunes play/pause button and Finder behave differently, the first click is acted on even when not focused. I am looking for ...
After reading the answers to the question "Calculate Code Metrics" I installed the tool SourceMonitor and calculated some metrics. But I have no idea how to interpret them. What's a "good" value for the metric "Percent Branch Statements" "Methods per Class" "Average Statements per Method" "Maximum Method or Function C...
Interpreting code metrics can help you assess the quality and maintainability of your code. Here’s a brief explanation of each of the metrics you mentioned, along with some general guidelines on what might be considered “good” values. ### 1. Percent Branch Statements - **Definition:** This metric indicates the percent...
15,896
[ { "from": "human", "value": "After reading the answers to the question \"Calculate Code Metrics\" I installed the tool SourceMonitor and calculated some metrics.\nBut I have no idea how to interpret them.\nWhat's a \"good\" value for the metric\n\n\"Percent Branch Statements\"\n\"Methods per Class\"\n\"Aver...
I'm taking a look at how the model system in django works and I noticed something that I don't understand. I know that you create an empty __init__.py file to specify that the current directory is a package. And that you can set some variable in __init__.py so that import * works properly. But django adds a bunch of f...
Great question! In Django, the use of `__init__.py` files in packages is a design choice that serves several purposes. Let's break down why you might see classes, functions, or import statements in `__init__.py` files: ### 1. **Namespace Management** Django, as a framework, consists of multiple modules and submodules....
13,699
[ { "from": "human", "value": "I'm taking a look at how the model system in django works and I noticed something that I don't understand.\nI know that you create an empty __init__.py file to specify that the current directory is a package. And that you can set some variable in __init__.py so that import * wo...
We are writing a complex rich desktop application and need to offer flexibility in reporting formats so we thought we would just expose our object model to a scripting langauge. Time was when that meant VBA (which is still an option), but the managed code derivative VSTA (I think) seems to have withered on the vine. Wh...
When considering embedded scripting languages for a .NET application, there are several popular options that you might find suitable for your needs, especially in a Windows environment. Here are some of the best choices: 1. **IronPython**: - **Description**: IronPython is an implementation of Python that runs on th...
11,277
[ { "from": "human", "value": "We are writing a complex rich desktop application and need to offer flexibility in reporting formats so we thought we would just expose our object model to a scripting langauge. Time was when that meant VBA (which is still an option), but the managed code derivative VSTA (I thin...
I have inherited a c# class 'Button' (which I can't change) which clashes with the BCL class 'Windows.Forms.Button'. Normally, Id be very happy to go: MyPackage.MyClass.Button; But there are a large number or references to this class which is a pain to have to re-type. Is there any way to get the compiler (linker?) to...
In C#, when you have two classes with the same name in different namespaces, you can resolve conflicts by using fully qualified names. However, since you want to avoid retyping or changing a lot of code references, you can use an alias directive to help with this. Here's a step-by-step approach: 1. **Use Namespace Al...
15,482
[ { "from": "human", "value": "I have inherited a c# class 'Button' (which I can't change) which clashes with the BCL class 'Windows.Forms.Button'. Normally, Id be very happy to go:\nMyPackage.MyClass.Button;\n\nBut there are a large number or references to this class which is a pain to have to re-type.\nIs t...
I have to deploy my php/html/css/etc code to multiple servers and i am looking at my options for software that allows easy and secure deployment to multiple servers. Also helps if it could be tied into my SVN. Any suggestions?
Deploying code to multiple servers can be streamlined using various deployment tools that integrate well with version control systems like SVN. Here are some options you can consider: ### 1. **Capistrano** - **Description**: Capistrano is a remote server automation and deployment tool that works well with PHP applicat...
9,579
[ { "from": "human", "value": "I have to deploy my php/html/css/etc code to multiple servers and i am looking at my options for software that allows easy and secure deployment to multiple servers.\nAlso helps if it could be tied into my SVN.\nAny suggestions?\n" }, { "from": "gpt", "value": "Deplo...
Say I have the following: <ul> <li>First item</li> <li>Second item</li> <li>Third item</li> </ul> How would I select all the child elements after the first one using jQuery? So I can achieve something like: <ul> <li>First item</li> <li class="something">Second item</li> <li class="something">Third item</li> </u...
You can use jQuery's `.nextAll()` method to select all sibling elements after the first one and then add a class to those elements. Here's how you can do it: ```javascript $('ul li:first').nextAll().addClass('something'); ``` In this code: - `$('ul li:first')` selects the first `<li>` element inside the `<ul>`. - `....
17,649
[ { "from": "human", "value": "Say I have the following:\n<ul>\n <li>First item</li>\n <li>Second item</li>\n <li>Third item</li>\n</ul>\n\nHow would I select all the child elements after the first one using jQuery? So I can achieve something like:\n<ul>\n <li>First item</li>\n <li class=\"something\">Second...
Is anyone out there using D for real world applications? If so, what are you using it for? I can't seem to find anything big on the web written in D. Despite the lack of known big users, D seems like a very promissing language to me, and according to TIOBE, it's fairly popular.
Yes, while D might not be as mainstream as languages like Python or Java, it has found its niche in various real-world applications. Here are some examples of how D is used: 1. **Game Development**: D has been used in the development of games and game engines. Its performance characteristics and support for concurrent...
16,131
[ { "from": "human", "value": "Is anyone out there using D for real world applications? If so, what are you using it for? I can't seem to find anything big on the web written in D.\nDespite the lack of known big users, D seems like a very promissing language to me, and according to TIOBE, it's fairly popular....
Is there a Java package providing funcionality like the .Net System.Data namespace ? Specificaly the DataSet and Adaptor classes ?
In Java, while there is no direct equivalent of the .NET `System.Data` namespace, including the `DataSet` and `DataAdapter` classes, you can achieve similar functionality using various libraries and approaches. ### 1. **JDBC (Java Database Connectivity)**: JDBC is the standard Java API for connecting to databases. Whi...
11,798
[ { "from": "human", "value": "Is there a Java package providing funcionality like the .Net System.Data namespace ?\nSpecificaly the DataSet and Adaptor classes ?\n" }, { "from": "gpt", "value": "In Java, while there is no direct equivalent of the .NET `System.Data` namespace, including the `DataS...
I always seem to have a hard time starting a new Firefox extension. Can anyone recommend a good extension skeleton, scaffold, or code generator? Ideally one that follows all the best practices for FF extensions?
Starting a new Firefox extension can indeed be challenging, but there are several tools and templates that can help you get started quickly and follow best practices. Here are some recommendations: ### 1. **WebExtension Starter Kit** - **Repository**: [WebExtension Starter Kit](https://github.com/mdn/web-extension-...
12,666
[ { "from": "human", "value": "I always seem to have a hard time starting a new Firefox extension. Can anyone recommend a good extension skeleton, scaffold, or code generator? Ideally one that follows all the best practices for FF extensions?\n" }, { "from": "gpt", "value": "Starting a new Firef...
We have created a control that needs to persist data via the ViewState property of the Control class. Our class subclasses control strictly to get access to the ViewState property (it's protected on the Page object). We are adding the control to Page.Controls in OnInit, and then attempt to set the ViewState property in...
To ensure your control correctly participates in the ViewState process, you'll want to make sure you are following the proper sequence of events in the ASP.NET page lifecycle. Here are some important points and steps to consider when working with ViewState in a custom control: 1. **Correct Lifecycle Implementation**: ...
14,362
[ { "from": "human", "value": "We have created a control that needs to persist data via the ViewState property of the Control class. Our class subclasses control strictly to get access to the ViewState property (it's protected on the Page object). We are adding the control to Page.Controls in OnInit, and then...
How can I get precompiled headers working with GCC? I have had no luck in my attempts and I haven't seen many good examples for how to set it up. I've tried on Cygwin GCC 3.4.4 and using 4.0 on Ubuntu.
Using precompiled headers (PCH) with GCC can significantly speed up your compilation times, especially for large projects with many dependencies. Here's how to get it set up properly, along with a simple example. ### Step-by-Step Guide to Setting Up Precompiled Headers with GCC 1. **Create a Header File for Precompil...
6,630
[ { "from": "human", "value": "How can I get precompiled headers working with GCC?\nI have had no luck in my attempts and I haven't seen many good examples for how to set it up. I've tried on Cygwin GCC 3.4.4 and using 4.0 on Ubuntu.\n" }, { "from": "gpt", "value": "Using precompiled headers (PCH...
Simple one really. In SQL, if I want to search a text field for a couple of characters, I can do: SELECT blah FROM blah WHERE blah LIKE '%text%' The documentation for App Engine makes no mention of how to achieve this, but surely it's a common enough problem?
In Google App Engine's Datastore (which is often used for application data storage), the querying capabilities differ from traditional SQL databases. The Datastore doesn't support the `LIKE` operator or wildcard searches directly. However, you can achieve similar results using **entity property queries** with built-in...
14,764
[ { "from": "human", "value": "Simple one really. In SQL, if I want to search a text field for a couple of characters, I can do:\nSELECT blah FROM blah WHERE blah LIKE '%text%'\n\nThe documentation for App Engine makes no mention of how to achieve this, but surely it's a common enough problem?\n" }, { ...
I've got some XML, for example purposes it looks like this: <root> <field1>test</field1> <f2>t2</f2> <f2>t3</f2> </root> I want to transform it with XSLT, but I want to suppress the second f2 element in the output - how do I check inside my template to see if the f2 element already exists in the output whe...
To suppress the second occurrence of the `<f2>` element in your XSLT transformation, you can use a combination of an `xsl:for-each` loop and a counter to track the occurrences of `<f2>`. The idea is to only output the `<f2>` element the first time it is encountered. Here's how you can achieve this: ```xml <xsl:styles...
13,482
[ { "from": "human", "value": "I've got some XML, for example purposes it looks like this:\n<root>\n <field1>test</field1>\n <f2>t2</f2>\n <f2>t3</f2>\n</root>\n\nI want to transform it with XSLT, but I want to suppress the second f2 element in the output - how do I check inside my template to see if...
I'm working on bringing some old code from 1998 up to the 21st century. One of the first steps in the process is converting the printf statements to QString variables. No matter how many times I look back at printf though, I always end up forgetting one thing or the other. So, for fun, let's decode it together, for ...
Let's break down the `printf` statement you provided and explain how each variable will be formatted according to the format specifiers. Here's the original statement for reference: ```c printf("%4u\t%016.1f\t%04X\t%02X\t%1c\t%1c\t%4s", a, b, c, d, e, f, g); ``` ### Breakdown of Format Specifiers 1. **`%4u`**: - ...
1,261
[ { "from": "human", "value": "I'm working on bringing some old code from 1998 up to the 21st century. One of the first steps in the process is converting the printf statements to QString variables. No matter how many times I look back at printf though, I always end up forgetting one thing or the other. So...
I have fname and lname in my database, and a name could be stored as JOHN DOE or john DOE or JoHN dOE, but ultimately I want to display it as John Doe fname being John and lname being Doe
To standardize names stored in various formats in your database and display them as "John Doe", you can use a simple function in your programming language of choice. Here's an example of how to do this in Python, which demonstrates the basic concept of capitalizing the first letter of each name while making the rest of...
15,963
[ { "from": "human", "value": "I have fname and lname in my database, and a name could be stored as JOHN DOE or john DOE or JoHN dOE, but ultimately I want to display it as John Doe\nfname being John and lname being Doe\n" }, { "from": "gpt", "value": "To standardize names stored in various format...
I can't make td "Date" to have fixed height. If there is less in Body section td Date element is bigger than it should be - even if I set Date height to 10% and Body height to 90%. Any suggestions? <tr> <td class="Author" rowspan="2"> <a href="#">Claude</a><br /> <a href="#"><img src="Users/4/Avatar.jpeg" sty...
To create a fixed-height `<td>` for the "Date" element that behaves consistently across different browsers (like Firefox and Internet Explorer), you can try the following approach: 1. **Use CSS for Table Layout**: Add a CSS rule to set the `table-layout` to `fixed` for the table. This can help maintain the proportions...
14,177
[ { "from": "human", "value": "I can't make td \"Date\" to have fixed height. If there is less in Body section td Date element is bigger than it should be - even if I set Date height to 10% and Body height to 90%. Any suggestions?\n<tr>\n <td class=\"Author\" rowspan=\"2\">\n <a href=\"#\">Claude</a><br /...
Boost is a very large library with many inter-dependencies -- which also takes a long time to compile (which for me slows down our CruiseControl response time). The only parts of boost I use are boost::regex and boost::format. Is there an easy way to extract only the parts of boost necessary for a particular boost sub-...
If you're only using specific components of the Boost library, you can consider a few options to reduce compilation times: 1. **Use Precompiled Boost Libraries**: If you haven't already, consider using precompiled Boost libraries for the specific components you need (in your case, `boost::regex` and `boost::format`). ...
14,837
[ { "from": "human", "value": "Boost is a very large library with many inter-dependencies -- which also takes a long time to compile (which for me slows down our CruiseControl response time).\nThe only parts of boost I use are boost::regex and boost::format.\nIs there an easy way to extract only the parts of ...
I have written an AppleScript which when supplied with a Windows network link, will convert it to the correct smb:// equivalent for the server in our office, mount the network drive, and open the requested folder in Finder. I have this built in an application which just takes a pasted network path. Ideally I need this ...
To trigger an AppleScript from a link in Mail.app, you can create a custom URL scheme that will execute your AppleScript. Here's how you can set this up: ### Step 1: Create an AppleScript Application 1. Open `Script Editor` on your Mac. 2. Write your AppleScript code that handles the conversion of the Windows network...
13,625
[ { "from": "human", "value": "I have written an AppleScript which when supplied with a Windows network link, will convert it to the correct smb:// equivalent for the server in our office, mount the network drive, and open the requested folder in Finder.\nI have this built in an application which just takes a...
Can anyone tell me what version of the .NET framework (CLR and BCL) is req'd for the recently-released MS Sync Framework (for support of occasionally-connected-applications)? Its listed as Sync Framework V1 for ADO.NET v2.0 but none of its listed req'ments say anything about the .NET fx version that is required to supp...
The Microsoft Sync Framework (Sync Framework V1) is designed to work with ADO.NET 2.0 and is compatible with the .NET Framework version 2.0. This means that to use the Sync Framework, you need to have .NET Framework 2.0 installed on your system. While the Sync Framework does not explicitly state its own version requir...
16,993
[ { "from": "human", "value": "Can anyone tell me what version of the .NET framework (CLR and BCL) is req'd for the recently-released MS Sync Framework (for support of occasionally-connected-applications)?\nIts listed as Sync Framework V1 for ADO.NET v2.0 but none of its listed req'ments say anything about th...
I'm using nhibernate to store some user settings for an app in a SQL Server Compact Edition table. This is an excerpt the mapping file: <property name="Name" type="string" /> <property name="Value" type="string" /> Name is a regular string/nvarchar(50), and Value is set as ntext in the DB I'm trying to write a large a...
The issue you are experiencing with string truncation in SQL Server Compact Edition (SQL CE) is due to the way it handles string lengths and types. By default, SQL CE uses `nvarchar(max)` or `ntext` for larger strings, but NHibernate needs to be properly configured to handle this correctly. Here are a few steps and op...
13,724
[ { "from": "human", "value": "I'm using nhibernate to store some user settings for an app in a SQL Server Compact Edition table.\nThis is an excerpt the mapping file:\n<property name=\"Name\" type=\"string\" />\n<property name=\"Value\" type=\"string\" />\n\nName is a regular string/nvarchar(50), and Value i...
is it possible to have different items in different rows within a comboboxcolumn in a datagridview. This would be using virtual mode. Code samples would be great.
In a `DataGridView` with a `ComboBoxColumn`, you can achieve the goal of displaying different items in different rows by using the `EditingControlShowing` event and customizing the `ComboBox` based on the current row. Here's a step-by-step guide along with code samples to demonstrate how you can implement this in a W...
10,027
[ { "from": "human", "value": "is it possible to have different items in different rows within a comboboxcolumn in a datagridview. This would be using virtual mode. Code samples would be great.\n" }, { "from": "gpt", "value": "In a `DataGridView` with a `ComboBoxColumn`, you can achieve the goal...
Having this route: map.foo 'foo/*path', :controller => 'foo', :action => 'index' I have the following results for the link_to call link_to "Foo", :controller => 'foo', :path => 'bar/baz' # <a href="/foo/bar%2Fbaz">Foo</a> Calling url_for or foo_url directly, even with :escape => false, give me the same url: foo_url(:...
The behavior you're experiencing is due to the way Rails encodes slashes in the URL parameters. When you pass `:path => 'bar/baz'`, Rails treats the `/` as a special character and encodes it as `%2F`. To achieve the desired URL without patching Rails, you can create a custom route and manually handle the generation of...
15,476
[ { "from": "human", "value": "Having this route:\nmap.foo 'foo/*path', :controller => 'foo', :action => 'index'\n\nI have the following results for the link_to call\nlink_to \"Foo\", :controller => 'foo', :path => 'bar/baz'\n# <a href=\"/foo/bar%2Fbaz\">Foo</a>\n\nCalling url_for or foo_url directly, even wi...
So, im trying to write some code that utilizes Nvidia's CUDA architecture. I noticed that copying to and from the device was really hurting my overall performance, so now I am trying to move a large amount of data onto the device. As this data is used in numerous functions, I would like it to be global. Yes, I can pass...
In CUDA, you can't directly assign a pointer declared in the device code (like `__device__ float* global_data;`) because device pointers need to be allocated and initialized properly. However, you can achieve the effect of having "global" dynamic memory by using a pointer along with CUDA's memory allocation functions. ...
5,415
[ { "from": "human", "value": "So, im trying to write some code that utilizes Nvidia's CUDA architecture. I noticed that copying to and from the device was really hurting my overall performance, so now I am trying to move a large amount of data onto the device.\nAs this data is used in numerous functions, I w...
I am currently starting a project utilizing ASP.NET MVC and would like to use NHaml as my view engine as I love Haml from Rails/Merb. The main issue I face is the laying out of my pages. In Webforms, I would place a ContentPlaceHolder in the head so that other pages can have specific CSS and JavaScript files. In Rails,...
To achieve a Rails-like layout behavior with NHaml in an ASP.NET MVC application, you can implement a mechanism to manage styles and scripts that are specific to each view. The key is to create a way to define and render specific sections in your layout, similar to how `yield` and `content_for` work in Rails. Here's h...
10,205
[ { "from": "human", "value": "I am currently starting a project utilizing ASP.NET MVC and would like to use NHaml as my view engine as I love Haml from Rails/Merb. The main issue I face is the laying out of my pages. In Webforms, I would place a ContentPlaceHolder in the head so that other pages can have spe...
I have just installed Windows Server 2003 Standard Edition and therefore IIS6 (comes as standard). I have also install the windows component that enable the administration of IIS from the browser (https://server:8098/). The problem I have is that I have to log-in to this tool but the Server Administrator u/name and p/w...
It sounds like you're encountering an authentication issue when trying to access the IIS Manager through the web interface in Windows Server 2003. Here are some steps you can take to troubleshoot and resolve the issue: 1. **Check User Accounts**: Ensure that the user account you are trying to log in with is a member o...
12,876
[ { "from": "human", "value": "I have just installed Windows Server 2003 Standard Edition and therefore IIS6 (comes as standard). I have also install the windows component that enable the administration of IIS from the browser (https://server:8098/). The problem I have is that I have to log-in to this tool bu...
I have a class with a public array of bytes. Lets say its Public myBuff as byte() Events within the class get chunks of data in byte array. How do i tell the event code to stick the get chunk on the end? Lets say Private Sub GetChunk Dim chunk as byte '... get stuff in chunk Me.myBuff += chunk '(stick chunk on e...
In VB.NET, you cannot directly concatenate arrays with the `+=` operator like you might do in some other languages. Instead, you will need to create a new array that combines the existing contents of `myBuff` with the new chunk of data. Here's how you can do this: 1. First, determine the length of the existing array (...
14,811
[ { "from": "human", "value": "I have a class with a public array of bytes. Lets say its\nPublic myBuff as byte()\n\nEvents within the class get chunks of data in byte array. How do i tell the event code to stick the get chunk on the end? Lets say\nPrivate Sub GetChunk\n Dim chunk as byte\n '... get stuff i...
What's the difference between failover and disaster recovery?
Failover and disaster recovery are both concepts related to maintaining system availability and data integrity, but they serve different purposes and are implemented in distinct ways. ### Failover - **Definition**: Failover is the process by which a system automatically switches to a redundant or standby system upon ...
12,848
[ { "from": "human", "value": "What's the difference between failover and disaster recovery?\n" }, { "from": "gpt", "value": "Failover and disaster recovery are both concepts related to maintaining system availability and data integrity, but they serve different purposes and are implemented in dis...
Multithread algorithms are notably hard to design/debug/prove. Dekker's algorithm is a prime example of how hard it can be to design a correct synchronized algorithm. Tanenbaum's Modern operating systems is filled with examples in its IPC section. Does anyone have a good reference (books, articles) for this? Thanks!
You're correct that designing, debugging, and proving the correctness of multithreaded algorithms can be quite challenging. Here are several references that can help deepen your understanding of this area, particularly with regard to synchronization, interprocess communication (IPC), and concurrency control: 1. **Book...
13,607
[ { "from": "human", "value": "Multithread algorithms are notably hard to design/debug/prove. Dekker's algorithm is a prime example of how hard it can be to design a correct synchronized algorithm. Tanenbaum's Modern operating systems is filled with examples in its IPC section. Does anyone have a good referen...
I want to implement Generics in my Page Class like : Public Class MyClass(Of TheClass) Inherits System.Web.UI.Page But for this to work, I need to be able to instantiate the Class (with the correct Generic Class Type) and load the page, instead of a regular Response.Redirect. Is there a way to do this ?
Implementing generics in a web page class (specifically in ASP.NET Web Forms) can be a bit tricky due to the way ASP.NET manages page instantiation. In general, ASP.NET uses a non-generic base class for pages and instantiates pages based on the configuration in the `Web.config` or the routing. However, if you're looki...
13,432
[ { "from": "human", "value": "I want to implement Generics in my Page Class like :\nPublic Class MyClass(Of TheClass)\nInherits System.Web.UI.Page\n\nBut for this to work, I need to be able to instantiate the Class (with the correct Generic Class Type) and load the page, instead of a regular Response.Redirec...
I'm writing a little desktop app that should be able to encrypt a data file and protect it with a password (i.e. one must enter the correct password to decrypt). I want the encrypted data file to be self-contained and portable, so the authentication has to be embedded in the file (or so I assume). I have a strategy th...
Your design concept for encrypting and protecting a data file with a password is on the right track, but there are a few important considerations and improvements you can make to enhance both security and usability. Let's break down your approach and address your follow-up question regarding salt. ### Your Current App...
12,859
[ { "from": "human", "value": "I'm writing a little desktop app that should be able to encrypt a data file and protect it with a password (i.e. one must enter the correct password to decrypt). I want the encrypted data file to be self-contained and portable, so the authentication has to be embedded in the fi...
I'm using a custom-built inhouse application that generates a standard set of reports on a weekly basis. I have no access to the source code of the application, and everyone tells me there is no documentation available for the Oracle database schema. (Aargh!) I've been asked to define the specs for a variant of an exis...
Yes, there are several approaches and tools you can use to monitor the SQL queries being executed against your Oracle database, even when the application doesn't provide logging for the queries themselves. Here are a few options you can consider: 1. **Oracle SQL Trace**: You can enable SQL tracing for your session or ...
13,093
[ { "from": "human", "value": "I'm using a custom-built inhouse application that generates a standard set of reports on a weekly basis. I have no access to the source code of the application, and everyone tells me there is no documentation available for the Oracle database schema. (Aargh!)\nI've been asked to...
Scenario: You have an ASP.Net webpage that should display the next image in a series of images. If 1.jpg is currently loaded, the refresh should load 2.jpg. Assuming I would use this code, where do you get the current images name. string currImage = MainPic.ImageUrl.Replace(".jpg", ""); currImage = currImage.Replace(...
To achieve the functionality you're looking for—displaying the next image in a series on refresh while maintaining the state of the currently displayed image—you can use a combination of session variables or query strings to store the last displayed image number. ### Using Session Variables This method involves stori...
12,724
[ { "from": "human", "value": "Scenario: You have an ASP.Net webpage that should display the next image in a series of images. If 1.jpg is currently loaded, the refresh should load 2.jpg.\nAssuming I would use this code, where do you get the current images name.\nstring currImage = MainPic.ImageUrl.Replace(\"...
Ideally the reader has upgraded a native C++ program to Visual Studio 2008, which contains an OpenClipboard() block. Why not try setting a breakpoint just after getting a successful return-code from OpenClipboard() and step through your code. According to the Internet it may work on your system, but of course, not on...
The issue you're experiencing when debugging with Visual Studio 2008, especially with regards to the clipboard functions like `OpenClipboard()`, is indeed related to how the debugger interacts with the thread and the Windows API. Here’s a breakdown of what might be happening and some recommendations on how to handle it...
10,139
[ { "from": "human", "value": "Ideally the reader has upgraded a native C++ program to Visual Studio 2008, which contains an OpenClipboard() block. Why not try setting a breakpoint just after getting a successful return-code from OpenClipboard() and step through your code. According to the Internet it may w...
Could someone please demystify interfaces for me or point me to some good examples? I keep seeing interfaces popup here and there, but I haven't ever really been exposed to good explanations of interfaces or when to use them. I am talking about interfaces in a context of interfaces vs. abstract classes.
Sure! Let's break down interfaces, especially in the context of object-oriented programming (OOP), and differentiate them from abstract classes. ### What is an Interface? An **interface** is a contract that defines a set of methods (and sometimes properties) that a class must implement, without providing any implemen...
12,322
[ { "from": "human", "value": "Could someone please demystify interfaces for me or point me to some good examples? I keep seeing interfaces popup here and there, but I haven't ever really been exposed to good explanations of interfaces or when to use them.\nI am talking about interfaces in a context of interf...
Are there any IDE's for developing HLSL code? The three key features I want are: 1) syntax highlighting 2) auto-complete 3) interaction debugging Visual Studio doesn't do any of these things, and it doesn't seem that RenderMonkey or FX Composer do either. Is there some IDE that I'm not aware of, or does one of these t...
Developing HLSL (High-Level Shading Language) code can be a bit challenging, especially when looking for an Integrated Development Environment (IDE) that supports features like syntax highlighting, auto-complete, and debugging. Here are some options that might meet your needs: ### 1. Visual Studio with Extensions Whil...
13,452
[ { "from": "human", "value": "Are there any IDE's for developing HLSL code? The three key features I want are:\n1) syntax highlighting\n2) auto-complete\n3) interaction debugging\nVisual Studio doesn't do any of these things, and it doesn't seem that RenderMonkey or FX Composer do either.\nIs there some IDE...
I have a LINQ to SQL generated class with a readonly property: <Column(Name:="totalLogins", Storage:="_TotalLogins", DbType:="Int", UpdateCheck:=UpdateCheck.Never)> _ Public ReadOnly Property TotalLogins() As System.Nullable(Of Integer) Get Return Me._TotalLogins End Get End Property This prevents it ...
In LINQ to SQL, a property marked as `ReadOnly` does not have a public setter, which is why you're unable to directly update it using `user.TotalLogins`. However, your approach to modify the private backing field `_TotalLogins` directly is valid; you just need to ensure a couple of things to ensure changes are reflecte...
9,038
[ { "from": "human", "value": "I have a LINQ to SQL generated class with a readonly property:\n<Column(Name:=\"totalLogins\", Storage:=\"_TotalLogins\", DbType:=\"Int\", UpdateCheck:=UpdateCheck.Never)> _\nPublic ReadOnly Property TotalLogins() As System.Nullable(Of Integer)\n Get\n Return Me._Tota...
I've recently read the Yahoo manifesto Best Practices for Speeding Up Your Web Site. They recommend to put the JavaScript inclusion at the bottom of the HTML code when we can. But where exactly and when? Should we put it before closing </html> or after ? And above all, when should we still put it in the <head> section?...
The recommendation to place JavaScript inclusions at the bottom of your HTML document is primarily aimed at improving page load performance and user experience. Here’s a breakdown of where to put your JavaScript and when: ### Where to Include JavaScript 1. **Before the Closing `</body>` Tag**: - This is the most r...
11,647
[ { "from": "human", "value": "I've recently read the Yahoo manifesto Best Practices for Speeding Up Your Web Site. They recommend to put the JavaScript inclusion at the bottom of the HTML code when we can.\nBut where exactly and when?\nShould we put it before closing </html> or after ? And above all, when sh...
I've been learning Lisp to expand my horizons because I have heard that it is used in AI programming. After doing some exploring, I have yet to find AI examples or anything in the language that would make it more inclined towards it. Was Lisp used in the past because it was available, or is there something that I'm jus...
Lisp has a rich history in artificial intelligence (AI) development, particularly in the early decades of AI research. Here are several key reasons why Lisp became closely associated with AI programming: 1. **Symbolic Processing**: Lisp was designed for symbolic computation, which is critical in AI. It excels at manip...
14,033
[ { "from": "human", "value": "I've been learning Lisp to expand my horizons because I have heard that it is used in AI programming. After doing some exploring, I have yet to find AI examples or anything in the language that would make it more inclined towards it.\nWas Lisp used in the past because it was ava...
Greetings, I need a way (either via C# or in a .bat file) to get a list of all the computers on a given network. Normally, I use "net view", but this tends to work (from my understanding) only within your domain. I need the names (or at least the IP Addresses) of all computers available on my network. Being able t...
To obtain a list of all computers on a given network, there are a couple of approaches you can consider using either C# or a batch file. Here are both methods: ### Method 1: Using C# You can use the `System.Net.NetworkInformation` namespace in C# to perform network scanning. Below is a simple C# console application t...
13,825
[ { "from": "human", "value": "Greetings,\nI need a way (either via C# or in a .bat file) to get a list of all the computers on a given network. Normally, I use \"net view\", but this tends to work (from my understanding) only within your domain. I need the names (or at least the IP Addresses) of all comput...
I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation isn't very thorough on the subject, and I haven't been able to find a good write-up. From what I can tel...
Understanding threading in Python can indeed be a bit challenging, especially with how Python handles threading due to its Global Interpreter Lock (GIL). Let me break it down for you and highlight some common issues along with solutions. ### 1. Threads in Python Python has a `threading` module that allows you to run ...
4,261
[ { "from": "human", "value": "I've been trying to wrap my head around how threads work in Python, and it's hard to find good information on how they operate. I may just be missing a link or something, but it seems like the official documentation isn't very thorough on the subject, and I haven't been able to ...
Which of these queries is the faster? NOT EXISTS: SELECT ProductID, ProductName FROM Northwind..Products p WHERE NOT EXISTS ( SELECT 1 FROM Northwind..[Order Details] od WHERE p.ProductId = od.ProductId) Or NOT IN: SELECT ProductID, ProductName FROM Northwind..Products p WHERE p.ProductID NOT IN ( ...
When comparing `NOT EXISTS` and `NOT IN`, there are some important considerations to keep in mind, especially regarding how they handle null values and performance in SQL Server. ### Key Differences 1. **Handling of NULLs**: - `NOT IN`: If the subquery returns any NULL values, then the entire `NOT IN` clause will ...
16,338
[ { "from": "human", "value": "Which of these queries is the faster?\nNOT EXISTS:\nSELECT ProductID, ProductName \nFROM Northwind..Products p\nWHERE NOT EXISTS (\n SELECT 1 \n FROM Northwind..[Order Details] od \n WHERE p.ProductId = od.ProductId)\n\nOr NOT IN:\nSELECT ProductID, ProductName \nFROM N...
When people download files from my website, I don't want them to be able to download faster than 300KB/sec per file. Is there anyway to do this? I'm running IIS 6.0 on Windows Server 2003.
To limit the download speed of files served by IIS 6.0, you can implement a few strategies, although IIS does not have built-in bandwidth throttling features for individual file downloads. Here are some approaches you can consider: ### 1. Use **Bandwidth Throttling in IIS 6.0** IIS 6.0 allows you to set up bandwidth ...
12,675
[ { "from": "human", "value": "When people download files from my website, I don't want them to be able to download faster than 300KB/sec per file.\nIs there anyway to do this? I'm running IIS 6.0 on Windows Server 2003.\n" }, { "from": "gpt", "value": "To limit the download speed of files served ...
Any recommended crypto libraries for Java. What I need is the ability to parse X.509 Certificates to extract the information contained in them. Thanks
There are several libraries in Java that can help you work with cryptography, including parsing X.509 certificates. Here are some recommended libraries you might consider: 1. **Bouncy Castle**: - Bouncy Castle is a widely-used cryptography library in Java that supports a range of cryptographic functions, including ...
11,657
[ { "from": "human", "value": "Any recommended crypto libraries for Java. What I need is the ability to parse X.509 Certificates to extract the information contained in them.\nThanks\n" }, { "from": "gpt", "value": "There are several libraries in Java that can help you work with cryptography, incl...
I got a call from a tester about a machine that was failing our software. When I examined the problem machine, I quickly realized the problem was fairly low level: Inbound network traffic works fine. Basic outbound command like ping and ssh are working fine, but anything involving the connect() call is failing with "No...
The issue you're experiencing, where outbound connections are failing with a "No route to host" message while inbound traffic and basic networking are functioning correctly, often indicates a problem with the routing configuration or firewall settings on the machine. Here are a few steps you can take to troubleshoot a...
9,285
[ { "from": "human", "value": "I got a call from a tester about a machine that was failing our software. When I examined the problem machine, I quickly realized the problem was fairly low level: Inbound network traffic works fine. Basic outbound command like ping and ssh are working fine, but anything involvi...
I'm doing some maintenance coding on a webapp and I am getting a javascript error of the form: "[elementname] has no properties" Part of the code is being generated on the fly with an AJAX call that changes innerHTML for part of the page, after this is finished I need to copy a piece of data from a hidden input field t...
It's great to hear that you were able to find the typing mistake that was causing the issue! These kinds of errors can be frustrating, especially in JavaScript, where typos can lead to misleading error messages. For others who might face similar issues, let's summarize some best practices and troubleshooting tips to ...
15,392
[ { "from": "human", "value": "I'm doing some maintenance coding on a webapp and I am getting a javascript error of the form: \"[elementname] has no properties\"\nPart of the code is being generated on the fly with an AJAX call that changes innerHTML for part of the page, after this is finished I need to copy...
The rich presentational capabilities of WPF and Silverlight mean developers like me will be working closely with graphic designers more often these days, as is the case in my next project. Does anyone out there have any tips and experience (from both points of view) on making this go more smoothly? For example, whe...
Collaborating with graphic designers on WPF and Silverlight projects can indeed present unique challenges, especially when it comes to communication and workflows. Here are some tips from both developers' and designers' perspectives to help smooth out the collaboration process: ### For Developers: 1. **Understand the...
12,720
[ { "from": "human", "value": "The rich presentational capabilities of WPF and Silverlight mean developers like me will be working closely with graphic designers more often these days, as is the case in my next project. \nDoes anyone out there have any tips and experience (from both points of view) on making...
I need to create a directory on a mapped network drive. I am using a code: DirectoryInfo targetDirectory = new DirectoryInfo(path); if (targetDirectory != null) { targetDirectory.Create(); } If I specify the path like "\\\\ServerName\\Directory", it all goes OK. If I map the "\\ServerName\Directory" as, say drive ...
The issue you are encountering is common when dealing with mapped network drives in Windows services. Mapped drives are user-specific, meaning they are not available to services running in session 0 or under different user contexts. Here are a few steps to resolve the issue: 1. **Use UNC Paths**: Instead of using map...
14,607
[ { "from": "human", "value": "I need to create a directory on a mapped network drive. I am using a code:\nDirectoryInfo targetDirectory = new DirectoryInfo(path);\nif (targetDirectory != null)\n{\n targetDirectory.Create();\n}\n\nIf I specify the path like \"\\\\\\\\ServerName\\\\Directory\", it all goes ...
When reviewing, I sometimes encounter this kind of loop: i = begin while ( i != end ) { // ... do stuff if ( i == end-1 (the one-but-last element) ) { ... do other stuff } increment i } Then I ask the question: would you write this? i = begin mid = ( end - begin ) / 2 // (the middle element) whil...
You raise a very valid point regarding the structure and clarity of loops in your examples. The main argument against the first and second approaches is that they introduce special cases within a single loop, which can lead to code that is harder to read, understand, and maintain. ### Key Points Against Mixing Logic i...
12,890
[ { "from": "human", "value": "When reviewing, I sometimes encounter this kind of loop:\ni = begin\nwhile ( i != end ) { \n // ... do stuff\n if ( i == end-1 (the one-but-last element) ) {\n ... do other stuff\n }\n increment i\n}\n\nThen I ask the question: would you write this?\ni = begin\nm...
I have a huge database with some 100 tables and some 250 stored procedures. I want to know the list of tables affected by a subset of stored procedures. For example, I have a list of 50 stored procedures, out of 250, and I want to know the list of tables that will be affected by these 50 stored procedures. Is there any...
In SQL Server, you can automate the task of finding the tables affected by a subset of stored procedures by querying the system catalog views, specifically `sys.sql_dependencies` or using `sys.dm_sql_referencing_entities` and `sys.dm_sql_referenced_entities`, depending on your SQL Server version. However, since you are...
13,972
[ { "from": "human", "value": "I have a huge database with some 100 tables and some 250 stored procedures. I want to know the list of tables affected by a subset of stored procedures. For example, I have a list of 50 stored procedures, out of 250, and I want to know the list of tables that will be affected by...
I have a distributed Java application running on 5 application servers. The servers all use the same Oracle 9i database running on a 6th machine. The application need to prefetch a batch of 100 IDs from a sequence. It's relatively easy to do in a single-threaded, non-distributed environment, you can just issue these qu...
Prefetching sequence IDs in a distributed environment can be challenging, especially when you want to do it in a way that accommodates concurrent access without synchronizing across multiple application servers. While it's great that you've identified a method that works for PostgreSQL, Oracle's behavior with sequences...
7,573
[ { "from": "human", "value": "I have a distributed Java application running on 5 application servers. The servers all use the same Oracle 9i database running on a 6th machine.\nThe application need to prefetch a batch of 100 IDs from a sequence. It's relatively easy to do in a single-threaded, non-distribute...
What things have to be done before I can honestly tell myself my web application is accessible by anyone? Or even better, convince Joe Clark. I don't have any video or audio to worry about, so I know I won't need transcripts. What else do I have to check?
Ensuring your web application is accessible to everyone, including people with disabilities, involves several key steps and considerations. Here’s a checklist to help you evaluate and improve your web application’s accessibility: ### 1. **Follow Web Accessibility Guidelines** - **WCAG Compliance:** Familiarize your...
10,375
[ { "from": "human", "value": "What things have to be done before I can honestly tell myself my web application is accessible by anyone? Or even better, convince Joe Clark. I don't have any video or audio to worry about, so I know I won't need transcripts. What else do I have to check?\n" }, { "from":...
In static languages like Java you need interfaces because otherwise the type system just won't let you do certain things. But in dynamic languages like PHP and Python you just take advantage of duck-typing. PHP supports interfaces. Ruby and Python don't have them. So you can clearly live happily without them. I've been...
The question of whether to use interfaces in dynamic languages like PHP or Python is a nuanced one, and the answer often depends on the specific context of the project, the development team, and the overall architectural goals. Here are some points to consider: ### Pros of Not Using Interfaces in Dynamic Languages 1....
12,180
[ { "from": "human", "value": "In static languages like Java you need interfaces because\notherwise the type system just won't let you do certain things.\nBut in dynamic languages like PHP and Python you just take\nadvantage of duck-typing.\nPHP supports interfaces.\nRuby and Python don't have them.\nSo you c...
Browsing to a dynamic web page built using Grails version 1.0.3 the console log shows the following errors for each page request: [Fatal Error] :-1:-1: Premature end of file. How do I stop this error from appearing for each request?
The error message `[Fatal Error] :-1:-1: Premature end of file` typically indicates an issue with XML parsing, usually because the server is trying to parse an empty or incomplete XML response. In the context of a Grails application, this can be associated with several potential causes: 1. **Malformed XML Response**: ...
14,143
[ { "from": "human", "value": "Browsing to a dynamic web page built using Grails version 1.0.3 the console log shows the following errors for each page request:\n[Fatal Error] :-1:-1: Premature end of file.\n\nHow do I stop this error from appearing for each request?\n" }, { "from": "gpt", "value"...
What are some good tools and techniques for making in game UI? I'm looking for things that help artists-types create and animate game HUD (heads up display) UI and can be added to the game engine for real time playback.
Creating and animating game HUD (Heads-Up Display) UI effectively requires a blend of design tools and techniques that cater to artists while being compatible with game engines for real-time playback. Here are some popular tools and techniques: ### Tools for Creating Game UI 1. **Adobe XD / Figma / Sketch**: - The...
10,247
[ { "from": "human", "value": "What are some good tools and techniques for making in game UI? I'm looking for things that help artists-types create and animate game HUD (heads up display) UI and can be added to the game engine for real time playback.\n" }, { "from": "gpt", "value": "Creating and a...
Does anyone know of any way to convert a simple gif to xaml? E.G. A tool that would look at an image and create elipses, rectangles and paths based upon a gif / jpg / bitmap?
Converting a GIF or bitmap image directly to XAML (which is the markup language used in WPF and UWP applications) typically involves creating vector representations of the raster image. Unfortunately, there isn't a straightforward, automated tool that can directly convert GIFs or bitmaps into XAML using shapes like ell...
12,656
[ { "from": "human", "value": "Does anyone know of any way to convert a simple gif to xaml? E.G. A tool that would look at an image and create elipses, rectangles and paths based upon a gif / jpg / bitmap?\n" }, { "from": "gpt", "value": "Converting a GIF or bitmap image directly to XAML (which ...
We use MS SQL Server and C#. Our database is under sourse control and I will tell you some details of our implementation. We had implemented two operations: Export database to plain-text files. Database schema files: tables.sql relationships.sql views.sql ... and table contents files: Data/table1.txt Data/table2.txt ...
Using source control for database schemas and data is an essential part of modern software development, especially when working in teams or with CI/CD pipelines. Here are some common approaches and tools that you might consider for creating and managing your test databases, along with the export and import functionalit...
13,270
[ { "from": "human", "value": "We use MS SQL Server and C#. Our database is under sourse control and I will tell you some details of our implementation. We had implemented two operations: \n\nExport database to plain-text files. Database schema files:\ntables.sql\nrelationships.sql\nviews.sql\n...\nand table ...
I need to programatically determine whether .NET 3.5 is installed. I thought it would be easy: <% Response.Write(Environment.Version.ToString()); %> Which returns "2.0.50727.1434" so no such luck... In my research I have that there are some rather obscure registry keys I can look at but I'm not sure if that is the rou...
To programmatically determine if .NET Framework 3.5 is installed, you can indeed check the Windows registry. While `Environment.Version` only provides the version of the CLR that your application is running under, the .NET Framework versions are listed in the registry. ### Here’s how you can check for .NET Framework 3...
7,022
[ { "from": "human", "value": "I need to programatically determine whether .NET 3.5 is installed. I thought it would be easy:\n<% Response.Write(Environment.Version.ToString()); %>\n\nWhich returns \"2.0.50727.1434\" so no such luck...\nIn my research I have that there are some rather obscure registry keys I ...
I have 4 2D points in screen-space, and I need to reverse-project them back into 3D space. I know that each of the 4 points is a corner of a 3D-rotated rigid rectangle, and I know the size of the rectangle. How can I get 3D coordinates from this? I am not using any particular API, and I do not have an existing projecti...
To reverse-project 2D screen space points back into 3D space, given that they are corners of a 3D-rotated rigid rectangle and you know the size of the rectangle, you can follow these steps: ### Step 1: Understand the relationship between 2D and 3D points In computer graphics, a point in 3D space is projected into 2D ...
8,364
[ { "from": "human", "value": "I have 4 2D points in screen-space, and I need to reverse-project them back into 3D space. I know that each of the 4 points is a corner of a 3D-rotated rigid rectangle, and I know the size of the rectangle. How can I get 3D coordinates from this?\nI am not using any particular A...
Can anyone suggest a good way of detecting if a database is empty from Java (needs to support at least Microsoft SQL Server, Derby and Oracle)? By empty I mean in the state it would be if the database were freshly created with a new create database statement, though the check need not be 100% perfect if covers 99% of c...
To determine if a database is effectively empty in Java and account for the differences in how various databases handle system tables, you can enhance your method by filtering out system tables. The approach generally involves checking for user-defined tables and possibly any other relevant schema objects. Here's a re...
13,106
[ { "from": "human", "value": "Can anyone suggest a good way of detecting if a database is empty from Java (needs to support at least Microsoft SQL Server, Derby and Oracle)?\nBy empty I mean in the state it would be if the database were freshly created with a new create database statement, though the check n...
If you have two jars in your classpath that contain different versions of the same class, the classpath order becomes critical. I am looking for a tool that can detect and flag such potential conflicts in a given classpath or set of folders. Certainly a script that starts: classes=`mktemp` for i in `find . -name "*.jar...
Yes, dealing with classpath conflicts due to different versions of the same class can be quite problematic, and it's good that you're looking for tools to help with that. Several tools and techniques can help detect and flag potential conflicts in your classpath: 1. **Maven Dependency Plugin**: If you are using Maven...
13,770
[ { "from": "human", "value": "If you have two jars in your classpath that contain different versions of the same class, the classpath order becomes critical.\nI am looking for a tool that can detect and flag such potential conflicts in a given classpath or set of folders.\nCertainly a script that starts:\ncl...
I need to "merge" two XML documents, overwriting the overlapsed attributes and elements. For instance if I have document1: <mapping> <key value="assigned"> <a/> </key> <whatever attribute="x"> <k/> <j/> </whatever> </mapping> and document2: <mapping> <key value="identity"> ...
You can use several approaches to merge XML documents in Java or XSLT, but I'll provide a simple way to do this using Python, as it allows for easy automation and manipulation of XML files with libraries like `xml.etree.ElementTree`. Below is a Python script that merges two XML documents based on your specified rules (...
12,294
[ { "from": "human", "value": "I need to \"merge\" two XML documents, overwriting the overlapsed attributes and elements. For instance if I have document1:\n<mapping>\n <key value=\"assigned\">\n <a/>\n </key>\n <whatever attribute=\"x\">\n <k/>\n <j/>\n </whatever>\n</mapping...
When do you test against an In-Memory Database vs. a Development Database? Also, as a related side question, when you do use a Development Database, do you use an Individual Development Database, an Integration Development Database, or both? Also++, for unit testing, when do you use an In-Memory Database over mocking ...
Choosing between an in-memory database and a development database for testing, as well as deciding between individual and integration development databases, depends on various factors, including the type of testing being performed, the desired level of isolation, and the specific use case. ### In-Memory Database vs. D...
11,211
[ { "from": "human", "value": "When do you test against an In-Memory Database vs. a Development Database?\nAlso, as a related side question, when you do use a Development Database, do you use an Individual Development Database, an Integration Development Database, or both?\nAlso++, for unit testing, when do ...
Does anyone know if it is possible (and if yes, how) to bind an event (Python + Tkinter on MS Windows) to a system date change? I know I can have .after events checking once in a while; I'm asking if I can somehow have an event fired whenever the system date/time changes, either automatically (e.g. for daylight saving ...
In Python with Tkinter on MS Windows, there isn't a direct way to bind an event to system date/time changes. However, you can use a combination of methods to check for changes in the system time, including monitoring the time regularly with a small time interval using the `.after()` method. Since you mentioned that T...
13,182
[ { "from": "human", "value": "Does anyone know if it is possible (and if yes, how) to bind an event (Python + Tkinter on MS Windows) to a system date change?\nI know I can have .after events checking once in a while; I'm asking if I can somehow have an event fired whenever the system date/time changes, eithe...
DDD states that you should only ever access entities through their aggregate root. So say for instance that you have an aggregate root X which potentially has a lot of child Y entities. Now, for some scenario, you only really care about a subset of these Y entities at a time (maybe you're displaying them in a paged lis...
You're touching on a common challenge in Domain-Driven Design (DDD) when dealing with aggregates, particularly with the need to maintain the integrity and consistency of aggregates while also accommodating performance and scalability concerns. Let's break down your situation and explore potential solutions. ### Access...
3,618
[ { "from": "human", "value": "DDD states that you should only ever access entities through their aggregate root. So say for instance that you have an aggregate root X which potentially has a lot of child Y entities. Now, for some scenario, you only really care about a subset of these Y entities at a time (ma...
In the uncompressed situation I know I need to read the wav header, pull out the number of channels, bits, and sample rate and work it out from there: (channels) * (bits) * (samples/s) * (seconds) = (filesize) Is there a simpler way - a free library, or something in the .net framework perhaps? How would I do this if th...
Yes, there are ways to handle WAV file reading and metadata extraction in a simpler way using libraries, both for uncompressed and compressed WAV files. Below are some approaches for both situations, as well as specific solutions for .NET. ### Handling Uncompressed WAV Files For uncompressed WAV files, you can use a ...
10,163
[ { "from": "human", "value": "In the uncompressed situation I know I need to read the wav header, pull out the number of channels, bits, and sample rate and work it out from there:\n(channels) * (bits) * (samples/s) * (seconds) = (filesize)\nIs there a simpler way - a free library, or something in the .net f...
Given a string "filename.conf", how to I verify the extension part? I need a cross platform solution.
To verify the file extension of a string (like "filename.conf") in a cross-platform way, you can use Python's built-in `os.path` module or the `pathlib` module, both of which work on multiple operating systems, including Windows, macOS, and Linux. Here are examples using both methods: ### Method 1: Using `os.path` `...
15,562
[ { "from": "human", "value": "Given a string \"filename.conf\", how to I verify the extension part?\nI need a cross platform solution.\n" }, { "from": "gpt", "value": "To verify the file extension of a string (like \"filename.conf\") in a cross-platform way, you can use Python's built-in `os.path...
Can you define a macro that accesses a normal variable, but in a read-only fashion (other than defining it as a call to a function)? For example, can the VALUE macro in the following code be defined in such a way that the dostuff() function causes a compile error? struct myobj { int value; } /* This macro does not s...
To define a macro that accesses a variable in a read-only fashion, you can use the concept of a temporary pointer or a casting mechanism to make the macro appear to return a read-only expression. This way, any attempt to assign a value to the macro will result in a compile error. Here's how you could implement it: `...
14,586
[ { "from": "human", "value": "Can you define a macro that accesses a normal variable, but in a read-only fashion (other than defining it as a call to a function)? For example, can the VALUE macro in the following code be defined in such a way that the dostuff() function causes a compile error?\nstruct myobj ...
I'm creating a generic class and in one of the methods I need to know the Class of the generic type currently in use. The reason is that one of the method's I call expects this as an argument. Example: public class MyGenericClass<T> { public void doSomething() { // Snip... // Call to a 3rd party lib T bea...
In Java, due to type erasure, you cannot directly obtain a `Class` object for a generic type parameter `T` at runtime. However, you can work around this limitation by passing the `Class` object for `T` to the constructor of your generic class. Here's how you can do it: ```java public class MyGenericClass<T> { priv...
15,956
[ { "from": "human", "value": "I'm creating a generic class and in one of the methods I need to know the Class of the generic type currently in use. The reason is that one of the method's I call expects this as an argument.\nExample:\npublic class MyGenericClass<T> {\n public void doSomething() {\n // Sni...
I'm trying to set the number format of a cell but the call to xlcFormatNumber fails leaving the cell number format as "General". I can successfully set the value of the cell using xlSet. XLOPER xRet; XLOPER xRef; //try to set the format of cell A1 xRef.xltype = xltypeSRef; xRef.val.sref.count = 1; xRef.val.sref.ref.r...
The issue you are facing with the `xlcFormatNumber` call may stem from several factors, such as incorrect format string, references, or how the parameters are defined. Below is a detailed explanation of how to correctly use the `xlcFormatNumber` function in your context. ### Key Considerations 1. **Format String**: T...
10,279
[ { "from": "human", "value": "I'm trying to set the number format of a cell but the call to xlcFormatNumber fails leaving the cell number format as \"General\". I can successfully set the value of the cell using xlSet.\nXLOPER xRet;\nXLOPER xRef;\n\n//try to set the format of cell A1\nxRef.xltype = xltypeSR...
I'm working on a web-based contest which is supposed to allow anonymous users to vote, but we want to prevent them from voting more than once. IP based limits can be bypassed with anonymous proxies, users can clear cookies, etc. It's possible to use a Silverlight application, which would have access to isolated storage...
Creating an effective system for preventing multiple votes from the same user in an anonymous voting scenario is quite challenging, especially when you want to keep the process as open as possible. Here are some strategies you could consider to reduce the likelihood of multiple votes while maintaining user anonymity: ...
12,689
[ { "from": "human", "value": "I'm working on a web-based contest which is supposed to allow anonymous users to vote, but we want to prevent them from voting more than once. IP based limits can be bypassed with anonymous proxies, users can clear cookies, etc. It's possible to use a Silverlight application, wh...
How can I be notified when someone checks a file into Team System and doesn't associate it with a work item?
To be notified when someone checks a file into Team Foundation Server (TFS) or Azure DevOps (formerly known as Visual Studio Team Services) without associating it with a work item, you can set up alerts using the built-in notification features. Here’s how to do that: ### Set Up Notifications in TFS/Azure DevOps 1. **...
14,098
[ { "from": "human", "value": "How can I be notified when someone checks a file into Team System and doesn't associate it with a work item?\n" }, { "from": "gpt", "value": "To be notified when someone checks a file into Team Foundation Server (TFS) or Azure DevOps (formerly known as Visual Studio ...