instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I have a legacy app I am currently supporting that is having problems when people copy large quantities of data from a datasheet view. The App is built in MS Access and the amount of rows being copied can get pretty large (sometimes in the thousands). The funny thing about it is, you can paste the data out, but then ...
The issue you're experiencing with MS Access rendering data to BIFF5 format during large data copy operations can be frustrating, especially when it leads to high CPU usage and long processing times. Here are some potential reasons for this behavior and suggestions for resolving or mitigating the issue: ### Potential ...
11,328
[ { "from": "human", "value": "I have a legacy app I am currently supporting that is having problems when people copy large quantities of data from a datasheet view. \nThe App is built in MS Access and the amount of rows being copied can get pretty large (sometimes in the thousands). \nThe funny thing about i...
Is it possible to extract all of the VBA code from a Word 2007 "docm" document using the API? I have found how to insert VBA code at runtime, and how to delete all VBA code, but not pull the actual code out into a stream or string that I can store (and insert into other documents in the future). Any tips or resources w...
You're on the right track with using the Microsoft Office Interop libraries to extract VBA code from a Word document. The code you've posted correctly retrieves the VBA components and their code from a `.docm` file. Below, I'll explain your code and provide some additional information in case you want to further extend...
14,436
[ { "from": "human", "value": "Is it possible to extract all of the VBA code from a Word 2007 \"docm\" document using the API?\nI have found how to insert VBA code at runtime, and how to delete all VBA code, but not pull the actual code out into a stream or string that I can store (and insert into other docum...
I have a secondary Exchange mailbox configured on my iPhone using IMAP. This all appears to work fine except when a message is deleted on the phone, it still shows normally in Outlook. It does not seem to matter what I set the "remove deleted messages" setting to on the phone. I understand this is due to a combination ...
Creating a background process that uses IMAP IDLE to monitor a mailbox and expunge deleted messages is a viable solution. There are several libraries and tools that can help you implement this in a scriptable way. Here are some recommendations: ### Libraries 1. **Python with `imaplib` and `imapclient`:** - **imapl...
9,987
[ { "from": "human", "value": "I have a secondary Exchange mailbox configured on my iPhone using IMAP. This all appears to work fine except when a message is deleted on the phone, it still shows normally in Outlook. It does not seem to matter what I set the \"remove deleted messages\" setting to on the phone....
There is some magic going on with WCF deserialization. How does it instantiate an instance of the data contract type without calling its constructor? For example, consider this data contract: [DataContract] public sealed class CreateMe { [DataMember] private readonly string _name; [DataMember] private readonly i...
The behavior you're observing with the WCF (Windows Communication Foundation) and its deserialization process is indeed quite interesting and can be attributed to how the .NET framework handles deserialization, particularly with the `DataContractSerializer`. ### How WCF Instantiates Objects When you use the `DataCont...
18,084
[ { "from": "human", "value": "There is some magic going on with WCF deserialization. How does it instantiate an instance of the data contract type without calling its constructor?\nFor example, consider this data contract:\n[DataContract]\npublic sealed class CreateMe\n{\n [DataMember] private readonly st...
I only just recently discovered that Visual C++ 2008 (and perhaps earlier versions as well?) supports for each syntax on stl lists et al to facilitate iteration. For example: list<Object> myList; for each (Object o in myList) { o.foo(); } I was very happy to discover it, but I'm concerned about portability for the ...
The `for each` syntax you mentioned is specific to Microsoft's Visual C++ compiler and is not part of the C++ standard. This syntax was introduced in Visual C++ 2005 and continues through later versions, but it is not supported by other compilers like GCC (GNU Compiler Collection) or Clang. For maximum portability acr...
19,919
[ { "from": "human", "value": "I only just recently discovered that Visual C++ 2008 (and perhaps earlier versions as well?) supports for each syntax on stl lists et al to facilitate iteration.\nFor example:\nlist<Object> myList;\n\nfor each (Object o in myList)\n{\n o.foo();\n}\n\nI was very happy to discove...
Do you think that project iteration length is related to project team size? If so, how? What other key factors do you use to recognize correct iteration length for different projects?
Yes, project iteration length can be related to project team size, but the relationship isn't straightforward and depends on various factors. Here’s how team size might influence iteration length, along with other key factors to consider: ### Relationship Between Project Iteration Length and Team Size: 1. **Communica...
16,137
[ { "from": "human", "value": "Do you think that project iteration length is related to project team size? If so, how? What other key factors do you use to recognize correct iteration length for different projects?\n" }, { "from": "gpt", "value": "Yes, project iteration length can be related to pr...
I am trying to run a SeleniumTestCase with phpunit but I cannot get it to run with the phpunit.bat script. My goal is to use phpunit with Selenium RC in CruiseControl & phpUnderControl. This is what the test looks like: require_once 'PHPUnit/Extensions/SeleniumTestCase.php'; class WebTest extends PHPUnit_Extensions_S...
It looks like you're trying to run a Selenium test case using PHPUnit and encountering issues with the `phpunit.bat` script. Here are some troubleshooting steps and tips to help you get your Selenium tests running. ### 1. Check PHPUnit and Selenium RC Versions Make sure you're using compatible versions of PHPUnit and ...
18,098
[ { "from": "human", "value": "I am trying to run a SeleniumTestCase with phpunit but I cannot get it to run with the phpunit.bat script. \nMy goal is to use phpunit with Selenium RC in CruiseControl & phpUnderControl. This is what the test looks like:\nrequire_once 'PHPUnit/Extensions/SeleniumTestCase.php';\...
Say I've got two scheduled processes: A and B. Given that B should not run until A has completed, how might I gracefully enforce this dependency? Approaches that have been considered: Have A schedule B upon completion. This has the downside of B never being scheduled if for some reason A failed. When B runs, have it p...
Enforcing dependencies between scheduled processes A and B can be challenging, especially when you want to avoid tight coupling and potential failure scenarios. Here are some additional approaches to consider, each with its own advantages and disadvantages: ### 1. Status Tracking with a Shared Resource Use a shared re...
18,548
[ { "from": "human", "value": "Say I've got two scheduled processes: A and B.\nGiven that B should not run until A has completed, how might I gracefully enforce this dependency?\nApproaches that have been considered:\n\nHave A schedule B upon completion. This has the downside of B never being scheduled if for...
When you tap a row in a UITableView, the row is highlighted and selected. Is it possible to disable this so tapping a row does nothing?
Yes, it is possible to disable the selection and highlighting of a row in a `UITableView`. You can achieve this in a couple of ways: ### Method 1: Disable Selection at the Table View Level You can disable the selection of the entire table view by setting the `allowsSelection` property to `false`. ```swift tableView.a...
17,883
[ { "from": "human", "value": "When you tap a row in a UITableView, the row is highlighted and selected. Is it possible to disable this so tapping a row does nothing?\n" }, { "from": "gpt", "value": "Yes, it is possible to disable the selection and highlighting of a row in a `UITableView`. You can...
I need help on this following aspx code aspx Code: <asp:Label ID ="lblName" runat ="server" Text ="Name"></asp:Label> <asp:TextBox ID ="txtName" runat ="server"></asp:TextBox> Consider this is my aspx page content. I am going to populate the values for the TextBox only after the postback from server. But the label is ...
Your approach to optimizing the postback by using an HTML label instead of an ASP.NET server control is sound. By using an HTML label (`<label>`) instead of an ASP.NET label control (`<asp:Label>`), you can indeed prevent unnecessary server-side processing for a static label, which can reduce the load on the server. H...
19,989
[ { "from": "human", "value": "I need help on this following aspx code\naspx Code:\n<asp:Label ID =\"lblName\" runat =\"server\" Text =\"Name\"></asp:Label>\n<asp:TextBox ID =\"txtName\" runat =\"server\"></asp:TextBox>\n\nConsider this is my aspx page content. I am going to populate the values for the TextBo...
Would anyone know why MSVC++ 2008 always returns error 5 on GetLastError() when I try to call OpenProcess with PROCESS_ALL_ACCESS as my desired access? PROCESS_VM_READ works just fine. I'm an administrator on this computer and it is working fine in Dev C++. Do I need to set an option somewhere?
Error 5 in Windows corresponds to `ERROR_ACCESS_DENIED`, which indicates that the process you're trying to open with `OpenProcess` does not allow the access level you've specified. Here's a rundown of potential reasons and solutions: ### Possible Reasons: 1. **Access Rights**: Not all processes can be opened with `PRO...
16,630
[ { "from": "human", "value": "Would anyone know why MSVC++ 2008 always returns error 5 on GetLastError() when I try to call OpenProcess with PROCESS_ALL_ACCESS as my desired access? PROCESS_VM_READ works just fine. I'm an administrator on this computer and it is working fine in Dev C++.\nDo I need to set an ...
I am trying to use the new DATETIMEOFFSET data type in SQL 2008 but I can't figure out how to get the DATETIMEOFFSET '2008-09-27 21:28:17.2930000 -07:00' to show as '2008-09-27 14:28:17.2930000' (basically applying the offset to show the local time). Does anyone know how to do this?
In SQL Server 2008, if you have a value of `DATETIMEOFFSET`, such as `'2008-09-27 21:28:17.2930000 -07:00'`, and you want to convert it to local time by applying the offset, you can use the `SWITCHOFFSET` function. The `SWITCHOFFSET` function changes the time zone offset of a `DATETIMEOFFSET` value but keeps the same p...
18,263
[ { "from": "human", "value": "I am trying to use the new DATETIMEOFFSET data type in SQL 2008 but I can't figure out how to get the DATETIMEOFFSET '2008-09-27 21:28:17.2930000 -07:00' to show as '2008-09-27 14:28:17.2930000' (basically applying the offset to show the local time).\nDoes anyone know how to do ...
Where can I test HTML 5 functionality today - is there any test build of any rendering engines which would allow testing, or is it to early? I'm aware that much of the spec hasn't been finalised, but some has, and it would be good to try it out!
As of now, HTML5 has already reached a high level of maturity, with many browsers supporting its features extensively. You can test HTML5 functionality in several ways using different rendering engines and tools: 1. **Modern Browsers**: Most major browsers (like Google Chrome, Mozilla Firefox, Microsoft Edge, and Safa...
13,023
[ { "from": "human", "value": "Where can I test HTML 5 functionality today - is there any test build of any rendering engines which would allow testing, or is it to early? I'm aware that much of the spec hasn't been finalised, but some has, and it would be good to try it out!\n" }, { "from": "gpt", ...
I know this is a really basic question, but I've just started with some basic C++ programming after coding a few projects with high-level languages. Basically I have three questions: Why use pointers over normal variables? When and where should I use pointers? How do you use pointers with arrays?
Welcome to C++ programming! Understanding pointers is a fundamental part of C++, and it can be a bit daunting if you're coming from a high-level language that abstracts away memory management. Let's address each of your questions: ### 1. Why Use Pointers Over Normal Variables? Pointers offer several benefits: - **Di...
15,731
[ { "from": "human", "value": "I know this is a really basic question, but I've just started with some basic C++ programming after coding a few projects with high-level languages. \nBasically I have three questions:\n\nWhy use pointers over normal variables?\nWhen and where should I use pointers?\nHow do you ...
How would you go about retrieving the @@IDENTITY value for each row when the SQLDataAdapater.Update is executed on a table? eg. Is it possible to modify/intercept the InsertCommand, generated by the SQLCommandBuilder, to say add an output parameter, and then retrieve its value in the da.RowUpdated event???
Yes, it is possible to modify the `InsertCommand` generated by the `SqlCommandBuilder` to include an output parameter for retrieving the `@@IDENTITY` (or `SCOPE_IDENTITY()`) value for each row when using `SqlDataAdapter.Update`. However, you will need to do this manually because `SqlCommandBuilder` generates simple SQL...
16,952
[ { "from": "human", "value": "How would you go about retrieving the @@IDENTITY value for each row when the SQLDataAdapater.Update is executed on a table?\neg. Is it possible to modify/intercept the InsertCommand, generated by the SQLCommandBuilder, to say add an output parameter, and then retrieve its value ...
At work, we're using ClearCase right now. However, there's a lot of overhead required, especially when someone does something stupid (like erase a view with multiple reserved check-outs on the trunk...). Since we're trying to lower our overhead and be as lightweight as possible, we've through about the possibility of...
Transitioning from ClearCase to a more lightweight version control system like Subversion or Mercurial can certainly make sense, especially if you're not utilizing most of ClearCase's features and are feeling burdened by its complexity and overhead. Here are some considerations to help you evaluate the move: ### Pros ...
15,364
[ { "from": "human", "value": "At work, we're using ClearCase right now. However, there's a lot of overhead required, especially when someone does something stupid (like erase a view with multiple reserved check-outs on the trunk...). Since we're trying to lower our overhead and be as lightweight as possibl...
Can somebody remember what was the command to create an empty file in MSDOS using BAT file?
In a batch (.bat) file in MS-DOS, you can create an empty file using the following command: ```batch type nul > filename.txt ``` Replace `filename.txt` with the desired name for your empty file. Alternatively, you can also use the `echo` command: ```batch echo. > filename.txt ``` Again, replace `filename.txt` with...
22,688
[ { "from": "human", "value": "Can somebody remember what was the command to create an empty file in MSDOS using BAT file?\n" }, { "from": "gpt", "value": "In a batch (.bat) file in MS-DOS, you can create an empty file using the following command:\n\n```batch\ntype nul > filename.txt\n```\n\nRepla...
This is a minor bug (one I'm willing to live with in the interest of go-live, frankly), but I'm wondering if anyone else has ideas to fix it. I have a C# WinForms application. When the app is launched via the executable (not via the debugger), the first thing the user sees is a console window, followed by the main wind...
The issue you're experiencing, where a console window is displayed when launching your C# WinForms application, is typically due to the project output type being set incorrectly or other settings in the project configuration. To resolve this, you should ensure that your project is configured correctly so that it is tr...
18,248
[ { "from": "human", "value": "This is a minor bug (one I'm willing to live with in the interest of go-live, frankly), but I'm wondering if anyone else has ideas to fix it.\nI have a C# WinForms application. When the app is launched via the executable (not via the debugger), the first thing the user sees is a...
I am accessing custom UIComponent via SWC file from Flex 3. This component works OK in Flash CS3, but using it from Flex gives A weird error in draw(). I have added swc component inside Sprite (with addchild) and its in LIB path. TypeError: Error #1010: A term is undefined and has no properties. at com.xxxx.highscore...
The `TypeError: Error #1010: A term is undefined and has no properties.` error in ActionScript typically indicates that you're trying to access a property of an object that has not been instantiated or initialized yet. Since you're experiencing this issue within the `draw()` method of your custom UIComponent when using...
12,554
[ { "from": "human", "value": "I am accessing custom UIComponent via SWC file from Flex 3. \nThis component works OK in Flash CS3, but using it from Flex gives A weird error in draw().\nI have added swc component inside Sprite (with addchild) and its in LIB path. \nTypeError: Error #1010: A term is undefined ...
Sending a message from the Unix command line using mail TO_ADDR results in an email from $USER@$HOSTNAME. Is there a way to change the "From:" address inserted by mail? For the record, I'm using GNU Mailutils 1.1/1.2 on Ubuntu (but I've seen the same behavior with Fedora and RHEL). [EDIT] $ mail -s Testing chris@examp...
When using the `mail` command from GNU Mailutils, the "From:" address is automatically set to `$USER@$HOSTNAME` (in your case, `chris@localhost`) and there isn't a direct option to change this behavior through the `mail` command itself. However, there are a couple of methods to modify the "From:" address: ### Method 1...
12,145
[ { "from": "human", "value": "Sending a message from the Unix command line using mail TO_ADDR results in an email from $USER@$HOSTNAME. Is there a way to change the \"From:\" address inserted by mail?\nFor the record, I'm using GNU Mailutils 1.1/1.2 on Ubuntu (but I've seen the same behavior with Fedora and ...
I love CherryPy's API for sessions, except for one detail. Instead of saying cherrypy.session["spam"] I'd like to be able to just say session["spam"]. Unfortunately, I can't simply have a global from cherrypy import session in one of my modules, because the cherrypy.session object isn't created until the first time a ...
In CherryPy, the session object is initialized on the first HTTP request, which makes it tricky to access it before that point. However, you can achieve the desired behavior without relying on a polling loop or extensive kludges. Here are two cleaner approaches you can consider: ### 1. Using a Wrapper Function You ca...
19,056
[ { "from": "human", "value": "I love CherryPy's API for sessions, except for one detail. Instead of saying cherrypy.session[\"spam\"] I'd like to be able to just say session[\"spam\"].\nUnfortunately, I can't simply have a global from cherrypy import session in one of my modules, because the cherrypy.sessio...
I have a domain class containing a couple of fields. I can access them from my .gsps. I want to add a method to the domain class, which I can call from the .gsps (this method is a kind of virtual field; it's data is not coming directly from the database). How do I add the method and how can I then call it from the .gsp...
To add a method to your domain class in a Grails application, you simply define the method within the class. This method can perform any logic you need, and since it isn't tied to the database, you can compute its value based on other properties of the domain class or any other logic you wish to implement. Here’s a st...
18,178
[ { "from": "human", "value": "I have a domain class containing a couple of fields. I can access them from my .gsps. I want to add a method to the domain class, which I can call from the .gsps (this method is a kind of virtual field; it's data is not coming directly from the database).\nHow do I add the metho...
Using win forms with an MVC/MVP architecture, I would normally use a class to wrap a view to test the UI while using mocks for the model and controller/presenter. The wrapper class would make most everything in the UI an observable property for the test runner through properties and events. Would this be a viable appr...
Using a wrapper class to facilitate UI testing in a WPF application, similar to what you describe for WinForms with an MVC/MVP architecture, can be a viable approach. However, there are some key differences and considerations when working with WPF, particularly with its data binding and command infrastructure. Here's a...
5,148
[ { "from": "human", "value": "Using win forms with an MVC/MVP architecture, I would normally use a class to wrap a view to test the UI while using mocks for the model and controller/presenter. The wrapper class would make most everything in the UI an observable property for the test runner through propertie...
I installed a ASP.Net website on a Windows 2008 server, which is by default using IIS7. The website seems to work fine, but the post backs on my forms do not work. After a few hours of debugging, I realized that when I manually try to hit the WebResource.axd file in my browser (e.g. I type http://www.domain.com/WebRe...
The HTTP 403 error when attempting to access `WebResource.axd` typically indicates that there is an issue with permissions or configuration in IIS. Here are steps you can take to troubleshoot and resolve this issue on your Windows Server 2008 with IIS7: ### 1. Check ASP.NET Registration Make sure that ASP.NET is prop...
14,864
[ { "from": "human", "value": "I installed a ASP.Net website on a Windows 2008 server, which is by default using IIS7. The website seems to work fine, but the post backs on my forms do not work. After a few hours of debugging, I realized that when I manually try to hit the WebResource.axd file in my browser...
I am wondering what is the key thing that helps you in GPGPU development and of course what is the constraints that you find unacceptable. Comes to mind for me: Key advantage: the raw power of these things Key constraint: the memory model What's your view?
In GPGPU (General-Purpose computing on Graphics Processing Units) development, you've identified two critical aspects: the raw processing power and the constraints of the memory model. Here are my thoughts on both: ### Key Advantages 1. **Raw Processing Power**: - GPGPUs offer massive parallelism, allowing thousa...
17,025
[ { "from": "human", "value": "I am wondering what is the key thing that helps you in GPGPU development and of course what is the constraints that you find unacceptable.\nComes to mind for me:\n\nKey advantage: the raw power of these things\nKey constraint: the memory model\n\nWhat's your view?\n" }, { ...
Just starting out in asp.net. Have just created a login.aspx page in my site and stuck on a asp login control - that's all I did. Now my Welcome.aspx page won't show as the start page of my site when I debug - even though it is set as this. Plus I have even edited my web.config - (see below) - and it still does the sa...
It sounds like you're having trouble setting your `Welcome.aspx` page as the start page of your ASP.NET site after adding a login control to your `login.aspx` page. Here are a few steps to troubleshoot and resolve the issue. ### 1. Set the Start Page in the Project Properties Ensure that `Welcome.aspx` is set as the ...
17,099
[ { "from": "human", "value": "Just starting out in asp.net.\nHave just created a login.aspx page in my site and stuck on a asp login control - that's all I did. Now my Welcome.aspx page won't show as the start page of my site when I debug - even though it is set as this.\nPlus I have even edited my web.conf...
Is there any easy way to explicitly make an already threaded application utilise a multicore environment? (if avaliable). The first problem would be how do I determine if my runtime environment supports multi-core applications? If I then determine that I can use multi core functionality, can I explicitly assign threads...
To explicitly make an already threaded application utilize a multi-core environment, follow these steps: ### 1. Determine Support for Multi-Core: Most modern operating systems support multi-core applications. Here's how to check: - **Operating System**: Ensure you're running a modern OS (Windows, Linux, macOS) which...
17,496
[ { "from": "human", "value": "Is there any easy way to explicitly make an already threaded application utilise a multicore environment? (if avaliable).\nThe first problem would be how do I determine if my runtime environment supports multi-core applications?\nIf I then determine that I can use multi core fun...
I'm trying to optimize several bottlenecks on an application which is supposed to run on a really wide range of CPUs and architectures (some of them very close to embeded devices). The results of my profiler, however, aren't really significant because of the speed of my CPU. Is there any way (preferably under Windows o...
Profiling an application under controlled conditions, especially on different CPU architectures or speeds, can indeed be a challenge. Here are several strategies you can consider to limit CPU speed or simulate lower performance environments on Windows or macOS: ### 1. **CPU Throttling Utilities** You can use tools tha...
12,390
[ { "from": "human", "value": "I'm trying to optimize several bottlenecks on an application which is supposed to run on a really wide range of CPUs and architectures (some of them very close to embeded devices).\nThe results of my profiler, however, aren't really significant because of the speed of my CPU. Is...
How do you get Perl to stop and give a stack trace when you reference an undef value, rather than merely warning? It seems that use strict; isn't sufficient for this purpose.
To have Perl stop and give a stack trace when you reference an undefined value, you can use the `use fatal` pragma along with `use strict;` and `use warnings;`. Specifically, you want to enable `fatal` for the warnings related to undefined values. Here’s how you can do it: ```perl use strict; use warnings; use fatal...
18,793
[ { "from": "human", "value": "How do you get Perl to stop and give a stack trace when you reference an undef value, rather than merely warning? It seems that use strict; isn't sufficient for this purpose.\n" }, { "from": "gpt", "value": "To have Perl stop and give a stack trace when you reference...
I wonder what the time complexity of the pop method of list objects is in Python (in CPython particulary). Also does the value of N for list.pop(N) affect the complexity?
In CPython, the time complexity of the `pop` method for list objects can vary based on how you use it: 1. **Using `list.pop()`**: When you call `pop()` without any arguments, it removes and returns the last item from the list. This operation has a time complexity of O(1) because it simply involves accessing the last i...
20,240
[ { "from": "human", "value": "I wonder what the time complexity of the pop method of list objects is in Python (in CPython particulary). Also does the value of N for list.pop(N) affect the complexity?\n" }, { "from": "gpt", "value": "In CPython, the time complexity of the `pop` method for list ob...
I am writing a C# client that calls a web service written in Java (by another person). I have added a web reference to my client and I'm able to call methods in the web service ok. The service was changed to return an array of objects, and the client does not properly parse the returned SOAP message. MyResponse[] MyFu...
When dealing with interoperability between a C# client and a Java web service, particularly when returning arrays of custom objects, it’s essential to ensure that both the web service and the client agree on the data structures and serialization formats. Here are several steps and considerations to help you diagnose an...
10,941
[ { "from": "human", "value": "I am writing a C# client that calls a web service written in Java (by another person). I have added a web reference to my client and I'm able to call methods in the web service ok.\nThe service was changed to return an array of objects, and the client does not properly parse th...
I find myself needing to store public key certificates, and a single private key certificate for an in-house application. A member of our team suggested storing the X509 certificates in the database, instead of storing it in the windows certificate store, as we have been doing up until now. I don't like re-inventing th...
Storing X.509 certificates and private keys in a database instead of using the Windows Certificate Store can offer benefits such as centralized management and easier backups, but it also introduces several challenges and considerations. Here are some potential problems and best practices to consider: ### 1. **Security...
15,414
[ { "from": "human", "value": "I find myself needing to store public key certificates, and a single private key certificate for an in-house application.\nA member of our team suggested storing the X509 certificates in the database, instead of storing it in the windows certificate store, as we have been doing ...
I have a list control in GTK+ (a gtk.TreeView with one column), with "find-as-you type" enabled (so typing any text will open a small search field for searching through the list entries). Now, if the user enters some search text like "abc", should I search only for entries starting with "abc", or should I search for en...
The decision on how to implement "find-as-you-type" functionality in a list control, such as a `Gtk.TreeView`, can depend on several factors, including user expectations and the context of the application. However, there are some general guidelines that you can follow to provide a better user experience. ### Considera...
16,122
[ { "from": "human", "value": "I have a list control in GTK+ (a gtk.TreeView with one column), with \"find-as-you type\" enabled (so typing any text will open a small search field for searching through the list entries). Now, if the user enters some search text like \"abc\", should I search only for entries s...
When using $('.foo').click(function(){ alert("I haz class alertz!"); return false; }); in application.js, and <a href = "" class = "foo" id = "foobar_1" >Teh Foobar </a> in any div that initializes with the page, when clicking "Teh Foobar" it alerts and doesn't follow the link. However, when using t...
The issue you’re encountering is likely due to the way event delegation works in jQuery and how your dynamically inserted content interacts with the event handlers you’ve set up. When you initially set up the event handler using `$('.foo').click(...)`, it only binds to elements with the class `.foo` that exist on the ...
17,978
[ { "from": "human", "value": "When using \n$('.foo').click(function(){ \n alert(\"I haz class alertz!\"); \n return false;\n }); \n\nin application.js, and\n<a href = \"\" class = \"foo\" id = \"foobar_1\" >Teh Foobar </a>\n\nin any div that initializes with the page, when clicking \"Teh Foobar\" ...
We noticed that lots of bugs in our software developed in C# (or Java) cause a NullReferenceException. Is there a reason why "null" has even been included in the language? After all, if there were no "null", I would have no bug, right? In other words, what feature in the language couldn't work without null?
The inclusion of `null` in programming languages like C# and Java serves several important purposes, even though it can lead to issues such as `NullReferenceException`. Let's explore the reasons behind its presence and the features that depend on it. ### 1. **Memory Management** `null` is used to represent the absenc...
17,217
[ { "from": "human", "value": "We noticed that lots of bugs in our software developed in C# (or Java) cause a NullReferenceException.\nIs there a reason why \"null\" has even been included in the language?\nAfter all, if there were no \"null\", I would have no bug, right?\nIn other words, what feature in the ...
After installing a third-party SDK, it very discourteously makes one if its templates the default item in "Add New Item..." dialog in Visual Studio 2005. This is also the case for all other similar dialogs - "Add Class...", "Add User Control..." etc. Is there a way to change this behavior?
Yes, you can change the behavior of the "Add New Item" dialog in Visual Studio 2005 to remove or change the default item that appears. Here are some steps you can take to modify the behavior: ### Option 1: Modify the .vspscc File 1. **Locate the .vspscc file**: This file is located in your project's directory. You ca...
16,549
[ { "from": "human", "value": "After installing a third-party SDK, it very discourteously makes one if its templates the default item in \"Add New Item...\" dialog in Visual Studio 2005. This is also the case for all other similar dialogs - \"Add Class...\", \"Add User Control...\" etc.\nIs there a way to cha...
I have a sample held in a buffer from DirectX. It's a sample of a note played and captured from an instrument. How do I analyse the frequency of the sample (like a guitar tuner does)? I believe FFTs are involved, but I have no pointers to HOWTOs.
Analyzing the frequency of a sample can indeed be accomplished through the Fast Fourier Transform (FFT), which transforms your time-domain signal into the frequency domain. Here's a step-by-step guide on how to analyze your audio sample and determine its frequency content: ### Step 1: Prepare Your Environment You'll n...
13,541
[ { "from": "human", "value": "I have a sample held in a buffer from DirectX. It's a sample of a note played and captured from an instrument. How do I analyse the frequency of the sample (like a guitar tuner does)? I believe FFTs are involved, but I have no pointers to HOWTOs.\n" }, { "from": "gpt", ...
I'm looking at a batch file which defines the following variables: set _SCRIPT_DRIVE=%~d0 set _SCRIPT_PATH=%~p0 What do %~d0 or %~p0 actually mean? Is there a set of well-known values for things like current directory, drive, parameters to a script? Are there any other similar shortcuts I could use?
In batch files, the special variables that start with a percent sign (`%`) are known as "parameters." The syntax `%~d0` and `%~p0` is specifically referring to properties of the batch file itself when it is executed. Here’s a breakdown of what these mean: - `%0`: Represents the full path of the batch file being execu...
16,749
[ { "from": "human", "value": "I'm looking at a batch file which defines the following variables:\nset _SCRIPT_DRIVE=%~d0\nset _SCRIPT_PATH=%~p0\n\n\nWhat do %~d0 or %~p0 actually mean?\nIs there a set of well-known values for things like current directory, drive, parameters to a script?\nAre there any other ...
For some reason when I create a new namespace in Visual Studio 2008 its not being recognized. I'm using asp.net mvc, I don't know if that has anything to do with it. Has anyone come across this before?...and how do you fix it? Also is there a way to force Visual Studio to maybe re-examine new namespaces? Answer: I fig...
It sounds like you were experiencing an issue with Visual Studio 2008 not recognizing a newly created namespace in your ASP.NET MVC project, but I'm glad to hear that you figured out the problem. For future reference, here are some common troubleshooting steps that could help resolve similar issues with namespaces not ...
12,364
[ { "from": "human", "value": "For some reason when I create a new namespace in Visual Studio 2008 its not being recognized. I'm using asp.net mvc, I don't know if that has anything to do with it. \nHas anyone come across this before?...and how do you fix it?\nAlso is there a way to force Visual Studio to may...
does it matter at all what order the <link> or <script> or <meta> tags are in in the <head></head>? (daft question but one of those things i've never given any thought to until now.)
It's not a daft question at all! The order of `<link>`, `<script>`, and `<meta>` tags in the `<head>` section of an HTML document can have varying implications, though the specifics depend on what you're including. Here's a breakdown: 1. **`<meta>` Tags**: - Generally, the order of `<meta>` tags is not crucial, but...
17,871
[ { "from": "human", "value": "does it matter at all what order the <link> or <script> or <meta> tags are in in the <head></head>?\n(daft question but one of those things i've never given any thought to until now.)\n" }, { "from": "gpt", "value": "It's not a daft question at all! The order of `<li...
How can I find the last row that contains data in a specific column and on a specific sheet?
To find the last row that contains data in a specific column on a specific sheet in Excel, you can use different methods depending on whether you're using Excel functions or VBA. Here’s how to do both: ### Using Excel Functions If you want to find the last row with data in a specific column (let's say column A) on a ...
14,980
[ { "from": "human", "value": "How can I find the last row that contains data in a specific column and on a specific sheet?\n" }, { "from": "gpt", "value": "To find the last row that contains data in a specific column on a specific sheet in Excel, you can use different methods depending on whether...
What is the best way to deal with storing and indexing URL's in SQL Server 2005? I have a WebPage table that stores metadata and content about Web Pages. I also have many other tables related to the WebPage table. They all use URL as a key. The problem is URL's can be very large, and using them as a key makes the ind...
Storing and indexing URLs in SQL Server 2005 (or any database) can be challenging due to their potential size and the performance implications of using large fields as primary keys. Here are several strategies you can consider, along with their pros and cons: ### 1. Use an Identity Column as the Primary Key #### Desc...
15,503
[ { "from": "human", "value": "What is the best way to deal with storing and indexing URL's in SQL Server 2005? \nI have a WebPage table that stores metadata and content about Web Pages. I also have many other tables related to the WebPage table. They all use URL as a key. \nThe problem is URL's can be very l...
How is AWT implemented for Solaris? ie: What native libraries, if any, is it dependent on?
AWT (Abstract Window Toolkit) is part of the Java Foundation Classes (JFC) and serves as the original platform-dependent windowing, graphics, and user-interface widget toolkit in Java. On Solaris, AWT is implemented using native libraries that interact with the underlying operating system's graphical user interface cap...
17,494
[ { "from": "human", "value": "How is AWT implemented for Solaris?\nie: What native libraries, if any, is it dependent on?\n" }, { "from": "gpt", "value": "AWT (Abstract Window Toolkit) is part of the Java Foundation Classes (JFC) and serves as the original platform-dependent windowing, graphics, ...
Its possible I am just really really thick. However, looking over the SDK for the live search (MSN search) that uses SOAP, doesn't tell me what URL the service is at?? I can download SDKs for C# or VB which probably encapsulate, but that doesn't help me (I am using ruby). http://search.live.com/developer/
You're not thick at all! It's not uncommon to feel a bit lost when diving into new APIs, especially if the documentation isn't clear. The Microsoft Live Search API was designed to allow developers to programmatically access the search functionality, but documentation can sometimes lack details on endpoints and usage. ...
18,095
[ { "from": "human", "value": "Its possible I am just really really thick. However, looking over the SDK for the live search (MSN search) that uses SOAP, doesn't tell me what URL the service is at?? I can download SDKs for C# or VB which probably encapsulate, but that doesn't help me (I am using ruby). \nhttp...
I have a TCP server that is listening on a particular interface only. I want that after the accept() call if the incoming connection was from xxx.xxx.xxx.0 subnet then the data should go through intf1 otherwise the data should be sent through intf2 which is where my server is listening. Both the interfaces have the sa...
To achieve your goal of routing data based on the source IP address of incoming connections in a TCP server, you can use the `setsockopt()` function to manipulate socket options for the outgoing connection. Specifically, you can bind the outgoing socket to the appropriate interface before sending data, based on the sub...
12,453
[ { "from": "human", "value": "I have a TCP server that is listening on a particular interface only. I want that after the accept() call if the incoming connection was from xxx.xxx.xxx.0 subnet then the data should go through intf1 otherwise the data should be sent through intf2 which is where my server is li...
I'm slowly getting back into PHP, and now I run into a problem, I want to install some web software on our host and I need to have either the latest Zend (which they don't have) or IonCube on the server and IonCube requires enable_dl to be on in the php.ini. Now a colleague of mine thinks I can update this via an .htac...
The issue you're encountering relates to the way Apache (the web server) and PHP handle certain directives and settings, particularly regarding the `enable_dl` directive and the use of `.htaccess` files. ### Reasons Why Your `.htaccess` Changes Aren't Taking Effect 1. **Server Configuration**: The `enable_dl` directi...
17,239
[ { "from": "human", "value": "I'm slowly getting back into PHP, and now I run into a problem, I want to install some web software on our host and I need to have either the latest Zend (which they don't have) or IonCube on the server and IonCube requires enable_dl to be on in the php.ini. Now a colleague of m...
In PowerShell I'm reading in a text file. I'm then doing a Foreach-Object over the text file and am only interested in the lines that do NOT contain strings that are in $arrayOfStringsNotInterestedIn. What is the syntax for this? Get-Content $filename | Foreach-Object {$_}
To filter out lines from a text file that contain any strings from the `$arrayOfStringsNotInterestedIn`, you can use the `Where-Object` cmdlet in combination with the `-not` operator. Here's how you can do this: ```powershell # Assuming $arrayOfStringsNotInterestedIn is already defined # Get-Content reads the lines of...
15,389
[ { "from": "human", "value": "In PowerShell I'm reading in a text file. I'm then doing a Foreach-Object over the text file and am only interested in the lines that do NOT contain strings that are in $arrayOfStringsNotInterestedIn.\nWhat is the syntax for this?\n Get-Content $filename | Foreach-Object {$_}\...
I have a SQL Server 2005 table like this: create table Taxonomy( CategoryId integer primary key, ParentCategoryId integer references Taxonomy(CategoryId), CategoryDescription varchar(50) ) with data looking like CategoryIdParentCategoryIdCategoryDescription 123nullfoo345123bar I'd like to query it into an xml docum...
In SQL Server 2005, you can indeed use `FOR XML` to generate XML output. However, to achieve the specific XML structure you want, you'll typically need to use the `FOR XML PATH` method, as it provides more flexibility compared to `FOR XML AUTO` or `FOR XML EXPLICIT`. Given the structure you've described, here’s how yo...
17,971
[ { "from": "human", "value": "I have a SQL Server 2005 table like this:\ncreate table Taxonomy(\nCategoryId integer primary key,\nParentCategoryId integer references Taxonomy(CategoryId),\nCategoryDescription varchar(50) \n)\n\nwith data looking like\n\nCategoryIdParentCategoryIdCategoryDescription\n123nullf...
INSERT INTO tblExcel (ename, position, phone, email) VALUES ('Burton, Andrew', 'Web Developer / Network Assistant', '876-9259', 'aburton@wccs.edu') I've got an Access table that has five fields: id, ename, position, phone, and email...each one is plain text field with 50 characters, save for position which is 255 and ...
It looks like you encountered a syntax error with your SQL `INSERT INTO` statement while trying to insert data into your Access database. There are a few common reasons for such an error, especially when working with Microsoft Access. Here are a few things to check: 1. **Field Names**: Ensure that the field names (`en...
14,365
[ { "from": "human", "value": "INSERT INTO tblExcel (ename, position, phone, email) VALUES ('Burton, Andrew', 'Web Developer / Network Assistant', '876-9259', 'aburton@wccs.edu')\n\nI've got an Access table that has five fields: id, ename, position, phone, and email...each one is plain text field with 50 char...
What is the best way to make a <div> fade away after a given amount of time (without using some of the JavaScript libraries available). I'm looking for a very lightweight solution not requiring a huge JavaScript library to be sent to the browser.
You can achieve a fade-out effect for a `<div>` using just CSS and a small amount of vanilla JavaScript. The following is a simple solution that does not require any external libraries. ### HTML ```html <div id="fadeOutDiv">This div will fade away!</div> ``` ### CSS ```css #fadeOutDiv { opacity: 1; transition...
16,426
[ { "from": "human", "value": "What is the best way to make a <div> fade away after a given amount of time (without using some of the JavaScript libraries available).\nI'm looking for a very lightweight solution not requiring a huge JavaScript library to be sent to the browser.\n" }, { "from": "gpt", ...
My ASP.NET web app needs to support the ability for users to create their own forms, complete with textboxes, dropdowns, radio buttons with some logic (required field, etc.). Is there some third party tool that's already geared towards this?
Yes, there are several third-party tools and libraries that can help you implement a dynamic form builder in your ASP.NET web application. Here are some popular options: 1. **Telerik UI for ASP.NET AJAX or MVC**: - Telerik offers a rich set of UI controls including a Form Designer that allows users to create comple...
16,862
[ { "from": "human", "value": "My ASP.NET web app needs to support the ability for users to create their own forms, complete with textboxes, dropdowns, radio buttons with some logic (required field, etc.). Is there some third party tool that's already geared towards this?\n" }, { "from": "gpt", "...
I have a some JPA entities that inherit from one another and uses discriminator to determine what class to be created (untested as of yet). @Entity(name="switches") @DiscriminatorColumn(name="type") @DiscriminatorValue(value="500") public class DmsSwitch extends Switch implements Serializable {} @MappedSuperclass publ...
In JPA, if you have an inheritance hierarchy and you want to reference the base class (the superclass) in your entity, you can do that by simply declaring the relationship with the base class in your `SwitchAccounts` entity. In your case, you are using `DmsSwitch` as a subclass of `Switch`, and you want to reference ...
18,555
[ { "from": "human", "value": "I have a some JPA entities that inherit from one another and uses discriminator to determine what class to be created (untested as of yet).\n@Entity(name=\"switches\")\n@DiscriminatorColumn(name=\"type\")\n@DiscriminatorValue(value=\"500\")\npublic class DmsSwitch extends Switch...
I have an immutable class with some private fields that are set during the constructor execution. I want to unit test this constructor but I'm not sure the "best practice" in this case. Simple Example This class is defined in Assembly1: public class Class2Test { private readonly string _StringProperty; public...
When it comes to unit testing an immutable class, especially one where fields are set through the constructor, there are a few best practices and strategies you can follow to ensure that your tests are meaningful and cover your use case effectively. Here’s a revised example based on the concerns you mentioned: ### 1. ...
14,768
[ { "from": "human", "value": "I have an immutable class with some private fields that are set during the constructor execution. I want to unit test this constructor but I'm not sure the \"best practice\" in this case.\nSimple Example\nThis class is defined in Assembly1:\npublic class Class2Test\n{\n priv...
I have written a DLL that uses MS Word to spell check the content of a RichtextBox. The project uses Microsoft Word 11.0 Object Library. I have read that you can use that reference on machines using that version of Word or later, and that seem to be true. However ... When I run the dll in a test app on a machine with ...
The performance issues you're experiencing when automating Microsoft Word for spell checking in your DLL can be attributed to a variety of factors, but it is not necessarily due to fundamental differences in the Object Library between Word 2003 and Word 2007. Instead, it could be due to several other reasons related to...
16,111
[ { "from": "human", "value": "I have written a DLL that uses MS Word to spell check the content of a RichtextBox. The project uses Microsoft Word 11.0 Object Library. I have read that you can use that reference on machines using that version of Word or later, and that seem to be true. \nHowever ... When I ru...
I have an application that we're trying to migrate to 64bit from 32bit. It's .NET, compiled using the x64 flags. However, we have a large number of DLLs written in FORTRAN 90 compiled for 32bit. The functions in the FORTRAN DLLs are fairly simple: you put data in, you pull data out; no state of any sort. We also d...
Unfortunately, you cannot directly call 32-bit DLLs from a 64-bit process in a .NET application, as you have observed. The common approaches to manage this scenario do have trade-offs. Here are some options you can consider: 1. **COM Interop**: As you mentioned, creating COM wrappers for the 32-bit DLLs is a common ap...
17,465
[ { "from": "human", "value": "I have an application that we're trying to migrate to 64bit from 32bit. It's .NET, compiled using the x64 flags. However, we have a large number of DLLs written in FORTRAN 90 compiled for 32bit. The functions in the FORTRAN DLLs are fairly simple: you put data in, you pull d...
SQL Server 2000 doesn't seem to support the xml based .xlsx file types. Besides converting the file to a 97-2003 file type, how else can I achieve this?
SQL Server 2000 indeed does not natively support the newer .xlsx file format since it was released before the introduction of this format in Office 2007. If you cannot convert the .xlsx file to a 97-2003 (.xls) format, here are a few alternative methods to import data from an .xlsx file into SQL Server 2000: 1. **Use ...
17,007
[ { "from": "human", "value": "SQL Server 2000 doesn't seem to support the xml based .xlsx file types. Besides converting the file to a 97-2003 file type, how else can I achieve this? \n" }, { "from": "gpt", "value": "SQL Server 2000 indeed does not natively support the newer .xlsx file format s...
I'm wondering if anyone has any experience using log4net in a multi-threaded environment like asp.net. We are currently using log4net and I want to make sure we won't run into any issues.
Using log4net in a multi-threaded environment, such as an ASP.NET application, is generally safe and should work well, provided you follow some best practices. Here are a few points to keep in mind to ensure that you make the most out of log4net in a multi-threaded context: 1. **Thread Safety**: Log4net is designed to...
18,595
[ { "from": "human", "value": "I'm wondering if anyone has any experience using log4net in a multi-threaded environment like asp.net. We are currently using log4net and I want to make sure we won't run into any issues.\n" }, { "from": "gpt", "value": "Using log4net in a multi-threaded environment...
I have a class holding complex scientific computations. It is set up to only allow a user to create a properly instantiated case. To properly test the code, however, requires setting internal state variables directly, since the reference documents supply this data in their test cases. Done improperly, however, it ca...
It sounds like you're looking for a way to manage access to a method that should be used only in a specific context (e.g., unit testing) while discouraging general use by end-users. Here are several strategies you might consider, some of which may suit your requirements: 1. **Use a `friend` class (C++ specific)**: If ...
15,945
[ { "from": "human", "value": "I have a class holding complex scientific computations. It is set up to only allow a user to create a properly instantiated case. To properly test the code, however, requires setting internal state variables directly, since the reference documents supply this data in their tes...
Has anyone seen this error before? An error occurred creating the configuration section handler for cachingConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's ...
The error message you're encountering indicates that there is a version mismatch between the `Microsoft.Practices.EnterpriseLibrary.Caching` assembly that your application expects and the one that is being loaded at runtime. This can happen for several reasons, especially when dealing with assembly references in .NET, ...
16,818
[ { "from": "human", "value": "Has anyone seen this error before?\nAn error occurred creating the configuration section handler for cachingConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of...
Several of my ajax applications in the past have used GET request but now I'm starting to use POST request instead. POST requests seem to be slightly more secure and definitely more url friendly/pretty. Thus, i'm wondering if there is any reason why I should use GET request at all.
Using GET and POST requests has different implications and is suitable for different scenarios. Here are some key considerations for each: ### When to Use GET: 1. **Data Retrieval**: GET requests are intended for retrieving data. If you are fetching information from a server without altering any state, GET is the app...
18,089
[ { "from": "human", "value": "Several of my ajax applications in the past have used GET request but now I'm starting to use POST request instead. POST requests seem to be slightly more secure and definitely more url friendly/pretty. Thus, i'm wondering if there is any reason why I should use GET request at a...
I am wondering what primers/guides/tutorials/etc. are out there for learning to rewrite URLs using Apache/.htaccess? Where is a good place to start? My primary interest is learning how to point certain directories to others, and how to use portions of a URL as parameters to a script (i.e. "/some/subdirs/like/this" => "...
Learning to rewrite URLs with Apache's mod_rewrite module and the `.htaccess` file is a great way to create cleaner, user-friendly URLs and improve your site's SEO. Here are some resources and a basic guide to get you started. ### Resources and Guides 1. **Apache Official Documentation**: - [Apache mod_rewrite doc...
15,036
[ { "from": "human", "value": "I am wondering what primers/guides/tutorials/etc. are out there for learning to rewrite URLs using Apache/.htaccess? Where is a good place to start?\nMy primary interest is learning how to point certain directories to others, and how to use portions of a URL as parameters to a s...
What is the resolution of the image for the tab bar item? And also, please provide some other useful information regarding that tab item image. Thanks in advance.
In iOS development, tab bar item images should be provided in different resolutions to accommodate various device screen sizes. Here are the recommended resolutions for the tab bar item images: 1. **Standard resolution**: 24x24 points (which corresponds to 48x48 pixels for standard resolution devices). 2. **Retina res...
19,752
[ { "from": "human", "value": "What is the resolution of the image for the tab bar item?\nAnd also, please provide some other useful information regarding that tab item image.\nThanks in advance.\n" }, { "from": "gpt", "value": "In iOS development, tab bar item images should be provided in differe...
I need help logging errors from T-SQL in SQL Server 2000. We need to log errors that we trap, but are having trouble getting the same information we would have had sitting in front of SQL Server Management Studio. I can get a message without any argument substitution like this: SELECT MSG.description from master.dbo.s...
In SQL Server 2000, getting detailed error messages including argument substitutions can be a bit tricky, especially since the error messages you retrieve from `sysmessages` are stored as templates with placeholders (`%s` or other format specifiers). Unfortunately, SQL Server 2000 does not provide a built-in way to ret...
15,966
[ { "from": "human", "value": "I need help logging errors from T-SQL in SQL Server 2000. We need to log errors that we trap, but are having trouble getting the same information we would have had sitting in front of SQL Server Management Studio.\nI can get a message without any argument substitution like this...
I generate a ClearQuest query using the Query Wizard. In the Query Editor, I am able to select a filter for a given field. However, I want to refine the query using the SQL Editor, but then I loose the ability to have a dynamic filter. How can I resolve this.
When you create a query in IBM Rational ClearQuest using the Query Wizard and then switch to the SQL Editor to refine the query, you might lose some of the dynamic filter capabilities that the Query Wizard provides. However, you can maintain dynamic filtering in your SQL query by utilizing parameters. Here's how to ach...
18,437
[ { "from": "human", "value": "I generate a ClearQuest query using the Query Wizard. In the Query Editor, I am able to select a filter for a given field. However, I want to refine the query using the SQL Editor, but then I loose the ability to have a dynamic filter. How can I resolve this.\n" }, { "fr...
If I load the nextimg URL manually in the browser, it gives a new picture every time I reload. But this bit of code shows the same image every iteration of draw(). How can I force myimg not to be cached? <html> <head> <script type="text/javascript"> function draw(){ var canvas = document.getElementB...
To ensure that `myimg` does not get cached and retrieves a new image each time, you can modify the URL used for loading the image by appending a unique query parameter to it. A common technique is to use a timestamp or a random number. This way, each request will be considered unique by the browser. Here’s how you can...
19,117
[ { "from": "human", "value": "If I load the nextimg URL manually in the browser, it gives a new picture every time I reload. But this bit of code shows the same image every iteration of draw().\nHow can I force myimg not to be cached?\n<html>\n <head>\n <script type=\"text/javascript\">\n function d...
I've opened a new window with window.open() and I want to use the reference from the window.open() call to then write content to the new window. I've tried copying HTML from the old window to the new window by using myWindow.document.body.innerHTML = oldWindowDiv.innerHTML; but that's doesn't work. Any ideas?
When you use `window.open()` to create a new window, you can manipulate the new window's document using the returned reference. However, if you're trying to copy HTML content from one window to another, you have to ensure a few things: 1. **Same-Origin Policy**: Make sure that the new window is being opened to a URL t...
18,103
[ { "from": "human", "value": "I've opened a new window with window.open() and I want to use the reference from the window.open() call to then write content to the new window. I've tried copying HTML from the old window to the new window by using myWindow.document.body.innerHTML = oldWindowDiv.innerHTML; but...
Is there a way to respond to the back button being hit (or backspace being pressed) in javascript when only the location hash changes? That is to say when the browser is not communicating with the server or reloading the page.
Yes, you can respond to changes in the browser's location hash in JavaScript by using the `hashchange` event. This event is fired whenever the fragment identifier (the part of the URL after the `#`) changes, which happens when the back button is clicked (if it changes the hash) or when the backspace key is pressed and ...
17,635
[ { "from": "human", "value": "Is there a way to respond to the back button being hit (or backspace being pressed) in javascript when only the location hash changes? That is to say when the browser is not communicating with the server or reloading the page.\n" }, { "from": "gpt", "value": "Yes, y...
What I would like is be able to generate a simple report that is the output of svn log for a certain date range. Specifically, all the changes since 'yesterday'. Is there an easy way to accomplish this in Subversion besides grep-ing the svn log output for the timestamp? Example: svn -v log -d 2008-9-23:2008-9:24 > r...
Yes, you can easily generate a report of changes in a specified date range using the `svn log` command without needing to use `grep`. Subversion allows you to specify a date range directly with the `-d` option. To generate a report for all changes since yesterday, you can run the following command: ```bash svn log -v...
20,092
[ { "from": "human", "value": "What I would like is be able to generate a simple report that is the output of svn log for a certain date range. Specifically, all the changes since 'yesterday'. \nIs there an easy way to accomplish this in Subversion besides grep-ing the svn log output for the timestamp?\nExa...
Do these two keywords have exactly the same effect, or is there something I should be aware of?
To provide a meaningful response, I would need to know which two keywords you're referring to. Different keywords can have different effects based on the context in which they are used, such as programming, SEO, or other fields. Please specify the keywords you're interested in, and I'll be happy to help!
22,725
[ { "from": "human", "value": "Do these two keywords have exactly the same effect, or is there something I should be aware of?\n" }, { "from": "gpt", "value": "To provide a meaningful response, I would need to know which two keywords you're referring to. Different keywords can have different effec...
In a Pygame application, I would like to render resolution-free GUI widgets described in SVG. How can I achieve this? (I like the OCEMP GUI toolkit, but it seems to be bitmap-dependent for its rendering.)
To render resolution-free GUI widgets in a Pygame application using SVG, you can utilize the `svgwrite` library for creating SVG images and `cairosvg` or `svg2png` for rendering these SVG images into surfaces that Pygame can display. Here's a step-by-step guide on how to achieve this: ### Step 1: Install Required Lib...
14,915
[ { "from": "human", "value": "In a Pygame application, I would like to render resolution-free GUI widgets described in SVG.\nHow can I achieve this?\n(I like the OCEMP GUI toolkit, but it seems to be bitmap-dependent for its rendering.)\n" }, { "from": "gpt", "value": "To render resolution-free G...
I've got a few hundred computers running an app. On one computer, I've seen two instances of a single bit being incorrectly set on some strings that I pull out of SQLite. If this was my dev computer I would assume I have a bug somewhere, but there is certainly some number of installations at which point I'll start se...
When dealing with rare hardware-based errors, it's important to consider several factors that influence the likelihood of data corruption. While the exact probabilities can vary widely depending on the specific hardware, configuration, and workload, there are some general rules of thumb and considerations that can guid...
15,516
[ { "from": "human", "value": "I've got a few hundred computers running an app. On one computer, I've seen two instances of a single bit being incorrectly set on some strings that I pull out of SQLite. If this was my dev computer I would assume I have a bug somewhere, but there is certainly some number of i...
This SELECT * FROM SOME_TABLE WHERE SOME_FIELD LIKE '%some_value%'; is slower than this SELECT * FROM SOME_TABLE WHERE SOME_FIELD = 'some_value'; but what about this? SELECT * FROM SOME_TABLE WHERE SOME_FIELD LIKE 'some_value'; My testing indicates the second and third examples are exactly the same. If that's true,...
Your observation is correct that in many SQL databases, the performance of the query using `LIKE` with a specific pattern (i.e., `LIKE 'some_value'`) may be similar to using the equality operator (`=`). However, there are some considerations and nuances to keep in mind when deciding which to use. ### Performance 1. *...
17,281
[ { "from": "human", "value": "This\nSELECT * FROM SOME_TABLE WHERE SOME_FIELD LIKE '%some_value%';\n\nis slower than this\nSELECT * FROM SOME_TABLE WHERE SOME_FIELD = 'some_value';\n\nbut what about this?\nSELECT * FROM SOME_TABLE WHERE SOME_FIELD LIKE 'some_value';\n\nMy testing indicates the second and thi...
What are the best conventions of naming testing-assemblies in .NET (or any other language or platform)? What I'm mainly split between are these options (please provide others!): Company.Website - the project Company.Website.Tests or Company.Website Company.WebsiteTests The problem with the first solution is that it...
Naming conventions for testing assemblies in .NET (or any programming language/platform) can indeed influence the organization and readability of your codebase. The decision on how to name testing projects can depend on various factors such as team preferences, scalability, and clarity. Here are some common conventions...
4,352
[ { "from": "human", "value": "What are the best conventions of naming testing-assemblies in .NET (or any other language or platform)?\nWhat I'm mainly split between are these options (please provide others!):\n\nCompany.Website - the project\nCompany.Website.Tests\n\nor\n\nCompany.Website\nCompany.WebsiteTes...
Is there a way to access the response headers from an HTTP result when using Flash/Flex's URLLoader? Setting the request headers is possible, as is accessing the response code, but getting a hold of the actual response headers seems to be conspicuously lacking... Specifically, I would like to get a hold of the Last-Mod...
In ActionScript 3 (AS3), which is used in Flash/Flex, the `URLLoader` class allows you to load data from a URL, but it does not directly expose the HTTP response headers. However, you can still access certain response information, including headers, through a workaround using the `URLRequest` class and `URLLoader` alon...
18,381
[ { "from": "human", "value": "Is there a way to access the response headers from an HTTP result when using Flash/Flex's URLLoader?\nSetting the request headers is possible, as is accessing the response code, but getting a hold of the actual response headers seems to be conspicuously lacking...\nSpecifically,...
If I wrote this code: typeof(myType).TypeHandle Would it use reflection? How much different from: Type.GetType(string).TypeHandle is it?
Yes, both of the expressions you've provided involve aspects of reflection in .NET, but they are used in slightly different contexts. 1. **`typeof(myType).TypeHandle`**: - Here, `typeof(myType)` is a compile-time operator that retrieves the `Type` object associated with the type `myType`. This means that no runtime...
20,488
[ { "from": "human", "value": "If I wrote this code:\ntypeof(myType).TypeHandle \n\nWould it use reflection?\nHow much different from:\nType.GetType(string).TypeHandle\n\nis it?\n" }, { "from": "gpt", "value": "Yes, both of the expressions you've provided involve aspects of reflection in .NET, but...
Is it possible to have a <div> simultaneously (1) not take up all available width and (2) collapse margins with its neighbors? I learned recently that setting a div to display:table will stop it from expanding to take up the whole width of the parent container -- but now I realize that this introduces a new problem: it...
Yes, you can achieve both criteria—having a `<div>` that does not take up all available width and collapses margins with its neighbors—by using a combination of CSS properties. To prevent the `<div>` from expanding to take up the full width while allowing it to collapse margins with neighboring elements, you can use ...
17,476
[ { "from": "human", "value": "Is it possible to have a <div> simultaneously (1) not take up all available width and (2) collapse margins with its neighbors?\nI learned recently that setting a div to display:table will stop it from expanding to take up the whole width of the parent container -- but now I real...
Currently we have a java webservice that we are trying to connect to via a .NET client. This is all done over SSL. Are there any well known gotchas as this seems to be a problem that has come up again and again. What are the most well known gotchas I should be looking for? The java web service is a SOAP/WSDL. There are...
To ensure that your C# client generates the correct XML structure that matches what the Java web service is expecting, you will need to explicitly manage the namespaces and elements within the serialization process. Here are some key points and approaches to help you achieve this: ### Key Points to Consider 1. **Name...
13,674
[ { "from": "human", "value": "Currently we have a java webservice that we are trying to connect to via a .NET client. This is all done over SSL. Are there any well known gotchas as this seems to be a problem that has come up again and again. What are the most well known gotchas I should be looking for?\nThe ...
I have a scenario where I need to upload a file from one web application and use it in another one. My setup is the following. One server, hosting two web applications in IIS - both are ASP.NET One of the applications is used to administer the other one + a bunch more stuff I need to upload a file from this admin ap...
Your scenario involves two ASP.NET web applications hosted on the same IIS server, where you need to upload a file from one application (the admin app) and make it available for download in the other application. Here’s a recommended approach to accomplish this, along with some considerations: ### File Upload and Stor...
16,166
[ { "from": "human", "value": "I have a scenario where I need to upload a file from one web application and use it in another one. My setup is the following.\n\nOne server, hosting two web applications in IIS - both are ASP.NET \nOne of the applications is used to administer the other one + a bunch more stuf...
I've started figuring out drupal, and so far most of the results are just ugly. May be I need to learn it in something similar to a real-life project. I thought — to reproduce this site's functionality might be a good learning project. But I need help. :) Without assuming this site is based on drupal (it most likely is...
Building a site with functionality similar to another site in Drupal can be an excellent way to learn the platform, and it’s definitely possible to replicate a variety of functionalities using existing Drupal modules and configurations. Here’s a general approach and some suggestions to guide you through your project. ...
15,714
[ { "from": "human", "value": "I've started figuring out drupal, and so far most of the results are just ugly.\nMay be I need to learn it in something similar to a real-life project.\nI thought — to reproduce this site's functionality might be a good learning project. But I need help. :)\nWithout assuming thi...
What book or website would you recommend to learn about QEMU? I'd like to see some usage examples as well as how to use the APIs.
To learn about QEMU, there are several resources that can help you understand its usage, configurations, and APIs. Here are some recommendations: ### Books 1. **"QEMU: A Fast and Portable Emulator"** by Anthony Liguori and others (various online resources): - While there may not be a dedicated book specifically fo...
19,083
[ { "from": "human", "value": "What book or website would you recommend to learn about QEMU? I'd like to see some usage examples as well as how to use the APIs.\n" }, { "from": "gpt", "value": "To learn about QEMU, there are several resources that can help you understand its usage, configurations...
I'm trying to do the following without too much special case code to deal with invalidated POSITIONs etc: What's the best way to fill in the blanks? void DeleteUnreferencedRecords(CAtlMap<Record>& records) { for(____;____;____) { if( NotReferencedElsewhere(record) ) { // Delete record ...
To fill in the blanks in your `DeleteUnreferencedRecords` function, you need to iterate through the records in the `CAtlMap<Record>` collection, check if each record is not referenced elsewhere, and if so, remove it from the collection. However, you have to be cautious when deleting items from a collection while iterat...
19,393
[ { "from": "human", "value": "I'm trying to do the following without too much special case code to deal with invalidated POSITIONs etc:\nWhat's the best way to fill in the blanks?\nvoid DeleteUnreferencedRecords(CAtlMap<Record>& records)\n{\n for(____;____;____)\n {\n if( NotReferencedElsewhere(reco...
In my Silverlight application, I can't seem to bring focus to a TextBox control. On the recommendation of various posts, I've set the IsTabStop property to True and I'm using TextBox.Focus(). Though the UserControl_Loaded event is firing, the TextBox control isn't getting focus. I've included my very simple code belo...
The issue you're experiencing with focusing the `TextBox` in a Silverlight application might be related to the timing of the `Focus` call in relation to the rendering of the user interface. In Silverlight, the `Loaded` event may not always guarantee that the control is ready to receive focus, particularly if there are ...
20,263
[ { "from": "human", "value": "In my Silverlight application, I can't seem to bring focus to a TextBox control. On the recommendation of various posts, I've set the IsTabStop property to True and I'm using TextBox.Focus(). Though the UserControl_Loaded event is firing, the TextBox control isn't getting focu...
Flat files and relational databases give us a mechanism to serialize structured data. XML is superb for serializing un-structured tree-like data. But many problems are best represented by graphs. A thermal simulation program will, for instance, work with temperature nodes connected to each others through resistive edge...
Serializing graph structures effectively is indeed a nuanced challenge, as graphs can be more complex than trees or tabular data due to their non-linear relationships and the potential for cycles. There are several methods and formats for serializing graphs, each with its own advantages and trade-offs. Here are some co...
13,980
[ { "from": "human", "value": "Flat files and relational databases give us a mechanism to serialize structured data. XML is superb for serializing un-structured tree-like data.\nBut many problems are best represented by graphs. A thermal simulation program will, for instance, work with temperature nodes conne...
(See related question: How do I report an error midway through a chunked http repsonse without closing the connection?) In my case, the #1 desire is for the browser to display an error message. No matter how uninformative. Closing the ServletResponse outputStream obviously doesn't work. Neither does throwing an excep...
When dealing with chunked HTTP responses in a servlet, it's quite challenging to report an error midway through streaming large data, especially if you're looking for the browser to display an error message to the user. Here are some strategies you can consider: ### Strategies for Reporting Errors Midway Through Chunk...
17,562
[ { "from": "human", "value": "(See related question: How do I report an error midway through a chunked http repsonse without closing the connection?)\nIn my case, the #1 desire is for the browser to display an error message. No matter how uninformative.\nClosing the ServletResponse outputStream obviously do...
I haven't found an answer elsewhere and this doesn't appear to have been asked yet on SO. When creating an event binding in wxPython, is it possible to pass additional arguments to the event? For example, this is the normal way: b = wx.Button(self, 10, "Default Button", (20, 20)) self.Bind(wx.EVT_BUTTON, self.O...
Yes, in wxPython, you can pass additional arguments to event handler functions by using a lambda or a partial function from the `functools` module. This way, you can maintain a single event handler while distinguishing between different widgets based on the additional arguments. ### Using a Lambda Function Here's how...
15,074
[ { "from": "human", "value": "I haven't found an answer elsewhere and this doesn't appear to have been asked yet on SO.\nWhen creating an event binding in wxPython, is it possible to pass additional arguments to the event? For example, this is the normal way:\nb = wx.Button(self, 10, \"Default Button\", (20,...
According to the answers to this question, I cannot embed a file version in my .msi file. The installer that I give the client needs to have a file version. So, what I want to do is create a self-extracting executable containing the msi file and the setup.exe generated by Visual Studio, and put the file version on th...
It's great to hear that you found a solution to your original question! However, for others who might have similar needs or if you’re still interested in self-extracting executables, here are a few free utilities that you could consider for creating self-extracting archives with version information, automatic extractio...
17,905
[ { "from": "human", "value": "According to the answers to this question, I cannot embed a file version in my .msi file. \nThe installer that I give the client needs to have a file version. \nSo, what I want to do is create a self-extracting executable containing the msi file and the setup.exe generated by Vi...
It seems to me that phpMyAdmin imports tables by default with collation latin1_swedish_ci, how i change this?
When importing tables into phpMyAdmin, the default collation is typically set based on the character set and collation of the database you are importing into. If you want to change the collation used when importing tables, you have a couple of options: ### Option 1: Change the Database Collation 1. **Change Database ...
18,037
[ { "from": "human", "value": "It seems to me that phpMyAdmin imports tables by default with collation latin1_swedish_ci, how i change this?\n" }, { "from": "gpt", "value": "When importing tables into phpMyAdmin, the default collation is typically set based on the character set and collation of th...
I'm looking to call a subprocess with a file descriptor opened to a given pipe such that the open() call does not hang waiting for the other side of the pipe to receive a connection. To demonstrate: $ mkfifo /tmp/foobar.pipe $ some_program --command-fd=5 5</tmp/foobar.pipe In this case, some_program is not run until s...
In bash, you can't directly open a FIFO (named pipe) in a non-blocking mode using the built-in `exec` command because bash does not expose file descriptor options like O_NONBLOCK. However, you can work around this limitation by using a subshell to create a non-blocking file descriptor and then pass it to the program yo...
18,748
[ { "from": "human", "value": "I'm looking to call a subprocess with a file descriptor opened to a given pipe such that the open() call does not hang waiting for the other side of the pipe to receive a connection.\nTo demonstrate:\n$ mkfifo /tmp/foobar.pipe\n$ some_program --command-fd=5 5</tmp/foobar.pipe\n\...
Is there some code or a library that lets me control the 7-Zip unpacking functionality from C# code?
Yes, you can control the 7-Zip unpacking functionality from C# code by using the `SevenZipSharp` library, which provides a .NET interface for interacting with the 7-Zip functionalities. Here's how you can get started: ### Step 1: Install the SevenZipSharp Library You can install the `SevenZipSharp` library using NuGe...
17,919
[ { "from": "human", "value": "Is there some code or a library that lets me control the 7-Zip unpacking functionality from C# code?\n" }, { "from": "gpt", "value": "Yes, you can control the 7-Zip unpacking functionality from C# code by using the `SevenZipSharp` library, which provides a .NET inter...
Possible Duplicate: quick selection of a random row from a large table in mysql I have seen random rows pulled using queries like this, which are quite inefficient for large data sets. SELECT id FROM table ORDER BY RANDOM() LIMIT 1 I have also seen various other RDBMS-specific solutions that don't work with MySQL....
Yes, the method you've described using two queries is a common and effective approach in MySQL to select a random row without the inefficiency of ordering the entire table randomly. However, there are some enhancements and alternative methods you can consider: ### Option 1: Using the Two-Query Approach with a Subquery...
17,083
[ { "from": "human", "value": "\nPossible Duplicate:\nquick selection of a random row from a large table in mysql \n\nI have seen random rows pulled using queries like this, which are quite inefficient for large data sets. \nSELECT id FROM table ORDER BY RANDOM() LIMIT 1\n\nI have also seen various other RDBM...
How can I write from Java to the Windows Event Log?
To write to the Windows Event Log from a Java application, you typically need to use the Java Native Interface (JNI) to access Windows API functions, since Java does not have built-in support for writing to the Windows Event Log. However, there are easier alternatives using third-party libraries or command-line tools. ...
16,103
[ { "from": "human", "value": "How can I write from Java to the Windows Event Log?\n" }, { "from": "gpt", "value": "To write to the Windows Event Log from a Java application, you typically need to use the Java Native Interface (JNI) to access Windows API functions, since Java does not have built-i...
What is the best way to specify a property name when using INotifyPropertyChanged? Most examples hardcode the property name as an argument on the PropertyChanged Event. I was thinking about using MethodBase.GetCurrentMethod.Name.Substring(4) but am a little uneasy about the reflection overhead.
When implementing the `INotifyPropertyChanged` interface in C#, it is common to raise the `PropertyChanged` event with the name of the property that has changed. While hardcoding the property name as a string is straightforward, it can lead to issues such as typos that won't be caught at compile time. Using reflection...
18,138
[ { "from": "human", "value": "What is the best way to specify a property name when using INotifyPropertyChanged? \nMost examples hardcode the property name as an argument on the PropertyChanged Event. I was thinking about using MethodBase.GetCurrentMethod.Name.Substring(4) but am a little uneasy about the ...
We have a collection of commercial MFC/C++ applications which we sell using Stingray Objective Toolkit, we have source code license and have ported it in the past to Solaris/IRIX/HP-UX/AIX using Bristol Technologies WindU (Windows API on UNIX, including MFC). Any long story short recently about 18 months ago we ported...
Transitioning from the Stingray Objective Toolkit to alternative libraries can indeed be a significant endeavor. Here are a few alternatives to consider, along with insights from developers who have made similar transitions: ### Alternatives to Consider 1. **Ultimate Toolbox**: - **Pros**: Offers a rich set of co...
13,832
[ { "from": "human", "value": "We have a collection of commercial MFC/C++ applications which we sell using Stingray Objective Toolkit, we have source code license and have ported it in the past to Solaris/IRIX/HP-UX/AIX using Bristol Technologies WindU (Windows API on UNIX, including MFC). \nAny long story sh...
Kind of a newbie question, but I am having problems using SNVKit. I am using SVNKit in an application to commit changes to files. I have it successfully adding the files and folders to the working copy, but I am having problems committing it to the respository. The command I am trying to run is 'commit -m "Test Add" /...
It looks like you're facing two issues while using SVNKit to commit changes to your SVN repository. ### Issue 1: Not a Working Copy The error message `svn: '/home/user' is not a working copy` suggests that the path you provided (`/svnroot/project1/`) is not recognized as a working copy. A working copy is a local copy...
16,792
[ { "from": "human", "value": "Kind of a newbie question, but I am having problems using SNVKit. \nI am using SVNKit in an application to commit changes to files. I have it successfully adding the files and folders to the working copy, but I am having problems committing it to the respository.\nThe command I ...
Every time I try to create a new project or solution in visual studio (2005 and 2008), I get an error saying, "Project Creation failed." I even tried running vs in administrative mode, but I still get the same answer. Anyone have any suggestions, in short of uninstalling all of VS and reinstalling it?
The "Project Creation failed" error in Visual Studio 2005 and 2008 can be quite frustrating, but there are several troubleshooting steps you can try before resorting to a complete uninstall and reinstall. Here are some suggestions that may help resolve the issue: 1. **Check Permissions**: Ensure that you have the nece...
16,023
[ { "from": "human", "value": "Every time I try to create a new project or solution in visual studio (2005 and 2008), I get an error saying, \"Project Creation failed.\" I even tried running vs in administrative mode, but I still get the same answer. Anyone have any suggestions, in short of uninstalling all ...
I'm trying to determine what instances of sql server/sql express I have installed (either manually or programmatically) but all of the examples are telling me to run a SQL query to determine this which assumes I'm already connected to a particular instance.
If you're trying to find all instances of SQL Server or SQL Server Express installed on your machine (or on the network) without being connected to a specific instance, there are several methods you can use. Here are a few options: ### Method 1: Using the Command Line You can use the `sqlcmd` utility to list all SQL ...
16,579
[ { "from": "human", "value": "I'm trying to determine what instances of sql server/sql express I have installed (either manually or programmatically) but all of the examples are telling me to run a SQL query to determine this which assumes I'm already connected to a particular instance.\n" }, { "from...
My questions is simple! Would you start learning Smalltalk if you had the time? Why? Why not? Do you already know Smalltalk? Why would you recommend Smalltalk? Why not? Personally I'm a Ruby on Rails programmer and I really like it. However, I'm thinking about Smalltalk because I read various blogs and some people ar...
If I had the time, I would certainly consider learning Smalltalk, and here's why: ### Why I Would Learn Smalltalk: 1. **Pure Object-Oriented Language**: Smalltalk is one of the purest object-oriented programming languages. Everything in Smalltalk is an object, which can deepen one's understanding of object-oriented p...
15,859
[ { "from": "human", "value": "My questions is simple!\n\nWould you start learning Smalltalk if you had the time? Why? Why not?\nDo you already know Smalltalk? Why would you recommend Smalltalk? Why not?\n\nPersonally I'm a Ruby on Rails programmer and I really like it. However, I'm thinking about Smalltalk b...
I would like to extract from a general HTML page, all the text (displayed or not). I would like to remove any HTML tags Any javascript Any CSS styles Is there a regular expression (one or more) that will achieve that?
Using regular expressions to extract text from HTML can be problematic because HTML is not a regular language and can be nested in complex ways. However, for simple cases, you can use regular expressions to achieve your goal to a certain extent. Here’s a step-by-step approach that should work reasonably well for many H...
18,468
[ { "from": "human", "value": "I would like to extract from a general HTML page, all the text (displayed or not).\nI would like to remove \n\nany HTML tags\nAny javascript\nAny CSS styles\n\nIs there a regular expression (one or more) that will achieve that?\n" }, { "from": "gpt", "value": "Using ...
When writing a batch file to automate something on a Windows box, I've needed to pause its execution for several seconds (usually in a test/wait loop, waiting for a process to start). At the time, the best solution I could find uses ping (I kid you not) to achieve the desired effect. I've found a better write-up of it ...
If you’re looking for a simple way to pause execution in a batch file without relying on `ping` or external scripts, there are a few alternatives available, though they may not be as straightforward as the Unix `sleep` command. 1. **Using a loop with `timeout` (Windows 7 and later):** If you are using Windows Vista...
18,568
[ { "from": "human", "value": "When writing a batch file to automate something on a Windows box, I've needed to pause its execution for several seconds (usually in a test/wait loop, waiting for a process to start). At the time, the best solution I could find uses ping (I kid you not) to achieve the desired ef...
Is there a simpler interface for end users to run "queries" on pre-existing SqlServer Analysis Service cubes? I'm looking for a way to deploy the cubes and allow the users to work with the data through a simpler interface than BIDS. Is this even possible?
Yes, it is definitely possible to provide a simpler interface for end users to interact with SQL Server Analysis Services (SSAS) cubes without requiring them to use Business Intelligence Development Studio (BIDS) or SQL Server Data Tools (SSDT). Here are some options you can consider: ### 1. **Excel PivotTables** - **...
16,279
[ { "from": "human", "value": "Is there a simpler interface for end users to run \"queries\" on pre-existing SqlServer Analysis Service cubes? I'm looking for a way to deploy the cubes and allow the users to work with the data through a simpler interface than BIDS. Is this even possible?\n" }, { "fr...