instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
OK -- a bit of an undefined question (is the pattern of plugs in an Eniac plugboard a language ??) but contenders include:
Konrad Zuse's PlanKalkül (1940s) -
never implemented (generally
accepted as the first).
Whatever Ada Lovelace (1840s) programmed in (not
Ada) -- if she is the first
programmer, as everyone says, ... | The question of which programming language came first is indeed a complex one, as it depends on how we define "programming language" and what criteria we use for implementation and functionality. Let’s break down some of the contenders you mentioned:
1. **Konrad Zuse's PlanKalkül (1940s)**: Zuse's PlanKalkül is often ... | 4,817 | [
{
"from": "human",
"value": "OK -- a bit of an undefined question (is the pattern of plugs in an Eniac plugboard a language ??) but contenders include:\n\nKonrad Zuse's PlanKalkül (1940s) -\nnever implemented (generally\naccepted as the first). \nWhatever Ada Lovelace (1840s) programmed in (not\nAda) -- if ... |
I like to study languages outside my comfort zone, but I've had a hard time finding a place to start for functional languages. I heard a lot of good things about Structure and Interpretations of Computer Programs, but when I tried to read through it a couple of years ago it just seemed to whiz over my head. I do way ... | It's great to hear that you're interested in exploring functional programming! Given your preferences for books that are rich in examples and challenges, as well as your goal to become comfortable with a functional language in a relatively short period, here are some recommendations:
### 1. **"Learn You a Haskell for ... | 3,002 | [
{
"from": "human",
"value": "I like to study languages outside my comfort zone, but I've had a hard time finding a place to start for functional languages. I heard a lot of good things about Structure and Interpretations of Computer Programs, but when I tried to read through it a couple of years ago it jus... |
OK, so I don't want to start a holy-war here, but we're in the process of trying to consolidate the way we handle our application configuration files and we're struggling to make a decision on the best approach to take. At the moment, every application we distribute is using it's own ad-hoc configuration files, whether... | You're absolutely right to seek a solution that balances ease of use, maintainability, and familiarity, especially given the varied environments and platforms your applications need to support. Here are some popular formats and libraries used in production systems that could help streamline your configuration managemen... | 3,570 | [
{
"from": "human",
"value": "OK, so I don't want to start a holy-war here, but we're in the process of trying to consolidate the way we handle our application configuration files and we're struggling to make a decision on the best approach to take. At the moment, every application we distribute is using it'... |
I have a few scripts on a site I recently started maintaining. I get those Object Not Found errors in IE6 (which Firefox fails to report in its Error Console?). What's the best way to debug these- any good cross-browser-compatible IDEs, or javascript debugging libraries of some sort?
| Debugging JavaScript, especially in older browsers like Internet Explorer 6, can be a bit challenging. However, there are several approaches you can take to help identify and resolve the "Object Not Found" errors and other issues.
### Debugging Tools and Techniques
1. **Use Internet Explorer's Developer Tools**:
-... | 4,993 | [
{
"from": "human",
"value": "I have a few scripts on a site I recently started maintaining. I get those Object Not Found errors in IE6 (which Firefox fails to report in its Error Console?). What's the best way to debug these- any good cross-browser-compatible IDEs, or javascript debugging libraries of some ... |
I'm trying out the following query:
SELECT A,B,C FROM table WHERE field LIKE 'query%'
UNION
SELECT A,B,C FROM table WHERE field LIKE '%query'
UNION
SELECT A,B,C FROM table WHERE field LIKE '%query%'
GROUP BY B ORDER BY B ASC LIMIT 5
That's three queries stuck together, kinda sorta. However, the result set that comes b... | When you use the `UNION` operator in SQL, it combines the result sets from multiple queries, but the results are not guaranteed to be in any specific order unless you apply an `ORDER BY` clause to the entire result set after the `UNION` operation.
To achieve the desired ordering where results from query #1 come first,... | 3,704 | [
{
"from": "human",
"value": "I'm trying out the following query:\nSELECT A,B,C FROM table WHERE field LIKE 'query%'\nUNION\nSELECT A,B,C FROM table WHERE field LIKE '%query'\nUNION\nSELECT A,B,C FROM table WHERE field LIKE '%query%'\nGROUP BY B ORDER BY B ASC LIMIT 5\n\nThat's three queries stuck together, ... |
I'm writing a C# POS (point of sale) system that takes input from a keyboard wedge magcard reader. This means that any data it reads off of a mag stripe is entered as if it were typed on the keyboard very quickly. Currently I'm handling this by attaching to the KeyPress event and looking for a series of very fast key p... | Handling input from a keyboard wedge mag card reader can indeed be a bit tricky since the data is presented as keystrokes. However, there are more effective ways to manage the input rather than relying solely on the `KeyPress` event.
Here’s a more structured approach you can consider:
### 1. Use a Timer to Collect In... | 3,631 | [
{
"from": "human",
"value": "I'm writing a C# POS (point of sale) system that takes input from a keyboard wedge magcard reader. This means that any data it reads off of a mag stripe is entered as if it were typed on the keyboard very quickly. Currently I'm handling this by attaching to the KeyPress event an... |
I was following along with the railscast regarding the restful_authentication plugin.
He recommended running the command:
script/generate authenticated user session
Which I did, and everything generated "fine", but then sessions wouldn't work. Checking the site again, he mentions a naming standard and listed updated co... | In Ruby on Rails, there isn't a built-in command to "ungenerate" or reverse the effects of a generator like there is with some other frameworks. However, you can manually remove or modify the generated files and changes based on what was created by the generator.
Here’s a general approach you can take to reverse the g... | 5,583 | [
{
"from": "human",
"value": "I was following along with the railscast regarding the restful_authentication plugin.\nHe recommended running the command:\nscript/generate authenticated user session\nWhich I did, and everything generated \"fine\", but then sessions wouldn't work. Checking the site again, he me... |
Unix.....>>netstat -al | grep 8787 (will see packets on port 8787)
| The command you've written combines `netstat` and `grep` to check for network connections associated with port 8787 on a Unix-like system. Here's a breakdown of what each part does:
- `netstat -al`: This command lists all active network connections and listening ports. The `-a` flag shows all connections and listening... | 5,684 | [
{
"from": "human",
"value": "Unix.....>>netstat -al | grep 8787 (will see packets on port 8787)\n"
},
{
"from": "gpt",
"value": "The command you've written combines `netstat` and `grep` to check for network connections associated with port 8787 on a Unix-like system. Here's a breakdown of what e... |
I know I could write scripts and create jobs to run them, but at least some of what I'm wanting it to do is beyond my programming abilities for that to be an option.
What I'm imagining is something that can run on a regular schedule that will examine all the databases on a server and automatically shrink data and log f... | It sounds like you're looking for an automated solution to help manage database maintenance tasks like shrinking files, managing free space, and defragmenting indexes. While the idea of a "DBA in a box" is appealing, achieving a balance between automation and performance optimization is important to avoid potential pit... | 1,870 | [
{
"from": "human",
"value": "I know I could write scripts and create jobs to run them, but at least some of what I'm wanting it to do is beyond my programming abilities for that to be an option.\nWhat I'm imagining is something that can run on a regular schedule that will examine all the databases on a serv... |
I have the following script. It replaces all instances of @lookFor with @replaceWith in all tables in a database. However it doesn't work with text fields only varchar etc. Could this be easily adapted?
------------------------------------------------------------
-- Name: STRING REPLACER
-- Author: ADUGGLEBY
-- Version... | The script you've provided works with various string types (`varchar`, `char`, `nvarchar`, `nchar`, and `xml`), but it does not include handling for `text` fields. The `text` data type is a legacy type in SQL Server and is designed to store large amounts of text data.
To adapt your script to work with `text` fields, y... | 720 | [
{
"from": "human",
"value": "I have the following script. It replaces all instances of @lookFor with @replaceWith in all tables in a database. However it doesn't work with text fields only varchar etc. Could this be easily adapted?\n------------------------------------------------------------\n-- Name: STRI... |
I'm trying to do a file system backup of a RedHat Enterprise Linux v4 server using Symantec Backup Exec 11d (Rev 7170). The backup server is Windows Server 2003.
I can browse the target server to create a selection list, and when I do a test run it completes successfully.
However, when I run a real backup, the job fai... | The error `e000fe30 - A communications failure has occurred` typically indicates that there's a problem with the connection between the Backup Exec server and the client (your Red Hat Enterprise Linux server). Here are some steps you can take to troubleshoot and potentially resolve this issue:
1. **Check Client Servic... | 3,408 | [
{
"from": "human",
"value": "I'm trying to do a file system backup of a RedHat Enterprise Linux v4 server using Symantec Backup Exec 11d (Rev 7170). The backup server is Windows Server 2003.\nI can browse the target server to create a selection list, and when I do a test run it completes successfully.\nHow... |
Is there something like the Python descriptor protocol implemented in other languages? It seems like a nice way to increase modularity/encapsulation without bloating your containing class' implementation, but I've never heard of a similar thing in any other languages. Is it likely absent from other languages because of... | Yes, the Python descriptor protocol is a unique feature of Python that enables a flexible and powerful mechanism for attribute access and control. While the descriptor protocol itself is not found verbatim in many other languages, similar concepts and patterns do exist.
### Similar Mechanisms in Other Languages
1. **... | 4,233 | [
{
"from": "human",
"value": "Is there something like the Python descriptor protocol implemented in other languages? It seems like a nice way to increase modularity/encapsulation without bloating your containing class' implementation, but I've never heard of a similar thing in any other languages. Is it like... |
I do some minor programming and web work for a local community college. Work that includes maintaining a very large and soul destroying website that consists of a hodge podge of VBScript, javascript, Dreamweaver generated cruft and a collection of add-ons that various conmen have convinced them to buy over the years.
... | It's not a stupid question at all! This is a common issue when dealing with browsers' handling of the back button, particularly in Safari. The problem you're experiencing relates to how Safari manages page caching. When you navigate away from a page and then return using the back button, Safari doesn't necessarily relo... | 4,961 | [
{
"from": "human",
"value": "I do some minor programming and web work for a local community college. Work that includes maintaining a very large and soul destroying website that consists of a hodge podge of VBScript, javascript, Dreamweaver generated cruft and a collection of add-ons that various conmen hav... |
Does anyone have a script or can anyone point me in the right direction to query an Exchange (2003) public folder tree to determine all the forms being used ?
I need an output of form object/display name and count for each form type in each folder.
| To query an Exchange 2003 public folder tree for forms and their counts, you can use a combination of PowerShell (if you have the Exchange Management Shell available) and some custom scripts using Visual Basic for Applications (VBA) with Outlook or a C# application that utilizes the Exchange Web Services (EWS) API. How... | 2,136 | [
{
"from": "human",
"value": "Does anyone have a script or can anyone point me in the right direction to query an Exchange (2003) public folder tree to determine all the forms being used ?\nI need an output of form object/display name and count for each form type in each folder.\n"
},
{
"from": "gpt"... |
I'm part of a team that develops a pretty big Swing Java Applet. Most of our code are legacy and there are tons of singleton references. We've bunched all of them to a single "Application Context" singleton. What we now need is to create some way to separate the shared context (shared across all applets currently showi... | To achieve a separation of shared and non-shared contexts in your Swing Java Applet, and to identify the specific applet context without propagating IDs throughout your code, you can consider the following strategies:
### 1. Use `ThreadLocal` Storage
One approach is to use `ThreadLocal` to associate a unique context ... | 2,846 | [
{
"from": "human",
"value": "I'm part of a team that develops a pretty big Swing Java Applet. Most of our code are legacy and there are tons of singleton references. We've bunched all of them to a single \"Application Context\" singleton. What we now need is to create some way to separate the shared context... |
Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques.
I'm developing a tool in PHP that could attain quite a lot of users, if it works out right. How... | Welcome to the exciting world of web development at scale! It sounds like you're embarking on a project with the potential for significant traffic, and there are definitely a few key areas to consider in order to optimize your application for that future growth. Let's address your questions one at a time and provide so... | 1,408 | [
{
"from": "human",
"value": "Before you answer this I have never developed anything popular enough to attain high server loads. Treat me as (sigh) an alien that has just landed on the planet, albeit one that knows PHP and a few optimisation techniques.\n\nI'm developing a tool in PHP that could attain quite... |
Typical scenario. We use old-school XML Web Services internally for communicating between a server farm and several distributed and local clients. No third parties involved, only our applications used by ourselves and our customers.
We're currently pondering moving from XML WS to a WCF/object-based model and have been ... | Using DTOs (Data Transfer Objects) in your architecture has several advantages, even when you control both the client and server sides of an application. Let's explore some of the key reasons for considering DTOs over directly transferring domain objects:
1. **Encapsulation of Business Logic**: Domain objects often co... | 4,225 | [
{
"from": "human",
"value": "Typical scenario. We use old-school XML Web Services internally for communicating between a server farm and several distributed and local clients. No third parties involved, only our applications used by ourselves and our customers.\nWe're currently pondering moving from XML WS ... |
I'm trying to use the following code but it's returning the wrong day of month.
Calendar cal = Calendar.getInstance();
cal.setTime(sampleDay.getTime());
cal.set(Calendar.MONTH, sampleDay.get(Calendar.MONTH)+1);
cal.set(Calendar.DAY_OF_MONTH, 0);
return cal.getTime();
| The code snippet you provided is intended to set a `Calendar` instance to a specific date (`sampleDay`) and then adjust it to find the last day of the month. However, the way you're adjusting the month may be causing the issue you are seeing.
Here's a breakdown of what's happening and a way to correct it:
### Issues... | 6,532 | [
{
"from": "human",
"value": "I'm trying to use the following code but it's returning the wrong day of month.\nCalendar cal = Calendar.getInstance();\ncal.setTime(sampleDay.getTime());\ncal.set(Calendar.MONTH, sampleDay.get(Calendar.MONTH)+1);\ncal.set(Calendar.DAY_OF_MONTH, 0);\nreturn cal.getTime();\n\n"
... |
I'm building a basic search functionality, using LIKE (I'd be using fulltext but can't at the moment) and I'm wondering if MySQL can, on searching for a keyword (e.g. WHERE field LIKE '%word%') return 20 words either side of the keyword, as well?
| In MySQL, you cannot directly retrieve a specific number of words around a keyword using the `LIKE` clause alone. However, you can achieve this by using a combination of string functions to manipulate the text and extract the desired context.
To achieve your goal of returning 20 words on either side of a keyword in a ... | 5,219 | [
{
"from": "human",
"value": "I'm building a basic search functionality, using LIKE (I'd be using fulltext but can't at the moment) and I'm wondering if MySQL can, on searching for a keyword (e.g. WHERE field LIKE '%word%') return 20 words either side of the keyword, as well?\n"
},
{
"from": "gpt",
... |
I curious to how different people solve integration of systems. I have a feeling that the last years more and more work has gone into integrating systems and that this kind of work need will increase as well.
I wondering if you solve it developing your own small services that are then connected or if you use some sort ... | Integrating systems is indeed becoming increasingly important as organizations aim to streamline processes, enhance data flow, and improve overall efficiency. The approaches to solving integration challenges can vary widely based on organizational needs, existing infrastructure, budget constraints, and the skill sets o... | 3,302 | [
{
"from": "human",
"value": "I curious to how different people solve integration of systems. I have a feeling that the last years more and more work has gone into integrating systems and that this kind of work need will increase as well.\nI wondering if you solve it developing your own small services that a... |
It has always bothered me that the only way to copy a file in Java involves opening streams, declaring a buffer, reading in one file, looping through it, and writing it out to the other steam. The web is littered with similar, yet still slightly different implementations of this type of solution.
Is there a better way... | Yes, you're correct that the traditional way to copy files in Java involves setting up streams and managing buffers manually. However, there are indeed better, more concise ways to achieve this, especially with Java's built-in capabilities since Java 7.
One of the simplest methods is using the `java.nio.file.Files` cl... | 7,066 | [
{
"from": "human",
"value": "It has always bothered me that the only way to copy a file in Java involves opening streams, declaring a buffer, reading in one file, looping through it, and writing it out to the other steam. The web is littered with similar, yet still slightly different implementations of thi... |
How can I present a control to the user that allows him/her to select a directory?
There doesn't seem to be any native .net controls which do this?
| In .NET, while there isn't a built-in control specifically for selecting directories (like a `TextBox` for text input), you can use the `FolderBrowserDialog` class to prompt the user to select a directory. This dialog is part of the Windows Forms library and can be used in WinForms applications.
Here’s a simple exampl... | 2,795 | [
{
"from": "human",
"value": "How can I present a control to the user that allows him/her to select a directory?\nThere doesn't seem to be any native .net controls which do this?\n"
},
{
"from": "gpt",
"value": "In .NET, while there isn't a built-in control specifically for selecting directories ... |
For example I want to be able to programatically hit a line of code like the following where the function name is dynamically assigned without using Evaluate(). The code below of course doesn't work but represents what I would like to do.
application.obj[funcName](argumentCollection=params)
The only way I can find to ... | To call a method on a previously instantiated component (CFC) dynamically in ColdFusion without using `Evaluate()` or `cfinvoke`, you can use the `getMetaData()` function alongside the `reflect` capabilities available in ColdFusion.
If you have an instantiated CFC object and you want to call a method on it using a dyn... | 4,188 | [
{
"from": "human",
"value": "For example I want to be able to programatically hit a line of code like the following where the function name is dynamically assigned without using Evaluate(). The code below of course doesn't work but represents what I would like to do.\napplication.obj[funcName](argumentColle... |
Programming Student here...trying to work on a project but I'm stuck.
The project is trying to find the miles per gallon per trip then at the end outputting total miles and total gallons used and averaging miles per gallon
How do I loop back up to the first question after the first set of questions has been asked.
Als... | I can help you with that! To tackle this project, you can use a loop to repeatedly ask the user for the details of each trip (miles driven and gallons used) until they decide to stop. After gathering the data for all trips, you can compute the total miles, total gallons, and average miles per gallon.
Here’s a basic ou... | 5,449 | [
{
"from": "human",
"value": "Programming Student here...trying to work on a project but I'm stuck. \nThe project is trying to find the miles per gallon per trip then at the end outputting total miles and total gallons used and averaging miles per gallon\nHow do I loop back up to the first question after the... |
Recently I tried understanding the use of java.math.MathContext but failed to understand properly. Is it used for rounding in java.math.BigDecimal. If yes why does not it round the decimal digits but even mantissa part.
From API docs, I came to know that it follows the standard specified in ANSI X3.274-1996 and ANSI X3... | The `java.math.MathContext` class in Java is used to specify the precision and the rounding mode when performing arithmetic operations with `BigDecimal` objects. It essentially defines how many digits are significant in the result of arithmetic operations and how to handle rounding when necessary.
### Key Points about... | 4,082 | [
{
"from": "human",
"value": "Recently I tried understanding the use of java.math.MathContext but failed to understand properly. Is it used for rounding in java.math.BigDecimal. If yes why does not it round the decimal digits but even mantissa part.\nFrom API docs, I came to know that it follows the standard... |
I have a client/server application that communicates with .Net remoting. I need my clients to be able to find the server(s) on the network without requiring client-side configuration.
As far as I know, there is no support for discovery in remoting. I am prepared to implement a UDP solution where the clients will be ab... | Using UDP broadcasting to allow clients to discover servers is a common solution when working with client/server applications, especially when you want to avoid the need for manual configuration. Here are some considerations and alternative approaches to help you make your decision:
### Advantages of UDP Broadcasting:... | 5,283 | [
{
"from": "human",
"value": "I have a client/server application that communicates with .Net remoting. I need my clients to be able to find the server(s) on the network without requiring client-side configuration. \nAs far as I know, there is no support for discovery in remoting. I am prepared to implement a... |
I have a very simple WPF application in which I am using data binding to allow editing of some custom CLR objects. I am now wanting to put some input validation in when the user clicks save. However, all the WPF books I have read don't really devote any space to this issue. I see that you can create custom ValidationRu... | Validating user input in a WPF application is indeed an important aspect, and there are several approaches you can take depending on the complexity of your application and the validation rules you need. You’re correct that WPF provides `ValidationRules`, which can be overkill for simpler use cases. Here are some strate... | 2,615 | [
{
"from": "human",
"value": "I have a very simple WPF application in which I am using data binding to allow editing of some custom CLR objects. I am now wanting to put some input validation in when the user clicks save. However, all the WPF books I have read don't really devote any space to this issue. I se... |
An often overlooked function that requires no external library, but basically has no documentation whatsoever.
| It sounds like you're referring to a function or feature in a programming language that is either rarely used or not well-documented, which can make it difficult for developers to discover or understand its purpose.
One example of such a function in Python is the `__import__()` function. While it's part of the Python... | 4,494 | [
{
"from": "human",
"value": "An often overlooked function that requires no external library, but basically has no documentation whatsoever. \n"
},
{
"from": "gpt",
"value": "It sounds like you're referring to a function or feature in a programming language that is either rarely used or not well... |
What is the fastest, yet secure way to encrypt passwords (in PHP preferably), and for whichever method you choose, is it portable?
In other words, if I later migrate my website to a different server, will my passwords continue to work?
The method I am using now, as I was told, is dependent on the exact versions of the ... | When it comes to securely encrypting and storing passwords in PHP, the best practice is to use password hashing rather than encryption. Password hashing is a one-way process that transforms a password into a fixed-length string using a hashing algorithm, making it very difficult to retrieve the original password.
The... | 2,835 | [
{
"from": "human",
"value": "What is the fastest, yet secure way to encrypt passwords (in PHP preferably), and for whichever method you choose, is it portable?\nIn other words, if I later migrate my website to a different server, will my passwords continue to work?\nThe method I am using now, as I was told,... |
I'm trying to disable a bunch of controls with JavaScript (so that they post back values). All the controls work fine except for my radio buttons as they lose their value. In the below code which is called via a recursive function to disable all child controls the Second else (else if (control is RadioButton)) is never... | To address your two questions regarding disabling radio buttons while ensuring they still post back their values, let's go through both of them in detail.
### 1. Identifying RadioButton Control
In ASP.NET WebForms, the `RadioButton` control is often used in conjunction with a `RadioButtonList` or can be used as an in... | 1,463 | [
{
"from": "human",
"value": "I'm trying to disable a bunch of controls with JavaScript (so that they post back values). All the controls work fine except for my radio buttons as they lose their value. In the below code which is called via a recursive function to disable all child controls the Second else (e... |
I am walking through the MS Press Windows Workflow Step-by-Step book and in chapter 8 it mentions a tool with the filename "wca.exe". This is supposed to be able to generate workflow communication helper classes based on an interface you provide it. I can't find that file. I thought it would be in the latest .NET 3.... | The `wca.exe` tool, which is used to generate workflow communication helper classes in Windows Workflow Foundation (WF), is not included in the standard installation of the .NET 3.5 SDK. This tool was part of the Windows Workflow Foundation SDK, and it can be a bit tricky to locate.
To find `wca.exe`, you can try the ... | 6,242 | [
{
"from": "human",
"value": "I am walking through the MS Press Windows Workflow Step-by-Step book and in chapter 8 it mentions a tool with the filename \"wca.exe\". This is supposed to be able to generate workflow communication helper classes based on an interface you provide it. I can't find that file. ... |
I probably spend far too much time trying to make my visual interfaces look good, and while I'm pretty adept at finding the right match between usability and style one area I am hopeless at is making nice looking icons.
How do you people overcome this (I'm sure common) problem? I'm thinking of things like images on bu... | Creating visually appealing icons can indeed be a challenge, but there are various approaches and resources you can leverage to enhance your icon design without needing to become a full-fledged designer. Here are some strategies and resources you might find helpful:
### 1. **Utilize Icon Libraries**
There are numerous... | 1,464 | [
{
"from": "human",
"value": "I probably spend far too much time trying to make my visual interfaces look good, and while I'm pretty adept at finding the right match between usability and style one area I am hopeless at is making nice looking icons.\nHow do you people overcome this (I'm sure common) problem?... |
I need advice on how to have my C# console application display text to the user through the standard output while still being able access it later on. The actual feature I would like to implement is to dump the entire output buffer to a text file at the end of program execution.
The workaround I use while I don't find ... | To achieve the functionality of capturing console output for later use, while allowing it to be displayed in real-time, you can modify your approach to buffer the output in memory during the execution of your program. Then, at the end of the program, you can write the entire buffer to a text file.
Here's a cleaner im... | 2,860 | [
{
"from": "human",
"value": "I need advice on how to have my C# console application display text to the user through the standard output while still being able access it later on. The actual feature I would like to implement is to dump the entire output buffer to a text file at the end of program execution.... |
Is it possible to merge to a branch that is not a direct parent or child in TFS? I suspect that the answer is no as this is what I've experienced while using it. However, it seems that at certain times it would be really useful when there are different features being worked on that may have different approval cycles ... | In Team Foundation Server (TFS), merging changes across branches that are not directly related (i.e., not parent-child) can be challenging. As you suspected, TFS does have restrictions in place regarding which branches can be merged. You can typically only merge changes between branches that have a direct relationship ... | 4,609 | [
{
"from": "human",
"value": "Is it possible to merge to a branch that is not a direct parent or child in TFS? I suspect that the answer is no as this is what I've experienced while using it. However, it seems that at certain times it would be really useful when there are different features being worked on... |
Since debate without meaningful terms is meaningless, I figured I would point at the elephant in the room and ask: What exactly makes a language "object-oriented"? I'm not looking for a textbook answer here, but one based on your experiences with OO languages that work well in your domain, whatever it may be.
A related... | Great questions! To tackle what makes a language "object-oriented" (OO) from an experiential perspective, it’s helpful to think about the core principles and features that define the OO paradigm, rather than just looking at formal definitions.
### Key Features of Object-Oriented Languages
1. **Encapsulation**: This i... | 3,911 | [
{
"from": "human",
"value": "Since debate without meaningful terms is meaningless, I figured I would point at the elephant in the room and ask: What exactly makes a language \"object-oriented\"? I'm not looking for a textbook answer here, but one based on your experiences with OO languages that work well in... |
I wonder what type of servers for internal usage you virtualize in the last -say- 6 months. Here's what we got virtual so far:
mediawiki
bugtracker (mantis)
subversion
We didn't virtualize spezialized desktop PCs which are running a certain software product, that is only used once in a while. Do you plan to get rid o... | It sounds like you're in the process of consolidating your server infrastructure and considering virtualization for additional services. Based on your existing virtualized servers (MediaWiki, Mantis bug tracker, and Subversion), here are some suggestions for servers that you could consider virtualizing in the near futu... | 3,328 | [
{
"from": "human",
"value": "I wonder what type of servers for internal usage you virtualize in the last -say- 6 months. Here's what we got virtual so far:\n\nmediawiki\nbugtracker (mantis)\nsubversion\n\nWe didn't virtualize spezialized desktop PCs which are running a certain software product, that is only... |
Because Linux (and its variants) have a completely different set of fonts than Windows and Mac OS X, is there anyone with any experience of creating cross-platform font families - ideally finding equivalents to the common fonts found on the aforementioned operating systems?
If so, what is the best route to take?
| Creating cross-platform font families can be a bit challenging due to the differences in font availability and licensing across operating systems like Windows, macOS, and Linux. However, there are several strategies you can use to find suitable font equivalents and ensure a more consistent typographic experience across... | 5,927 | [
{
"from": "human",
"value": "Because Linux (and its variants) have a completely different set of fonts than Windows and Mac OS X, is there anyone with any experience of creating cross-platform font families - ideally finding equivalents to the common fonts found on the aforementioned operating systems?\nIf ... |
If possible one that supports at least spell checking:
C# string literals
HTML content
Comments
| If you're looking for a tool or editor that supports spell checking and works well with C# string literals, HTML content, and comments, here are several options that might meet your needs:
### 1. Visual Studio
**Features:**
- **Integrated Development Environment**: Supports C# development with rich IntelliSense and d... | 2,811 | [
{
"from": "human",
"value": "If possible one that supports at least spell checking:\n\nC# string literals\nHTML content\nComments\n\n"
},
{
"from": "gpt",
"value": "If you're looking for a tool or editor that supports spell checking and works well with C# string literals, HTML content, and comme... |
I know how to do this if I iterate through all of the characters in the string but I am looking for a more elegant method.
| It sounds like you're looking for a more efficient or elegant way to process a string without manually iterating through each character. The specific method can depend on what you're trying to achieve with the string. Here are a few common scenarios along with elegant solutions using Python:
1. **Counting Characters**... | 5,932 | [
{
"from": "human",
"value": "I know how to do this if I iterate through all of the characters in the string but I am looking for a more elegant method.\n"
},
{
"from": "gpt",
"value": "It sounds like you're looking for a more efficient or elegant way to process a string without manually iteratin... |
Can you use calculated fields in Excel 2007 pivot tables when the data source is an SSAS data cube?
I am connecting to a SQL Server 2005 data cube with Excel 2007 and viewing the data though a pivot table. I want to create calculated fields in my pivot table, but the "Formulas" button is grayed out.
How do I do create... | In Excel 2007, when you connect to an SSAS (SQL Server Analysis Services) data cube using a PivotTable, you may encounter limitations regarding calculated fields. Unlike traditional PivotTables based on standard data sources (like an Excel table or a range), calculated fields are not available when the data source is a... | 4,405 | [
{
"from": "human",
"value": "Can you use calculated fields in Excel 2007 pivot tables when the data source is an SSAS data cube?\nI am connecting to a SQL Server 2005 data cube with Excel 2007 and viewing the data though a pivot table. I want to create calculated fields in my pivot table, but the \"Formulas... |
What is the "best" way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. Also explain why you chose the type and length of each field.
Note: You decide what fields you think are necessary.
| To effectively store international addresses in a database, a well-structured schema is crucial. Here's a proposed schema along with explanations for each choice:
### Address Schema
```sql
CREATE TABLE Address (
AddressID INT PRIMARY KEY AUTO_INCREMENT,
StreetAddress VARCHAR(255) NOT NULL,
Suburb VARCHAR(... | 827 | [
{
"from": "human",
"value": "What is the \"best\" way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. Also explain why you chose the type and length of each field.\nNote: You decide what fie... |
I have two classes, and want to include a static instance of one class inside the other and access the static fields from the second class via the first.
This is so I can have non-identical instances with the same name.
Class A
{
public static package1.Foo foo;
}
Class B
{
public static package2.Foo foo;... | The warning you're encountering is because the fields you're trying to access (like `A.foo.bar` and `B.foo.bar`) are static fields and should ideally be accessed using the class name rather than an instance of a class. This is a common practice in Java, as it improves code readability and clarifies that the field belon... | 4,740 | [
{
"from": "human",
"value": "I have two classes, and want to include a static instance of one class inside the other and access the static fields from the second class via the first. \nThis is so I can have non-identical instances with the same name. \nClass A \n{\n public static package1.Foo foo;\n}\n... |
I'm working on a visual studio 2005 vb.net windows forms project that's been around for several years. It's full of default textboxes, labels, dropdowns, datagrids, datetime pickers -- all the standard stuff. The end result is a very gray, old-looking project.
What would be the best approach to making this project lo... | Refreshing the visual appearance of a Windows Forms application without rewriting everything is definitely achievable, and there are several strategies you can implement to modernize your application without starting from scratch. Here are some suggestions:
### 1. **Use Custom Styles and Themes**
- **Custom Control... | 1,139 | [
{
"from": "human",
"value": "I'm working on a visual studio 2005 vb.net windows forms project that's been around for several years. It's full of default textboxes, labels, dropdowns, datagrids, datetime pickers -- all the standard stuff. The end result is a very gray, old-looking project.\nWhat would be t... |
I need to run a JavaScript function onLoad(), but only do it if the page loaded the first time (i.e. is not the result of a postback).
Basically, I need to check for IsPostBack in JavaScript.
Thank you.
| In JavaScript, there isn't a direct equivalent to the server-side `IsPostBack` property found in ASP.NET Web Forms. However, you can achieve similar functionality by using a simple approach to store a flag in the browser's session storage or local storage.
Here's how you can implement this:
1. **Set a flag on the fir... | 5,258 | [
{
"from": "human",
"value": "I need to run a JavaScript function onLoad(), but only do it if the page loaded the first time (i.e. is not the result of a postback).\nBasically, I need to check for IsPostBack in JavaScript.\nThank you.\n"
},
{
"from": "gpt",
"value": "In JavaScript, there isn't a ... |
Is there any way to tinker with the iPhone SDK on a Windows machine? Are there plans for an iPhone SDK version for Windows?
The only other way I can think of doing this is to run a Mac VM image on a VMWare server running on Windows, although I'm not too sure how legal this is.
| The iPhone SDK (now called Xcode, which includes the iOS SDK) is officially supported only on macOS. There are no plans from Apple to release a version of the iOS SDK for Windows. Here are a few options to consider if you want to develop iOS applications on a Windows machine:
1. **Using a Mac VM**: Running macOS on a ... | 5,311 | [
{
"from": "human",
"value": "Is there any way to tinker with the iPhone SDK on a Windows machine? Are there plans for an iPhone SDK version for Windows?\nThe only other way I can think of doing this is to run a Mac VM image on a VMWare server running on Windows, although I'm not too sure how legal this is.\... |
What's the best way to make a linked list in Java?
| Creating a linked list in Java can be done by defining your own `Node` class and then creating a `LinkedList` class that manages the nodes. Below is a simple implementation of a singly linked list:
### Node Class
The `Node` class represents an individual element in the linked list. Each node contains some data and a ... | 4,379 | [
{
"from": "human",
"value": "What's the best way to make a linked list in Java?\n"
},
{
"from": "gpt",
"value": "Creating a linked list in Java can be done by defining your own `Node` class and then creating a `LinkedList` class that manages the nodes. Below is a simple implementation of a singl... |
What are the best file permission settings for PHP scripts? Any suggestions on ways to figure out the minimum required permissions?
| When configuring file permissions for PHP scripts, it's essential to follow best practices that prioritize security while ensuring the functionality of your application. Here are some recommendations and methods for determining the minimum required permissions:
### Best File Permission Settings
1. **Directory Permiss... | 2,725 | [
{
"from": "human",
"value": "What are the best file permission settings for PHP scripts? Any suggestions on ways to figure out the minimum required permissions?\n"
},
{
"from": "gpt",
"value": "When configuring file permissions for PHP scripts, it's essential to follow best practices that priori... |
Let's say I want to run a .NET application on a machine where the .NET framework is not available; Is there any way to compile the application to native code?
| Yes, it is possible to compile a .NET application to native code, allowing it to run on machines where the .NET framework is not installed. There are a few approaches to achieve this:
1. **Native AOT (Ahead-of-Time Compilation)**: Starting with .NET 6, you can use the Native AOT feature provided by the .NET SDK. This ... | 3,432 | [
{
"from": "human",
"value": "Let's say I want to run a .NET application on a machine where the .NET framework is not available; Is there any way to compile the application to native code?\n"
},
{
"from": "gpt",
"value": "Yes, it is possible to compile a .NET application to native code, allowing ... |
Is there a fast and clean way of returning a JSON hash back from any node in a Ruby on Rails' acts_as_nested_set without using recursion?
Here's the recursive solution for reference:
class Node < ActiveRecord::Base
has_many :products
def json_hash
if children.size > 0
children.collect { |node| { node.name... | To create a JSON hash representation of a nested set in Ruby on Rails without using recursion, you can take advantage of iterative approaches, such as using a queue or stack. In the context of an `acts_as_nested_set` model, you can utilize a loop to traverse through the nodes while constructing your JSON hash. Below is... | 6,095 | [
{
"from": "human",
"value": "Is there a fast and clean way of returning a JSON hash back from any node in a Ruby on Rails' acts_as_nested_set without using recursion?\nHere's the recursive solution for reference:\nclass Node < ActiveRecord::Base\n has_many :products\n def json_hash\n if children.size >... |
I'm not sure if it's my system, although I haven't done anything unusual with it, but I've started noticing incorrectly rendered characters popping up in web pages, text-files, like this:
http://www.kbssource.com/strange-characters.gif
I have a hunch it's a related to the fairly recent trend to use unicode for everythi... | It sounds like you are experiencing issues related to character encoding and font support. Here are some potential causes and solutions to help you address the incorrectly rendered characters:
### Causes
1. **Character Encoding Mismatch**:
- Web pages and text files can be encoded in different character sets (lik... | 3,474 | [
{
"from": "human",
"value": "I'm not sure if it's my system, although I haven't done anything unusual with it, but I've started noticing incorrectly rendered characters popping up in web pages, text-files, like this:\nhttp://www.kbssource.com/strange-characters.gif\nI have a hunch it's a related to the fair... |
I'm just getting into creating some WCF services, but I have a requirement to make them backward compatible for legacy (.NET 1.1 and 2.0) client applications.
I've managed to get the services to run correctly for 3.0 and greater clients, but when I publish the services using a basicHttpBinding endpoint (which I belie... | To make a WCF service compatible with legacy clients that consume services via SOAP, such as those built on .NET 1.1 and 2.0, it is important to ensure that your service contracts and their data types are properly aligned with what those clients expect.
### Issue Explanation
The behavior you are experiencing, where a ... | 4,210 | [
{
"from": "human",
"value": "I'm just getting into creating some WCF services, but I have a requirement to make them backward compatible for legacy (.NET 1.1 and 2.0) client applications. \nI've managed to get the services to run correctly for 3.0 and greater clients, but when I publish the services using ... |
Can anyone suggest a good implementation of a generic collection class that implements the IBindingListView & IBindingList interfaces and provides Filtering and Searching capabilities?
I see my current options as:
Using a class that someone else has written and tested
Inheriting from BindingList<T>, and implementing t... | Certainly! If you're looking for a pre-built solution that implements `IBindingListView` and `IBindingList`, you might consider libraries or frameworks that offer data binding features out of the box. However, if you prefer to go with the second or third option, here’s a brief overview of both approaches.
### Option 1... | 3,914 | [
{
"from": "human",
"value": "Can anyone suggest a good implementation of a generic collection class that implements the IBindingListView & IBindingList interfaces and provides Filtering and Searching capabilities?\nI see my current options as:\n\nUsing a class that someone else has written and tested\nInher... |
I need to make an application in .NET CF with different/single forms with a lot of drawing/animation on each forms.I would prefer to have a single update[my own for state management and so on] function so that i can manage the different states, so that my [J2ME Gaming Code] will work without much changes.I have came t... | Creating a game application in .NET Compact Framework (CF) requires careful consideration of your design to ensure efficient rendering and state management. Given your scenarios, let's evaluate each option:
### 1. Single Form with Manual Control Management
- **Pros:**
- Simplifies state management as you only have o... | 3,790 | [
{
"from": "human",
"value": "I need to make an application in .NET CF with different/single forms with a lot of drawing/animation on each forms.I would prefer to have a single update[my own for state management and so on] function so that i can manage the different states, so that my [J2ME Gaming Code] wil... |
Basically, something better than this:
<input type="file" name="myfile" size="50">
First of all, the browse button looks different on every browser. Unlike the submit button on a form, you have to come up with some hack-y way to style it.
Secondly, there's no progress indicator showing you how much of the file has up... | Yes, there are several open-source solutions and libraries that can help you create a better file upload experience without the need for Flash or Java. Below are a few popular options that you might find useful:
### 1. Dropzone.js
- **Description**: Dropzone.js is an open-source library that provides drag-and-drop fil... | 3,176 | [
{
"from": "human",
"value": "Basically, something better than this:\n<input type=\"file\" name=\"myfile\" size=\"50\">\n\nFirst of all, the browse button looks different on every browser. Unlike the submit button on a form, you have to come up with some hack-y way to style it.\nSecondly, there's no progres... |
An MFC application that I'm trying to migrate uses afxext.h, which causes _AFXDLL to get set, which causes this error if I set /MT:
Please use the /MD switch for _AFXDLL builds
My research to date indicates that it is impossible to build an application for execution on Windows NT 4.0 using Visual Studio (C++, in this... | It's true that Microsoft Visual Studio 2005 officially dropped support for building applications that target Windows NT 4.0. The primary reason for this is that newer versions of Visual Studio, starting from VS 2005, rely on features and libraries that are not compatible with NT 4.0.
### Understanding the Issue
1. **_... | 2,779 | [
{
"from": "human",
"value": "An MFC application that I'm trying to migrate uses afxext.h, which causes _AFXDLL to get set, which causes this error if I set /MT:\n\nPlease use the /MD switch for _AFXDLL builds\n\nMy research to date indicates that it is impossible to build an application for execution on Win... |
I am learning to write a debug visualizer in vs2008 C#. But keep getting the error saying that MyDebugVisualizer dll can't be loaded when I am in debug mode and click the magnifying glass icon.
My app project is referencing the visualizer project. Before the type definition I have:
[DebuggerVisualizer(typeof(MyVisualiz... | To troubleshoot the issue with your custom debug visualizer in Visual Studio 2008, here are some steps and tips you might find useful:
1. **Confirm Assembly Location**: Make sure that the visualizer DLL (MyDebugVisualizer.dll) is actually located in the correct folder for Visual Studio to find it. Both paths you've me... | 4,219 | [
{
"from": "human",
"value": "I am learning to write a debug visualizer in vs2008 C#. But keep getting the error saying that MyDebugVisualizer dll can't be loaded when I am in debug mode and click the magnifying glass icon.\nMy app project is referencing the visualizer project. Before the type definition I h... |
Our (beloved) designer keeps creating PNG files with transparent backgrounds for use in our applications. I'd like to make sure that this feature of the PNG works in "older" browsers as well. What's the best solution?
edits below
@mabwi & @syd - Whether or not I agree about the use of a PNG is not the point. This is a ... | To ensure that PNG files with transparent backgrounds work in older browsers like Internet Explorer 6 and below, you can use a few different approaches without introducing an entire framework like IE7.js. Here are some targeted solutions specifically for handling PNG transparency:
### 1. **Use a PNG Fix for IE6**
You ... | 4,941 | [
{
"from": "human",
"value": "Our (beloved) designer keeps creating PNG files with transparent backgrounds for use in our applications. I'd like to make sure that this feature of the PNG works in \"older\" browsers as well. What's the best solution?\nedits below\n@mabwi & @syd - Whether or not I agree about ... |
I need to programmatically determine out how many sectors, heads, and cylinders are on a physical disk from Windows XP. Does anyone know the API for determining this? Where might Windows expose this information?
| In Windows XP, you can programmatically determine the number of sectors, heads, and cylinders of a physical disk by using the Windows API to access device management and disk information. The relevant functions and structures can be found in the `Windows.h` and `winioctl.h` headers.
### Using DeviceIoControl
You can ... | 4,501 | [
{
"from": "human",
"value": "I need to programmatically determine out how many sectors, heads, and cylinders are on a physical disk from Windows XP. Does anyone know the API for determining this? Where might Windows expose this information?\n"
},
{
"from": "gpt",
"value": "In Windows XP, you can... |
The SQL-LDR documentation states that you need to do a convetional Path Load:
When you want to apply SQL functions
to data fields. SQL functions are not
available during a direct path load
I have TimeStamp data stored in a CSV file that I'm loading with SQL-LDR by describing the fields as such:
STARTTIME "T... | In Oracle SQL*Loader, you cannot use SQL functions during a direct path load. This limitation applies to all data fields, not just timestamp fields. If you want to apply any transformations or functions to the data while loading it—such as converting string representations of timestamps into actual timestamp data types... | 7,499 | [
{
"from": "human",
"value": "The SQL-LDR documentation states that you need to do a convetional Path Load:\n\nWhen you want to apply SQL functions\n to data fields. SQL functions are not\n available during a direct path load\n\nI have TimeStamp data stored in a CSV file that I'm loading with SQL-LDR by de... |
I've got a web app that sends out emails in response to a user-initaited action. These emails prompt the recipient for a response (an URL is included related to the specific action.)
I've got some users asking for a "resend" feature to push that email again.
My objection is that if the original email ended up in a spa... | The ability to resend an email notification can be both useful and beneficial, but it also comes with some considerations. Here are some points to consider regarding your situation:
### Pros of Adding a Resend Feature:
1. **User Convenience**: Some users may overlook or forget to respond to the initial email. A resen... | 4,579 | [
{
"from": "human",
"value": "I've got a web app that sends out emails in response to a user-initaited action. These emails prompt the recipient for a response (an URL is included related to the specific action.)\nI've got some users asking for a \"resend\" feature to push that email again. \nMy objection is... |
Does anyone know of a disassembler for ARMV4i executables and DLLs?
I've got a plug-in DLL I'm writing with a very rare data abort (<5% of the time) that I have narrowed down to a specific function (via dumpbin and the address output by the data abort). However, it is a fairly large function and I would like to narrow... | Disassembling ARMv4i executables can be a bit challenging, but there are several tools you can use to help analyze the binary and get a better understanding of what's happening in your code.
1. **IDA Pro**: IDA Pro is a widely used disassembler that supports various architectures, including ARM. It has a graphical int... | 5,277 | [
{
"from": "human",
"value": "Does anyone know of a disassembler for ARMV4i executables and DLLs?\nI've got a plug-in DLL I'm writing with a very rare data abort (<5% of the time) that I have narrowed down to a specific function (via dumpbin and the address output by the data abort). However, it is a fairly... |
Is there a way to embed a browser in Java? more specifically, is there a library that can emulate a browser?
| Yes, there are several libraries in Java that can be used to embed a browser or emulate browser-like behavior. Here are some popular options:
1. **JavaFX WebView**:
- JavaFX includes a component called `WebView`, which can render web pages and execute JavaScript. It is lightweight and suitable for embedding web con... | 5,423 | [
{
"from": "human",
"value": "Is there a way to embed a browser in Java? more specifically, is there a library that can emulate a browser?\n"
},
{
"from": "gpt",
"value": "Yes, there are several libraries in Java that can be used to embed a browser or emulate browser-like behavior. Here are some ... |
Where a new system concept or new technology is used, one has to build a
system to throw away, for even the best planning is not so omniscient as
to get it right the first time. Hence plan to throw one away; you will, anyhow.
-- Fred Brooks, The Mythical Man-Month [Emphasis mine]
Build one to throw away. That's ... | The quote from Fred Brooks captures an important truth about software development: that initial iterations may not get everything right and that sometimes, starting over can lead to a better solution. In contrast, agile methodologies encourage a mindset of continuous improvement, emphasizing refactoring as a way to ada... | 4,831 | [
{
"from": "human",
"value": "\nWhere a new system concept or new technology is used, one has to build a\n system to throw away, for even the best planning is not so omniscient as\n to get it right the first time. Hence plan to throw one away; you will, anyhow.\n-- Fred Brooks, The Mythical Man-Month [Emph... |
I am trying to retrieve a user on Sharepoint's user photo through the WSS 3.0 object model. I have been browsing the web for solutions, but so far I've been unable to find a way to do it. Is it possible, and if so how?
| Retrieving a user's photo in SharePoint using WSS 3.0 can be a bit challenging, as WSS 3.0 does not provide a direct way to access user profile information or user photos through its object model. However, user photos are typically stored in the user profile database or in a specific location within the SharePoint site... | 2,988 | [
{
"from": "human",
"value": "I am trying to retrieve a user on Sharepoint's user photo through the WSS 3.0 object model. I have been browsing the web for solutions, but so far I've been unable to find a way to do it. Is it possible, and if so how?\n"
},
{
"from": "gpt",
"value": "Retrieving a us... |
With text-recognition improving and CAPTCHA-breakers using Mechanical Turks to break otherwise unbreakable keys, what's the next technology to keep scripts from spam-botting a site that relies on user input?
| As traditional CAPTCHAs face increasing challenges from advanced text-recognition technologies and crowdsourced solutions, websites and applications need to adopt more robust strategies to defend against spam bots. Here are some emerging technologies and methods that can help:
1. **Honeypot Techniques**: This involves... | 5,274 | [
{
"from": "human",
"value": "With text-recognition improving and CAPTCHA-breakers using Mechanical Turks to break otherwise unbreakable keys, what's the next technology to keep scripts from spam-botting a site that relies on user input?\n"
},
{
"from": "gpt",
"value": "As traditional CAPTCHAs fa... |
I have multiple projects in a couple of different workspaces. However, it seems like I can never figure out how to change my current workspace. The result is that files that I have checked out on my machine are shown to be checked out by somebody else and are not accessible.
| It sounds like you're dealing with a version control system that uses workspaces, like Git, Perforce, or a similar tool. Here are some general steps to help you change your current workspace and manage your checked-out files.
### If You're Using Git
1. **Check Your Current Branch**: Before switching, verify your curre... | 5,041 | [
{
"from": "human",
"value": "I have multiple projects in a couple of different workspaces. However, it seems like I can never figure out how to change my current workspace. The result is that files that I have checked out on my machine are shown to be checked out by somebody else and are not accessible.\n"
... |
In FXRuby; how do I set the FXFileDialog to be at the home directory when it opens?
| In FXRuby, you can set the initial directory of an `FXFileDialog` to the user's home directory by using the `FXFileDialog`'s `directory` method. You can retrieve the user's home directory using the `ENV` hash in Ruby. Here is an example of how you might implement this:
```ruby
require 'fox16'
include Fox
app = FXApp... | 5,342 | [
{
"from": "human",
"value": "In FXRuby; how do I set the FXFileDialog to be at the home directory when it opens?\n"
},
{
"from": "gpt",
"value": "In FXRuby, you can set the initial directory of an `FXFileDialog` to the user's home directory by using the `FXFileDialog`'s `directory` method. You c... |
vi is for cool kids.
| Absolutely! Vim (and its predecessor, vi) has a dedicated following among programmers and tech enthusiasts. Its modal editing, efficient keyboard shortcuts, and extensive customization options make it a powerful tool for text editing. Once you get the hang of it, many find it to be an incredibly efficient way to work w... | 8,578 | [
{
"from": "human",
"value": "vi is for cool kids.\n"
},
{
"from": "gpt",
"value": "Absolutely! Vim (and its predecessor, vi) has a dedicated following among programmers and tech enthusiasts. Its modal editing, efficient keyboard shortcuts, and extensive customization options make it a powerful t... |
On the other end of the spectrum, I would be happy if I could install a wiki and share the login credentials between WordPress and the wiki. I hacked MediaWiki a while ago to share logins with another site (in ASP Classic) via session cookies, and it was a pain to do and even worse to maintain. Ideally, I would like to... | Sharing login credentials between WordPress and MediaWiki can be a challenging task, especially if you want to maintain ease of use and security. Here are some potential solutions and approaches to achieve single sign-on (SSO) between WordPress and MediaWiki:
### 1. **Use an Authentication Plugin for WordPress:**
Ther... | 1,421 | [
{
"from": "human",
"value": "On the other end of the spectrum, I would be happy if I could install a wiki and share the login credentials between WordPress and the wiki. I hacked MediaWiki a while ago to share logins with another site (in ASP Classic) via session cookies, and it was a pain to do and even wo... |
Does anyone have experience creating SQL-based ASP.NET site-map providers?
I have the default XML file web.sitemap working properly with my Menu and SiteMapPath controls, but I'll need a way for the users of my site to create and modify pages dynamically.
I need to tie page viewing permissions into the standard ASP.NET... | Creating an SQL-based SiteMap provider in ASP.NET can be a great way to dynamically manage your site's navigation structure. Below, I'll outline the steps you can take to create a custom SQL SiteMap provider, as well as how to tie it into the ASP.NET Membership system for page permissions.
### Step 1: Create the Datab... | 831 | [
{
"from": "human",
"value": "Does anyone have experience creating SQL-based ASP.NET site-map providers?\nI have the default XML file web.sitemap working properly with my Menu and SiteMapPath controls, but I'll need a way for the users of my site to create and modify pages dynamically.\nI need to tie page vi... |
Thinking about getting into .net technology project management
I've had plenty of experience with PHP projects: I'm aware of most of the existing frameworks and libraries, and I've written specs and case studies based on this knowledge.
What should I know about .net?
Which top resources would you recommend me to know s... | Transitioning into .NET project management from a PHP background is a great step, especially given the popularity and versatility of the .NET ecosystem. Here are some key aspects to understand and resources to help you get up to speed quickly with .NET technologies:
### Key Concepts to Understand in .NET
1. **Framewo... | 1,924 | [
{
"from": "human",
"value": "Thinking about getting into .net technology project management\nI've had plenty of experience with PHP projects: I'm aware of most of the existing frameworks and libraries, and I've written specs and case studies based on this knowledge.\nWhat should I know about .net?\nWhich to... |
Most XML parsers will give up after the first error in a document. In fact, IIRC, that's actually part of the 'official' spec for parsers.
I'm looking for something that will break that rule. It should take a given schema (assuming a valid schema) and an xml input and attempt to keep going after the first error and... | For your requirements, you can consider using several libraries or tools that support more resilient XML parsing and validation. Below are some suggestions in the .NET ecosystem as well as a few alternatives that could be useful.
### .NET Solutions
1. **XmlReader with Error Handling**:
You can create a custom XML ... | 3,936 | [
{
"from": "human",
"value": "Most XML parsers will give up after the first error in a document. In fact, IIRC, that's actually part of the 'official' spec for parsers. \nI'm looking for something that will break that rule. It should take a given schema (assuming a valid schema) and an xml input and attem... |
I have some SQL Server DTS packages that import data from a FoxPro database. This was working fine until recently. Now the script that imports data from one of the FoxPro tables bombs out about 470,000 records into the import. I'm just pulling the data into a table with nullable varchar fields so I'm thinking it mus... | To track down the issue with your SQL Server DTS packages importing data from the FoxPro database, especially with the error indicating that data for a specific column is not available, here are some suggested steps and tools you can use:
### 1. **Investigate the Specific Error**
The error message indicates that the ... | 5,124 | [
{
"from": "human",
"value": "I have some SQL Server DTS packages that import data from a FoxPro database. This was working fine until recently. Now the script that imports data from one of the FoxPro tables bombs out about 470,000 records into the import. I'm just pulling the data into a table with nulla... |
What is the syntax and which namespace/class needs to be imported? Give me sample code if possible. It would be of great help.
| It seems like you are asking about the syntax and necessary imports for a programming language, but you did not specify which programming language or framework you are interested in. Could you please clarify whether you are asking about Python, Java, C#, JavaScript, or another language? Once I know that, I can provide ... | 8,964 | [
{
"from": "human",
"value": "What is the syntax and which namespace/class needs to be imported? Give me sample code if possible. It would be of great help.\n"
},
{
"from": "gpt",
"value": "It seems like you are asking about the syntax and necessary imports for a programming language, but you did... |
Where can I find a good tutorial on learning ASP.NET MVC using VB.net 2008 as the language? Most in-depth tutorials that I found in searching the web were written in C#.
| Finding tutorials specifically for ASP.NET MVC using VB.NET can be challenging, as most resources are focused on C#. However, you can still learn a lot from C# tutorials and apply the concepts to VB.NET, since the frameworks and libraries are the same. Here are some suggestions for finding resources tailored to VB.NET ... | 4,570 | [
{
"from": "human",
"value": "Where can I find a good tutorial on learning ASP.NET MVC using VB.net 2008 as the language? Most in-depth tutorials that I found in searching the web were written in C#.\n"
},
{
"from": "gpt",
"value": "Finding tutorials specifically for ASP.NET MVC using VB.NET can ... |
How do i check out a specific directory from CVS and omit the tree leading up to that directory?
EX.
Id like to checkout to this directory
C:/WebHost/MyWebApp/www
My CVS Project directory structure is
MyWebApp/Trunk/www
How do i omit the Trunk and MyWebApp directories?
| To check out a specific directory from a CVS repository and omit the leading directory structure, you can use the `cvs checkout` command along with the `-d` option to specify a custom directory name for the checkout. Here's how you can do it in your case:
1. Open a command prompt.
2. Navigate to the directory where yo... | 5,366 | [
{
"from": "human",
"value": "How do i check out a specific directory from CVS and omit the tree leading up to that directory?\nEX. \nId like to checkout to this directory\nC:/WebHost/MyWebApp/www\nMy CVS Project directory structure is\nMyWebApp/Trunk/www\nHow do i omit the Trunk and MyWebApp directories?\n"... |
I have a large text template which needs tokenized sections replaced by other text. The tokens look something like this: ##USERNAME##. My first instinct is just to use String.Replace(), but is there a better, more efficient way or is Replace() already optimized for this?
| Using `String.Replace()` is a straightforward approach for replacing tokens in a string. It works well for simple cases where you have a limited number of tokens and don't require any special handling for performance or additional complexity.
However, if you have a large text template with many tokens to replace, or i... | 2,263 | [
{
"from": "human",
"value": "I have a large text template which needs tokenized sections replaced by other text. The tokens look something like this: ##USERNAME##. My first instinct is just to use String.Replace(), but is there a better, more efficient way or is Replace() already optimized for this?\n"
}... |
Real strange.
I cannot find a tool that enables one to display a SVN repository in graphical form.
I would like the ability to see changes in revision / time , branch / time graphs.
Does anyone know of one. Ideally it would be platform neutral or even better web based.
Solutions offered so far in brief:
svn-graph
Fish... | There are several tools that can help you visualize SVN repositories in a graphical format. Here are some suggestions, including some web-based and platform-neutral options:
1. **VisualSVN**: While primarily a client for Windows, VisualSVN provides a robust interface for working with SVN. It includes features for visu... | 5,719 | [
{
"from": "human",
"value": "Real strange.\nI cannot find a tool that enables one to display a SVN repository in graphical form.\nI would like the ability to see changes in revision / time , branch / time graphs.\nDoes anyone know of one. Ideally it would be platform neutral or even better web based.\nSolut... |
This question is a follow up to my previous question about getting the HTML from an ASPX page. I decided to try using the webclient object, but the problem is that I get the login page's HTML because login is required. I tried "logging in" using the webclient object:
WebClient ww = new WebClient();
ww.DownloadString(... | When you attempt to log in to an ASP.NET application and retrieve a page that requires authentication, simply using a `WebClient` to download the login page and then the protected page won't work unless you properly manage cookies and the login process.
Here's what you typically need to do:
1. **Maintain Session Stat... | 2,928 | [
{
"from": "human",
"value": "This question is a follow up to my previous question about getting the HTML from an ASPX page. I decided to try using the webclient object, but the problem is that I get the login page's HTML because login is required. I tried \"logging in\" using the webclient object:\nWebClien... |
I develop C++ applications in a Linux environment. The tools I use every day include Eclipse with the CDT plugin, gdb and valgrind.
What tools do other people use? Is there anything out there for Linux that rivals the slickness of Microsoft Visual Studio?
| While Eclipse with the CDT plugin is a popular choice among C++ developers on Linux, there are several other tools and environments that developers commonly use, each with its own strengths and features. Here are some alternatives that may offer a more polished or integrated experience similar to Microsoft Visual Studi... | 4,449 | [
{
"from": "human",
"value": "I develop C++ applications in a Linux environment. The tools I use every day include Eclipse with the CDT plugin, gdb and valgrind.\nWhat tools do other people use? Is there anything out there for Linux that rivals the slickness of Microsoft Visual Studio?\n"
},
{
"fro... |
Is there a simple way to format numbers in a Winforms 1.1 datagrid? The Format property of the DataGridTextBoxColumn seems to be completely ignored. I know there is a solution that involves subclassing a Column control, and it's fairly simple, but was hoping there might be some trick to making the Format property jus... | In WinForms 1.1, the `Format` property of the `DataGridTextBoxColumn` is indeed not applied as you might expect. Unfortunately, there isn't a built-in way to have the `Format` property automatically format numbers in a `DataGrid`. However, you can achieve the desired effect by handling the formatting manually.
Here ar... | 4,743 | [
{
"from": "human",
"value": "Is there a simple way to format numbers in a Winforms 1.1 datagrid? The Format property of the DataGridTextBoxColumn seems to be completely ignored. I know there is a solution that involves subclassing a Column control, and it's fairly simple, but was hoping there might be som... |
What's the best way/tool to display nice diagrams with entity relationships in ASP MVC views?
i.e. servers and and applications, or servers with other servers.
Are there any third party tools out there that can do this?
I've been searching around things like Telerik, but it's really hard to google for this!
| When it comes to displaying entity relationship diagrams or similar visualizations in ASP.NET MVC views, there are several third-party libraries and tools you can consider. Here are some popular options:
1. **Vis.js**:
- **Description**: A dynamic, browser-based visualization library that can handle various types o... | 5,475 | [
{
"from": "human",
"value": "What's the best way/tool to display nice diagrams with entity relationships in ASP MVC views? \ni.e. servers and and applications, or servers with other servers.\nAre there any third party tools out there that can do this? \nI've been searching around things like Telerik, but ... |
I find the concept of the programmable, tiling, keyboard-focuessed window manager ion3 very appealing, but I think it takes some time to customize it to your needs until you can really evaluate this totally different UI-concept.
Therefore, I would like to read reviews of people who tried it for a longer time as environ... | Ion3 is indeed a unique window manager that emphasizes keyboard-driven navigation and tiling layouts, making it appealing to users who prefer a minimalist and efficient desktop environment. Many programmers appreciate the focus on keyboard shortcuts, which can greatly enhance productivity, particularly when using tools... | 2,816 | [
{
"from": "human",
"value": "I find the concept of the programmable, tiling, keyboard-focuessed window manager ion3 very appealing, but I think it takes some time to customize it to your needs until you can really evaluate this totally different UI-concept.\nTherefore, I would like to read reviews of people... |
I believe the question says it all ... (I'll update if needed)
| It seems like your question didn't come through. Could you please provide more details or clarify what you would like to ask? I'm here to help! | 9,305 | [
{
"from": "human",
"value": "I believe the question says it all ... (I'll update if needed)\n"
},
{
"from": "gpt",
"value": "It seems like your question didn't come through. Could you please provide more details or clarify what you would like to ask? I'm here to help!"
}
] |
I want to know what exactly is the sequence of calls that occurs when a getter/setter created through Class::MethodMaker is called?
How much costlier are getter/setters defined by MethodMaker than the native ones (overwritten in the module)?
| To understand the sequence of calls that occurs when a getter/setter created through `Class::MethodMaker` is invoked, let's start with a basic outline of how `Class::MethodMaker` works. `Class::MethodMaker` is a Perl module that automates the creation of accessor (getter) and mutator (setter) methods for object attribu... | 3,425 | [
{
"from": "human",
"value": "I want to know what exactly is the sequence of calls that occurs when a getter/setter created through Class::MethodMaker is called?\nHow much costlier are getter/setters defined by MethodMaker than the native ones (overwritten in the module)?\n"
},
{
"from": "gpt",
"... |
I have a dynamically created image that I am saving to a stream so that I can display it on a ReportViewer surface.
Setup:
Windows Client application (not WebForms)
Report datasource is an object datasource, with a dynamically generated stream as a property (CustomImage)
Report.EnableExternalImages = true
Image.Sour... | To display a dynamically created image in a ReportViewer in a Windows Forms application using an ObjectDataSource, you'll need to ensure that your image is properly converted to a byte array and that the ReportViewer is set up to read the image from the datasource correctly. Below is a step-by-step guide and a sample c... | 2,966 | [
{
"from": "human",
"value": "I have a dynamically created image that I am saving to a stream so that I can display it on a ReportViewer surface. \nSetup:\n\nWindows Client application (not WebForms)\nReport datasource is an object datasource, with a dynamically generated stream as a property (CustomImage)\... |
I use a stream reader to import some data and at the moment I hardcode a small sample file in the test to do the job.
Is it sensible to use Mock Objects with this and how ?
| Using mock objects in your tests can be a sensible approach, especially when dealing with I/O operations like reading from files. Mocking allows you to isolate the unit of work you're testing by simulating external dependencies, such as file reading, without relying on actual file I/O. This can lead to faster tests and... | 3,445 | [
{
"from": "human",
"value": "I use a stream reader to import some data and at the moment I hardcode a small sample file in the test to do the job.\nIs it sensible to use Mock Objects with this and how ?\n"
},
{
"from": "gpt",
"value": "Using mock objects in your tests can be a sensible approach,... |
How would you implement a system with the following objectives:
Manage authentication,
authorization for
hundreds of thousands of existing users currently tightly integrated with a 3rd party vendor's application (We want to bust these users out into something we manage and make our apps work against it, plus our 3rd p... | Implementing a system to manage authentication, authorization, and user profiles for hundreds of thousands of existing users requires careful consideration of architecture, technology stack, and security. Here’s an analysis of the proposed options and some additional suggestions:
### Option Analysis:
1. **LDAP/AD Ser... | 3,889 | [
{
"from": "human",
"value": "How would you implement a system with the following objectives:\n\nManage authentication,\nauthorization for\nhundreds of thousands of existing users currently tightly integrated with a 3rd party vendor's application (We want to bust these users out into something we manage and ... |
I have a problem with RightFax component Interop.RFCOMAPILib.dll version 1.0.0.0 , using VB .NET 1.1.
It works in several environments, but not in Production.
It returns this message in the exception - "?" - .
How can I solve it? I couldn't find any solution in manuals or on the internet.
| When dealing with issues related to COM interop, especially with a specific version of a library like `Interop.RFCOMAPILib.dll`, it can be challenging to debug when the error message is not descriptive. Here are some steps you can take to try to resolve the issue:
### 1. Check COM Component Registration
- Ensure that ... | 4,517 | [
{
"from": "human",
"value": "I have a problem with RightFax component Interop.RFCOMAPILib.dll version 1.0.0.0 , using VB .NET 1.1. \nIt works in several environments, but not in Production.\nIt returns this message in the exception - \"?\" - .\nHow can I solve it? I couldn't find any solution in manuals or ... |
I've recently been looking into targeting the .NET Client Profile for a WPF application I am building. However, I was frustrated to notice that the Client Profile is only valid for the following OS configurations:
Windows XP SP2+
Windows Server 2003 Edit: Appears the Client Profile will not install on Windows Server ... | Targeting the .NET Client Profile for a WPF application can indeed simplify deployment for users on certain configurations, particularly Windows XP SP2 and above. However, considering the limitations and demographics of your target audience is essential in deciding whether the effort is worth it.
### Key Consideration... | 4,244 | [
{
"from": "human",
"value": "I've recently been looking into targeting the .NET Client Profile for a WPF application I am building. However, I was frustrated to notice that the Client Profile is only valid for the following OS configurations: \n\nWindows XP SP2+\nWindows Server 2003 Edit: Appears the Client... |
I discovered template metaprogramming more than 5 years ago and got a huge kick out of reading Modern C++ Design but I never found an opertunity to use it in real life.
Have you ever used this technique in real code?
Contributors to Boost need not apply ;o)
| Template metaprogramming is a powerful technique in C++, but its practical application can sometimes be niche. While I, as an AI, don't directly write code or contribute to projects, I can certainly explain common scenarios where template metaprogramming is effectively used.
Here are some real-world applications where... | 2,555 | [
{
"from": "human",
"value": "I discovered template metaprogramming more than 5 years ago and got a huge kick out of reading Modern C++ Design but I never found an opertunity to use it in real life.\nHave you ever used this technique in real code?\n\nContributors to Boost need not apply ;o)\n\n"
},
{
... |
My company develops several types of applications. A lot of our business comes from doing multimedia-type apps, typically done in Flash. However, now that side of the house is starting to migrate towards doing Flex development.
Most of our other development is done using .NET. I'm trying to make a push towards doing... | When comparing Silverlight and Flex for multimedia application development, it's essential to consider various factors, including development resources, ease of use, integration capabilities, platform support, and the overall ecosystem. Here are some pros and cons for each platform that you can use to support your argu... | 3,407 | [
{
"from": "human",
"value": "My company develops several types of applications. A lot of our business comes from doing multimedia-type apps, typically done in Flash. However, now that side of the house is starting to migrate towards doing Flex development.\nMost of our other development is done using .NET... |
My product has several components: ASP.NET, Windows Forms App and Windows Service. 95% or so of the code is written in VB.NET.
For Intellectual Property reasons, I need to obfuscate the code, and until now I have been using a version of dotfuscator which is now over 5 years old. I'm thinking it is time to move to a new... | When searching for a new obfuscation tool for your VB.NET solution that consists of ASP.NET, Windows Forms App, and Windows Service, it’s essential to consider a comprehensive set of requirements to ensure that the tool meets your needs effectively. Below is a list of requirements you may want to consider:
### 1. **Ob... | 2,369 | [
{
"from": "human",
"value": "My product has several components: ASP.NET, Windows Forms App and Windows Service. 95% or so of the code is written in VB.NET.\nFor Intellectual Property reasons, I need to obfuscate the code, and until now I have been using a version of dotfuscator which is now over 5 years old... |
If you use the standard tab control in .NET for your tab pages and you try to change the look and feel a little bit then you are able to change the back color of the tab pages but not for the tab control. The property is available, you could set it but it has no effect. If you change the back color of the pages and not... | The behavior you're encountering with the `TabControl` in .NET regarding the `BackColor` property is by design. The `TabControl` renders its own background and tabs using Windows UI themes, which is why changing the `BackColor` of the `TabControl` does not yield any visible change. This is part of the standard Windows ... | 4,640 | [
{
"from": "human",
"value": "If you use the standard tab control in .NET for your tab pages and you try to change the look and feel a little bit then you are able to change the back color of the tab pages but not for the tab control. The property is available, you could set it but it has no effect. If you c... |
To complete some testing I need to load the 64 bit version of an assembly even though I am running a 32 bit version of Windows. Is this possible?
| In general, a 32-bit version of Windows cannot natively load or run 64-bit assemblies or applications. The architecture of the operating system and the applications must match; therefore, a 32-bit OS can only run 32-bit applications.
If you need to test a 64-bit assembly, there are a few potential workarounds:
1. **U... | 7,413 | [
{
"from": "human",
"value": "To complete some testing I need to load the 64 bit version of an assembly even though I am running a 32 bit version of Windows. Is this possible?\n"
},
{
"from": "gpt",
"value": "In general, a 32-bit version of Windows cannot natively load or run 64-bit assemblies o... |
I've recently been working on a beginner's project in Scala, and have a beginner question about Scala's Lists.
Say I have a list of tuples ( List[Tuple2[String, String]], for example). Is there a convenience method to return the first occurence of a specified tuple from the List, or is it necessary to iterate through t... | In Scala, you can conveniently retrieve the first occurrence of a specified tuple from a list using the `find` method. The `find` method takes a predicate function that defines the condition you're looking for, and it returns an `Option` containing the first element that satisfies the condition or `None` if no such ele... | 6,517 | [
{
"from": "human",
"value": "I've recently been working on a beginner's project in Scala, and have a beginner question about Scala's Lists.\nSay I have a list of tuples ( List[Tuple2[String, String]], for example). Is there a convenience method to return the first occurence of a specified tuple from the Lis... |
This is a follow-on question to the How do you use ssh in a shell script? question. If I want to execute a command on the remote machine that runs in the background on that machine, how do I get the ssh command to return? When I try to just include the ampersand (&) at the end of the command it just hangs. The exact... | When you run a command over SSH and append an ampersand (`&`) to run it in the background, the SSH session waits for that command to exit before returning control to your local machine. This happens because the command is still connected to the SSH session, which makes the session hang until the command completes.
To ... | 4,068 | [
{
"from": "human",
"value": "This is a follow-on question to the How do you use ssh in a shell script? question. If I want to execute a command on the remote machine that runs in the background on that machine, how do I get the ssh command to return? When I try to just include the ampersand (&) at the end... |
I've just started skimming 'Debugging MS .Net 2.0 Applications' by John Robbins, and have become confused by his evangelism for Debug.Assert(...).
He points out that well-implemented Asserts store the state, somewhat, of an error condition, e.g.:
Debug.Assert(i > 3, "i > 3", "This means I got a bad parameter");
Now, p... | You bring up a great point about the use of assertions and their purpose in software development. Let's break down the role of `Debug.Assert(...)` in the context of parameter validation and application logic.
### Purpose of Assertions
1. **Internal Consistency Checks**: Assertions are primarily used to check for condi... | 2,929 | [
{
"from": "human",
"value": "I've just started skimming 'Debugging MS .Net 2.0 Applications' by John Robbins, and have become confused by his evangelism for Debug.Assert(...).\nHe points out that well-implemented Asserts store the state, somewhat, of an error condition, e.g.:\nDebug.Assert(i > 3, \"i > 3\",... |
I'm compiling a NAnt project on linux with TeamCity Continuous Integration server. I have been able to generate a test report by running NAnt on mono thru a Command Line Runner but don't have the options of using the report like a NAnt Runner. I'm also using MBUnit for the testing framework.
How can I merge in the test... | To integrate your MBUnit tests with TeamCity and utilize its reporting features effectively, you can indeed use the `MBUnitTask` provided by the Galio framework. Here's a step-by-step guide to help you set it up:
### Step 1: Set Up Your Build Configuration
1. **Install Required Packages**: Make sure you have Galio in... | 511 | [
{
"from": "human",
"value": "I'm compiling a NAnt project on linux with TeamCity Continuous Integration server. I have been able to generate a test report by running NAnt on mono thru a Command Line Runner but don't have the options of using the report like a NAnt Runner. I'm also using MBUnit for the testi... |
Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in an effort to make dealing with that particular kettle of fish easier.
Is there anything you folks have used that has a similar concept applied to CSS? Something that does a bunch of cross-browser magic for you, supports like variabl... | You're definitely on the right track in thinking that CSS can benefit from abstractions similar to those found in various front-end frameworks. In recent years, several tools and methodologies have emerged that aim to enhance CSS by providing features like variables, nesting, and other advanced functionalities, all whi... | 4,440 | [
{
"from": "human",
"value": "Many frameworks seek to abstract away from HTML (custom tags, JSFs component system) in an effort to make dealing with that particular kettle of fish easier.\nIs there anything you folks have used that has a similar concept applied to CSS? Something that does a bunch of cross-br... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.