text
stringlengths
8
267k
meta
dict
Q: C# String comparisons: Difference between CurrentCultureIgnoreCase and InvariantCultureIgnoreCase When doing a string comparison in C#, what is the difference between doing a string test = "testvalue"; test.Equals("TESTVALUE", StringComparison.CurrentCultureIgnoreCase); and string test = "testvalue"; test.Equals("...
{ "language": "en", "url": "https://stackoverflow.com/questions/417954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Why does a JS preload appear to take longer than a regular image reference to load? I have a bunch of images that I am preloading inside of a loop. One of these images is also loaded by the html, so I get a good look at how these two different methods perform. For measurement, I am using the Network pane of the Safa...
{ "language": "en", "url": "https://stackoverflow.com/questions/417958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SVN export just the changed files from tags Does anyone know how to export only the changed files from two tags using svn? Lets say I have tag 1.0 and then later fix bugs in the trunk. Next I am ready for a new patch release so I tag it 1.1. Now I want to export the changed files between tag 1.0 and 1.1. Is this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Manipulating textfield values in an iPhone app How do I manipulate textfield variables within an iPhone app? I want to have three text fields, formatted to numbers only, and be able to manipulate the data when I press different buttons. Any help would be appreciated! A: UITextField objects have a "text" property ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Show number of results in gridview based on dropdown? I have a datatable which returns around 30,000 records. I am displaying these records in an ASP:GridView control. I have a dropdown control in which I want the user to be able to select the number of records to display in the GridView. The default should be All...
{ "language": "en", "url": "https://stackoverflow.com/questions/417988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Share Sharepoint lists across sub sites I've got a situation where I want to have a master list at the top level of a Sharepoint site, and then allow the sub-sites to see the master list. I've tried working with Content Types, and either I'm slow and just can't get the concept, or it doesn't seem to apply. Anyone...
{ "language": "en", "url": "https://stackoverflow.com/questions/417996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using constructor from the super class Java does not allow multiple inheritance, meaning that a class cannot inherit from two classes, which does not have anything in common, meaning that they are not on the same inheritance path. However, a class can inherit from more classes, if these classes are super classes of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/417999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I disable a tab inside a TabControl? Is there a way to disable a tab in a TabControl? A: Cast your TabPage to a Control, then set the Enabled property to false. ((Control)this.tabPage).Enabled = false; Therefore, the tabpage's header will still be enabled but its contents will be disabled. A: The TabPage ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "99" }
Q: How do I read back in the output of Data::Dumper? Let's say I have a text file created using Data::Dumper, along the lines of: my $x = [ { foo => 'bar', asdf => undef }, 0, -4, [ [] ] ]; I'd like to read that file back in and get $x back. I tried this: my $vars; { undef $/; $vars = <FILE>; } eval $vars; But i...
{ "language": "en", "url": "https://stackoverflow.com/questions/418027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Visual Studio - rewrite / lifespan FYI - I am a mainframer that moved to the .NET world a couple years ago and has a lot to learn. We are looking at rewriting a Visual FoxPro app into .Net (most likely VB). This project is projected at 4-6 years. We are at the very early stages of the preliminary design right now. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can you change which subversion repository a client is logged in to? On my laptop, I use the computer's name when accessing my svn repository (e.g. svn://computername/repository) with tortoise svn. However, when I'm outside of my network, I need to use an Internet addressable name (e.g. svn://computername.dyndns.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/418038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CPU Utilization of Service DLL? I need to find out the CPU utilization of a service DLL. I have looked in existing samples and we can find CPU utilization for processes. I think DLL will be loaded by services.exe. So is it possible to find out CPU utilization by DLL. I am working in C++ on the Windows platform. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VS2008 Crashes when adding a WCF service I have a Console application hosting a WCF service: Updated this code to run off the app.config file instead of initialising it programatically Uri baseAddress = new Uri("http://localhost:8000/ChatServer/Service"); ServiceHost myHost = new ServiceHost(typeof(ClientSer...
{ "language": "en", "url": "https://stackoverflow.com/questions/418048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I send a stream from a Java applet to an ASP .NET web site? I would like to be able to send a stream of binary data to an asp .net website from a java applet hosted in the same website. I found this link which talks about this issue, but I am unsure how to actually receive the data on the website. The streams...
{ "language": "en", "url": "https://stackoverflow.com/questions/418056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I inherit from multiple extending generic interfaces? I have a few classes such that: public class XMLStatusMessage extends XMLMessage {} public abstract class XMLMessage implements IMessage {} public interface IMessageListener { public void onMessage( IMessage message ); } public interface XMLMessageLi...
{ "language": "en", "url": "https://stackoverflow.com/questions/418064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Best way to test for a variable's existence in PHP; isset() is clearly broken From the isset() docs: isset() will return FALSE if testing a variable that has been set to NULL. Basically, isset() doesn't check for whether the variable is set at all, but whether it's set to anything but NULL. Given that, what's the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/418066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "193" }
Q: How can you fix an error 1958 when using SET PRINTER TO on Vista 64bit in VFP 8 Our VFP 8 application is returning error 1958, which is "Error loading printer driver" when executing the following line of code SET PRINTER TO HP1200 on a customers Vista Business 64bit laptop. The HP1200 is a HP business ink jet mode...
{ "language": "en", "url": "https://stackoverflow.com/questions/418071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET - UpdatePanel and JavaScript Is there a way to execute script when an UpdatePanel process is finished. I have a page that allows "inserting", "copying", and "editing" of a record. This is all done on an UpdatePanel to prevent a page navigation. Somewhere else on the page I would like to print a "flash" messa...
{ "language": "en", "url": "https://stackoverflow.com/questions/418072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Stop echoing ^C to terminal How do I tell my bash to not echo ^C back to terminal? If I just hit Ctrl+C in bash session, nothing is printed in my terminal window. But if I terminate some program with Ctrl+C, sometimes ^C is echoed and printed in my terminal. Is there any way to tell my bash I do not want echoing bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/418073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is there a better jQuery solution to this.form.submit();? I want to trigger the submit event of the form the current element is in. A method I know works sometimes is: this.form.submit(); I'm wondering if there is a better solution, possibly using jQuery, as I'm not 100% sure method works in every browser. Edit: Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/418076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: SQL Server 2005 Generated Create Table Script not working I'm in the process of creating database scripts for an existing database. I'm trying to use SQL Server to generate the scripts for me, but the generated scripts are failing. I'm using the 'Script Table As'>'CREATE To'>'New Query Editor Window' option. I th...
{ "language": "en", "url": "https://stackoverflow.com/questions/418082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: VBA Reference Libraries I'm new to VBA and have been throwing together a small macro application for the Office. We've got about 80 users on essentially identical PC setups, and it will be accessed by all but a few users. I've been playing around with some automation of accessing web pages using the Web Services re...
{ "language": "en", "url": "https://stackoverflow.com/questions/418098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Has anyone tried the trac to fogbugz conversion/import tool? http://our.fogbugz.com/default.asp?W977 I suspect it will be a simple task, but just thought I would ask before I tried it. If you have used it, how did it go? Any caveats or things to help? Can the changes be undone automatically? Anything you would hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/418099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Embedded HTML control for Blackberry? Is there any api for viewing html content from w/in your blackberry application? To be clear, I don't mean launching the browser on top of my app to view a page. But rather rendering the page w/in my app. A: Yes. Check out the net.rim.device.api.browser.field package or the B...
{ "language": "en", "url": "https://stackoverflow.com/questions/418105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C# Run Windows Form Application from Service (and in Vista) I am writing an application in C# that needs to run as a service but also have user interaction. I understand that services have no UI, etc, so I've divided up my program into a windows form application and a service that can communicate with each other. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/418119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What's your naming convention for helper functions? In functional programming, it's often important to optimize any "looping" code to be tail recursive. Tail recursive algorithms are usually split between two functions, however - one which sets up the base case, and another that implements the actual loop. A good (a...
{ "language": "en", "url": "https://stackoverflow.com/questions/418120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Compiler error for modifying a non-const object #include "iostream" #include "vector" class ABC { private: bool m_b; public: ABC() : m_b(false) {} ABC& setBool(bool b) { m_b = b; return *this; } bool getBool() const { return m_b; } }; vo...
{ "language": "en", "url": "https://stackoverflow.com/questions/418121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can i have more then one css file on my html file? I am using the django framework and am using templates, inheriting a lot of admin base templates. What am wondering is: can I have more than one CSS file in one HTML file? i.e. maintain the django admin CSS file but then have another CSS file of my own with differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/418125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ideas on this alternative to ORM + RDBMS? I am currently developing a proof of concept for an alternative data store. The reason why is I need to enhance a read-mostly clustered webapp, but also because I want to free myself from the pain of the sometimes overly-complex ORM+RDBMS solution. Overall the idea is quite ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Can RSS readers follow redirects if the url of the feed changes? We are migrating to a Sharepoint solution and our urls are changing slightly. Are most RSS readers able to follow redirect links without breaking the feed and making an update manually? Most of the documentation I'm reading says that this will work f...
{ "language": "en", "url": "https://stackoverflow.com/questions/418154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IIS 6 - sort websites by name In IIS 6 on a Server 2003 box, when I view the list of websites, it doesn't list them in alphabetical order. I'm assuming that it sorts them on their website ID. I have one server that won't be getting upgraded to 2008 for a while and it hosts about 40 websites. It has become quite ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I properly set the height of my Silverlight UserControl? I can't get my silverlight control to go any taller than 600. Please see code below to reproduce this behavior. Notice that the color bands stop at exaclty 600. Can anyone tell me how to get this example to Show all rows in the grid? <html xmlns="ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/418171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does Python's string.printable contains unprintable characters? I have two String.printable mysteries in the one question. First, in Python 2.6: >>> string.printable '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c' Look at the end of the string, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/418176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How does Spring 2.5 map the incoming request data to ModelAttribute command? I have used Spring 2.0 and now I am using Spring 2.5 Natually, Spring 2.5 made life very easy as far as the Web Controllers are concerned. The question keeps coming in my mind that in 2.0 we had to set the command class and accordingly the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySql and inserting data in a link table, how to? What is the trick in MySql (Version 4) to write from PHP thtree Inserts and to be sure that we can link tables properly. [Table1]-[LinkTable]-[Table2] In the PHP code I create an Insert that add 1 row in table 1 and an other Insert that add an other row in table 2. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is my Relational Algebra correct? I have a database assignment which I have to create some relational algebra for two problems. I feel fairly all right with the majority of it, but I just get confused when trying to project attributes out of a table which is joined to another table. for example is this correct? Q1) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use LINQ to return substring of FileInfo.Name I would like to convert the below "foreach" statement to a LINQ query that returns a substring of the file name into a list: IList<string> fileNameSubstringValues = new List<string>(); //Find all assemblies with mapping files. ICollection<FileInfo> files = codeTo...
{ "language": "en", "url": "https://stackoverflow.com/questions/418187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Annotating inherited properties for persistence Assuming I have a class A as follows: class A{ int id; int getId(){}; void setId(int id){}; } And a class B as follows: @Entity @Table(name="B") class B extends A{ string name; @Column(length=20) string getName(){} void setName(){} } How can I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/418197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Accessing half-duplex serial port with POSIX I'm asked to read from and write to a half-duplex serial connection using POSIX calls (more specifically, writing in C on Linux 2.6.x). I'm having slight troubles finding detailed information on that particular model (most pages concentrate on full-duplex) and as I am get...
{ "language": "en", "url": "https://stackoverflow.com/questions/418203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check that a path has a sticky bit in python? How to check with python if a path has the sticky bit set? A: import os def is_sticky(path): return os.stat(path).st_mode & 01000 == 01000 A: os.stat() will return a tupple of information about the file. The first item will be the mode. You would then be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What type of service should I use for Silverlight 2 data? There is ASMX, WCF, REST, and ADO.NET Data Services... I've used WCF and ASMX succesfully with Silverlight 2, but what about the others? What are the pros and cons of using each type of service with Silverlight 2? A: WCF is probably what you want, since it...
{ "language": "en", "url": "https://stackoverflow.com/questions/418207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What problems are easy to spot in a dependency graph? What are the things I should be looking for when I produce a dependency graph? Or to put it another way, what are the characteristics of a good looking graph vs a bad one? Edit: The context here is my first look at my assemblies in NDepend. A: The biggest proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/418210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I fix the CSS on my website so large images don't overflow their container? I have a really cool website that allows people to upload images. Sometimes there images are really large, as seen in the below div: ![Overflow][1] Is there a style that can I add to my DIVs to fix this? Link A: You can use the CSS...
{ "language": "en", "url": "https://stackoverflow.com/questions/418218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Freeze one or more grid columns Is it possible to freeze a grid column in Dynamics Ax so that as the user scrolls to the right the first column or two continues to show and doesn't scroll out of view? A: Unfortunately, this is not possible in Dynamics AX. A: Since Excel solves this so easily, and exporting to exc...
{ "language": "en", "url": "https://stackoverflow.com/questions/418223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing IInternetZoneManager in .NET I'm trying to implement IInternetZoneManager in .NET with Webbrowser Control but I have no clue what to do. I couldn't find any managed code example about this implementation. I'm pretty bad about OLE stuff. Can anyone provide a sample on this? I spend about 2 days with no l...
{ "language": "en", "url": "https://stackoverflow.com/questions/418230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java drivers for data acquisition hardware? I need to do some data acquisition & would like to use Java to program my data acquisition application. Right now I am using a LabJack which has a Java wrapper for its driver & it's working ok for simple stuff but I need to upgrade to something real. anyone aware of a data...
{ "language": "en", "url": "https://stackoverflow.com/questions/418261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Deploy compact framework without restart When you use visual studio to deploy to a windows mobile device it automatically picks the correct cab file and installs the compact framework onto that device. All without requiring a restart. If you pick the same cab file and install it using active sync once the install is...
{ "language": "en", "url": "https://stackoverflow.com/questions/418262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to tell what value types are initialized to by the CLR This pertains to C# & the .NET Framework specifically. It's best practice not to initialize the following types in the .NET framework because the CLR initializes them for you: int, bool, etc. and same for setting an object to null (I believe). For example y...
{ "language": "en", "url": "https://stackoverflow.com/questions/418265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the fastest way(s) to loop through a large data chunk on a per-bit basis I am running through a memory block of binary data byte-wise. Currently I am doing something like this: for (i = 0; i < data->Count; i++) { byte = &data->Data[i]; ((*byte & Masks[0]) == Masks[0]) ? Stats.FreqOf1++; // syntax ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Practices to prevent/control image content Dead code is easily recognised and eliminated by having code reviews, however, when it comes to images - unused images still get into our version control. Is there any clean way of organising graphic content so that a direct correlation exists between web pages and image fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/418270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Strategies for the diagnosis of Java memory issues I've been tasked with debugging a Java (J2SE) application which after some period of activity begins to throw OutOfMemory exceptions. I am new to Java, but have programming experience. I'm interested in getting your opinions on what a good approach to diagnosing a...
{ "language": "en", "url": "https://stackoverflow.com/questions/418272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to reverse lines of a text file? I'm writing a small shell script that needs to reverse the lines of a text file. Is there a standard filter command to do this sort of thing? My specific application is that I'm getting a list of Git commit identifiers, and I want to process them in reverse order: git log --prett...
{ "language": "en", "url": "https://stackoverflow.com/questions/418280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Unit testing with ASP.NET MVC model binders I was wondering the best practice for unit-testing controller actions that utilize model binding. [AcceptVerbs(HttpVerbs.Get)] public ActionResult AddProduct(Product product) { } I was wondering how you invoke the controller's method for unit testing. If you try somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/418284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can the Google Search appliance generate a report showing broken links on your site? I know the Google Search Appliance has access to this information (as this factors into the PageRank Algorithm), but is there a way to export this information from the crawler appliance? External tools won't work because a significa...
{ "language": "en", "url": "https://stackoverflow.com/questions/418288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What does the '#' symbol mean in a UML class diagram? I was reading Algorithms in a Nutshell (O'Reilly) and came across this symbol in a class diagram. My guess is that it means the member is protected, but I wanted to see if anyone knows for sure what it means. A: Add also to : ~ Indicates package-private (or def...
{ "language": "en", "url": "https://stackoverflow.com/questions/418308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: VBA Status Bar I am working on a Word VBA macro app for 80 or so users. The office has high staff turnover, so training suffers, and so one of the self imposed requirements for this project is comprehensive, friendly documentation. However, to supplement this, and to save newbies having to open up a 100 page documen...
{ "language": "en", "url": "https://stackoverflow.com/questions/418316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Generate a range of dates using SQL I have a SQL query that takes a date parameter (if I were to throw it into a function) and I need to run it on every day of the last year. How to generate a list of the last 365 days, so I can use straight-up SQL to do this? Obviously generating a list 0..364 would work, too, sinc...
{ "language": "en", "url": "https://stackoverflow.com/questions/418318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How "safe" are Anonymous Types and Reflection together? I guess this could also be asked as to how long the created type name is attached to an anonymous type. Here's the issue: A blog had something like this: var anonymousMagic = new {test.UserName}; lblShowText.Text = lblShowText .Text ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why does the CakePHP Authorization Componentent automatically logout when opening two sites in parallel? I have a problem within my CakePHP application: I use the Authorization Component for the login/logout mechanisms. Unfortunately users are logged out automatically when they try to open two or more php pages at t...
{ "language": "en", "url": "https://stackoverflow.com/questions/418329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Recommend good lightweight Task Managment applications for PC Can anyone recommend a good task management application for PC? I used to use Palm Desktop and loved it but now I use a Black Berry and Outlook at work, however I find Outlook's task functionality fairly painful to use. Going back to Palm Desktop could ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fact/Dim Table Time Value I'm setting up Fact and Dim tables and trying to figure out the best way to setup my time values. AdventureworksDW uses a timekey (UID) for each time entry in the DimTime table. I'm wondering there's any reason I shouldn't just use a time value instead i.e. 0106090800 (My granularity is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programming Monitor positioning When I plug my laptop into my docking station, I want my external monitor to be the attached, and the primary monitor, positioned on the left hand side. To do this, I have to go into control panel, open display properties, position the monitors, attach, set to primary, then hit ok. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/418345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I fix "`as_number' is not a Pari function name" in Math::Pari called by Math::BigInt? On Perl 5.8.5 I am seeing the error listed in the question. I am running these version modules: * *Math::BigInt: 1.89 *Math::BigInt::FastCalc: 0.19 *Math::BigInt::GMP: 1.24 *Math::BigInt::Pari: 1.13 *Math::BigRat: 0.2...
{ "language": "en", "url": "https://stackoverflow.com/questions/418347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Debugging Howto I am new to C and I am using MS Visual C++ 6.0 for now. I am currently working on sorting algorithms and i want to track the values of each variable automatically. This may provide me insight on how the algorithm does the hard work. That is, I don't want to write what is produced by what on a paper :...
{ "language": "en", "url": "https://stackoverflow.com/questions/418354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Non-Linux Implementations of boost::random_device Currently, Boost only implements the random_device class for Linux (maybe *nix) systems. Does anyone know of existing implementations for other OS-es? Ideally, these implementations would be open-source. If none exist, how should I go about implementing a non-deter...
{ "language": "en", "url": "https://stackoverflow.com/questions/418358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Boustrophedon Text Editing? I would like to edit text in boustrophedon in emacs. For those of you who don't know boustrophedon text direction goes "like an ox turns" in a field or like a printer inkjet. For the same reasons this is efficient on a farm or in a printer this text is very efficient to read once you get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Asp.net mvc: Posting Back from the View Is it considered better practice to post back to the same controller that did the rendering and redirecting from original controller if necessary? Or is it just the same if one jumps to different controllers from the view? A: I create two overloaded actions in the controller,...
{ "language": "en", "url": "https://stackoverflow.com/questions/418366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a Ruby equivalent to Perl's Data::Rmap? Perl's Data::Rmap allows you to recursively evaluate a BLOCK over a list of data structures (locally setting $_ to each element) and return the list composed of the results of such evaluations. $_ can be used to modify the elements. This is useful for iterating over t...
{ "language": "en", "url": "https://stackoverflow.com/questions/418386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GridView Vs. HTML Table (ASP.net 2.0) For full control of your application, do you prefer a GridView or a HTML table? And why? For instance, I need to create on-the-fly hyperlinks-per-row in a GridView/HTML table. What object would be more easy to add that feature (or others like this one)? Note: I'm creating progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/418399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What's the best action persistence technique for a Catalyst application? I'm writing a Catalyst application that's required to have a fairly short session expiration (15 minutes). I'm using the standard Catalyst framework authentication modules, so the user data is stored in the session -- i.e., when your session ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/418406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using Core Animation, is there a way to group animations for several CALayers? I have a situation where I have many CALayers which animate in a "turn based" fashion. I animate the position on each of those CALayers, but they have the exact same duration. Once all of those CALayers are finished animating, a new "turn...
{ "language": "en", "url": "https://stackoverflow.com/questions/418419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Threading.Timer vs. Forms.Timer The short form of this question: When, if ever, is it appropriate to use the Forms.Timer in a multithreaded WinForms application? More specifically, I am architecting an application that uses multiple System.Threading.Timers to launch processes asynchronously, check queues containing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: What's wrong with my MySQL query? I'm not getting any errors as such just a minor performance issue. EXPLAIN SELECT a.nid, a.title, a.uid, b.parent, b.weight, c.name, d.value FROM table1 AS a INNER JOIN table2 AS b ON a.vid = b.vid AND a.status = 1 INNER JOIN table3 AS c ON c.uid = a.uid INNER JOIN table4 AS d ON d....
{ "language": "en", "url": "https://stackoverflow.com/questions/418428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any drawbacks or gotchas to using Jinja2 templates in Django? After reading the Jinja2 documentation, I'm interested in employing it in future Django projects. However, I'm wondering if anyone has encountered any drawbacks or gotchas when using Jinja2 templates with Django? If so, how did you work around them? I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/418430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Flash Programming - Anyone know how to work with an array of images? A friend has asked me to take a Flash 8.0 static image gallery website and make it dynamic. Most articles I've found for dynamic image galleries involve loading the images on request into an existing movieclip. I can't do this because there are s...
{ "language": "en", "url": "https://stackoverflow.com/questions/418448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change the braces/parenthesis colors in Visual Studio I am not talking about the highlight colors but the actual colors. I got a color scheme with light background color but the braces/parentheses are barely visible. Anyone knows how to change this? Btw this is for C# because C++ seems to color braces/parenth...
{ "language": "en", "url": "https://stackoverflow.com/questions/418452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Using Alias in Apache ONLY if local directory not present? We're running a reseller web host, and aliasing a particular directory for ALL the sites within. This is all happening through WHM/Cpanel, which could possibly complicate my question. * *We want all hosts to run their "/concrete" directory through a shar...
{ "language": "en", "url": "https://stackoverflow.com/questions/418463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is a preference for brute force solutions a bad sign? I'm a beginner C++ programmer, and to stretch my mind I've been trying some of the problems on projecteuler.net. Despite an interest in maths at school, I've found myself automatically going for brute force solutions to the problems, rather than looking for somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/418465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What's an easy way to trim N lines from the tail of a file (without the use of 'head')? Say I've got a bunch of files that are all >100 lines long. I'd like to trim off the top 14 lines and the bottom 9 lines, leaving only the lines in the middle. This command will trim off the top fourteen: cat myfile.txt | tail ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Does Rails have a built-in authentication system? I have implemented authentication systems for webapps several times over the years, but before I do it once more, I thought I'd ask if there's a canned solution I should know about. Last time I checked, there was no built-in Rails authentication system and the standa...
{ "language": "en", "url": "https://stackoverflow.com/questions/418469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Silverlight Control won't go higher than 600, bug? Try this example code. Below is the aspx page with the silverlight control, and below that is the xaml code for the grid with colored rows. Notice that the grid has 8 rows of 100 height each, but only the first 6 rows show up. I can't get any control to show larg...
{ "language": "en", "url": "https://stackoverflow.com/questions/418475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I convert XML into a Python object? I need to load an XML file and convert the contents into an object-oriented Python structure. I want to take this: <main> <object1 attr="name">content</object> </main> And turn it into something like this: main main.object1 = "content" main.object1.attr = "name" The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Common Header / Footer with static HTML Is there a decent way with static HTML/XHTML to create common header/footer files to be displayed on each page of a site? I know you can obviously do this with PHP or server side directives, but is there any way of doing this with absolutely no dependencies on the server stitc...
{ "language": "en", "url": "https://stackoverflow.com/questions/418503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: SharePoint 2007 Approval Workflow - Any other person can approve requirement How can I use SharePoint's Content Approval to enforce the rule that any two people in a group can make a change? We have a policy library that any two individuals can update (a modifier and an approver). If I do a group parallel approval, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is it possible to read the last few lines (or 1000 characters say) of a large web page? We need to poll a web page every 5 minutes and the web page is growing rather large. The web page is a directory listing and we need the last line (to get a file name). What is the best way to get just this last line? (If this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to find where a connection is failing I have a website running a basic ASP.NET application that is mostly used from a single location, which is my client's office. The server is at a high-class datacenter. Whenever I've been testing or using my application from outside their office I have consistently good conn...
{ "language": "en", "url": "https://stackoverflow.com/questions/418527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple audio sounds in iPhone app? I've gotten to play a single sound in the iPhone app I've started, but I now desire to play multiple sounds based on a button. To create a separate set of .m and .h files for each audio sounds, and then including them all, doesn't seem the most efficient way to tackle this in ter...
{ "language": "en", "url": "https://stackoverflow.com/questions/418529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: UIPickerView added to uitableviewcontroller.view won't rotate I have a UIPickerView as subview in a UITableViewController, which I want to slide up in place when a certain row is clicked. I have implemented the necessary dataSource and delegate methods, but the pickerview acts weirdly. It acts as if it were mechanic...
{ "language": "en", "url": "https://stackoverflow.com/questions/418535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Has anyone tried building an ASP.NET Session State Provider for Amazon SimpleDB? If not, are there any fundamental limitations of the service that prevent one from being built? A: In response to Garys answer. "If you're hosting your app on EC2, it'll be fine" Even if you're hosting your application on EC2 you shoul...
{ "language": "en", "url": "https://stackoverflow.com/questions/418538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: A random number generator that can get different numbers in < a second I'm in need of a C++ (pseudo, i don't care) random number generator that can get me different numbers every time I call the function. This could be simply the way I seed it, maybe there's a better method, but every random generator I've got doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/418545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: finding a "semi-pro" project for Silverlight, suggestions? I'd like to get my feet wet in Silverlight. I think all the reading and tutorials in the world don't work nearly as well as a real project. Plus I've done tutorials, read some books, listened to podcasts and so on. I'm ready for the next step. I'm not sure h...
{ "language": "en", "url": "https://stackoverflow.com/questions/418574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compile time checking in Design by Contract? I read that compiler can enforce dbc at compile time.. How does it do it? A: As far as I know, the most powerful static DbC language so far is Spec# by Microsoft Research. It uses a powerful static analysis tool called Boogie which in turn uses a powerful Theorem Prover ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Signal fires twice from gtkmm popup list It's been a while since I used GTK+, and the last time I did was in C, not using gtkmm and C++ as I am now. Anyway, I have what I think should be an easy problem to solve: I have a pop-up menu consisting of a list of radio buttons, and when I click one of them I want some ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/418591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I increment a step value to be processed when the page loads in ASP.NET? How do I increment a step value to be processed when the page loads? For example, in the code below the viewstate variable is not incremented until after Page_Load, due to the ASP.NET page lifecycle. protected void Page_Load(object sende...
{ "language": "en", "url": "https://stackoverflow.com/questions/418596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Transaction Scope How does the transaction scope work? How does it know when there is another context being used already and how might I implement another kind of scope in my code. I'm primarily a vb.net developer but I can read the c# if you write in that. In case the above was too vague: I understand what system....
{ "language": "en", "url": "https://stackoverflow.com/questions/418600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to do a subquery in LINQ? Here's an example of the query I'm trying to convert to LINQ: SELECT * FROM Users WHERE Users.lastname LIKE '%fra%' AND Users.Id IN ( SELECT UserId FROM CompanyRolesToUsers WHERE CompanyRoleId in (2,3,4) ) There is a FK relationship between CompanyRoles...
{ "language": "en", "url": "https://stackoverflow.com/questions/418609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: Break at throw for exception that is caught In the VS debugger, un-caught exceptions result in the program breaking at the point the exception is throw (or near enough) and in a state that lets you look at all the stack frames and there local variables up to that point. Is there a way to get this same result (break ...
{ "language": "en", "url": "https://stackoverflow.com/questions/418613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Find the directory part (minus the filename) of a full path in access 97 For various reasons, I'm stuck in Access 97 and need to get only the path part of a full pathname. For example, the name c:\whatever dir\another dir\stuff.mdb should become c:\whatever dir\another dir\ This site has some suggestions on how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/418622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Setting iso-8859-1 instead of utf-8 in oscommerce / sts template website? In an oscommerce site I have the following: Server response = Content-type: text/html;charset=UTF-8 and I want: Content-type: text/html;charset=ISO-8859-1 How and where do I set this up. Html looks like this on the page: <!DOCTYPE HTML PUBL...
{ "language": "en", "url": "https://stackoverflow.com/questions/418650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ghost/translucent caption inside text input? First, what does one call the ghost caption that appears in a text edit if that edit has no real text? Second, has anyone invented that particular wheel for Flex text components? Thanks A: It's called a Watermark. I'm not an expert on Flex but here is one example: http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/418665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }