text
stringlengths
8
267k
meta
dict
Q: Linq to SQL - "This member is defined more than once" error I have the following linq code... CMSDataContext dc = new CMSDataContext(); var q = from u in dc.CMSUsers join d in dc.tblDistricts on u.DistrictCode equals d.District into orders select u; District shows this error: Ambigu...
{ "language": "en", "url": "https://stackoverflow.com/questions/363026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why I get an Exception on opening an empty ZIP-file with java.util.zip.ZipFile? I want to open a ZIP-file, that have no entries with java.util.zip.ZipFile. But on the constructor I get the following exception: 'java.util.zip.ZipException: error in opening zip file'. How can I open the empty ZIP? That ZIP-file is cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/363031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the best to way to manage a singleton? I am messing around with different PHP logging frameworks. I am currently trying PEAR::Log. I figured that I would use its singleton function to make sure there was only one instance of the class around. I have a small daemon-like script I wanted to add logging to beca...
{ "language": "en", "url": "https://stackoverflow.com/questions/363038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Updatemodel error when list item removed I have an edit page to edit some info. the page fills a complex object. one of the properties of this object is a generic list. If I just edit information and save, updatemodel works fine. if i remove (I do this using jquery to remove the form elements client side) something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there algorithms for increasing resolution of an image? Are there any algorithms or tools that can increase the resolution of an image - besides just a simple zoom that makes each individual pixel in the image a little larger? I realize that such an algorithm would have to invent pixels that don't really exist i...
{ "language": "en", "url": "https://stackoverflow.com/questions/363047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there a special restriction on commands executed by cron? I have a crontab that looks like 0 0 * * * pg_dump DB_NAME > /path/to/dumps/`date +%Y%m%d`.dmp which works fine when I run it manually, but not when cron runs it. After digging through the logs, I see Dec 12 00:00:01 localhost crond[17638]: (postgres) CMD...
{ "language": "en", "url": "https://stackoverflow.com/questions/363049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: jRails vs. Prototype I am not trying to make this a preference question, I am really wondering what people's experiences are with using jQuery and Rails or jRails for development. Most rails users including myself up to now have been using Prototype. However, I am mixing in a lot of jQuery plugins since they are s...
{ "language": "en", "url": "https://stackoverflow.com/questions/363050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Error spawning cmd.exe while building Visual C++ 2005 project I was changing the vc++ include directory with new paths suddenly getting below error erProject : error PRJ0003 : Error spawning 'cmd.exe'. A: This page helped me to solve the problem http://www.interact-sw.co.uk/iangblog/2005/09/12/cmdspawnerror
{ "language": "en", "url": "https://stackoverflow.com/questions/363055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Possibility to debug from .net code into SQL Server stored procedure code? Is there any possibility to directly dive into SQL Server stored procedures from .net code? So when debugging step by step in .net, I'd like to step into a called stored procedure. I know how to debug them individually, but I'd like to join ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How many simultaneous threads in an application is a lot? 5, 100, 1000? I guess, "it depends", but on what? What is common in applications that run as server daemons / services? What are hard limits? Given that the machine can handle the overall workload, how do I determine at how many threads the overhead starts to...
{ "language": "en", "url": "https://stackoverflow.com/questions/363079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MYSQL - How would I Export tables specifying only certain fields? How would I Export tables specifying only certain fields? I am using mysql 5.0 - using either a sql command or mysqldump. My table is X, and the fields I want to export are A,B,C A: If you are using phpMyAdmin, Run the query SELECT A,B,C FROM X and...
{ "language": "en", "url": "https://stackoverflow.com/questions/363084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Custom tooltip with a WS_POPUP dialog I want to create custom tooltips where I can put any kind of controls. I have derived from CDialog and used the WS_POPUP | WS_BORDER styles. I also add the CS_DROPSHADOW style in the OnInitDialog to get the tooltip shadow. Then I manage myself the WM_MOUSEHOVER and WM_MOUSELEAVE...
{ "language": "en", "url": "https://stackoverflow.com/questions/363086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I tell if a windows mobile device is connected to external power using VB.Net? Windows Mobile devices have different behaviour for suspending when the device is on battery power, or on external power. in my application, written using VB.net, I need to be able to determine whether the device has external power...
{ "language": "en", "url": "https://stackoverflow.com/questions/363094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I reduce the flicker in IE on postback? IE causes a very unattractive flash or flicker when the page posts back. Without using an UpdatePanel, how can I reduce or remove it? Most solutions suggest using page transitions like so: <meta content="BlendTrans(Duration=0.1)" http-equiv="Page-Exit" /> We have been ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can I avoid bad/different rendering of FillPolygon versus DrawPolygon? I am using FillPolygon with a semi-transparent color to draw a triangle (an arrow pointer). I have noticed that FillPolygon gives awkward results with an isocel triangle. One of the sides is overlapping DrawPolygon's side, while the two others ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/363099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: In WPF, how can I determine what column/row in a grid a control is in? I am building a grid dynamically and putting buttons in one of the columns. When I click a button, I want to know what row of my grid it's in. How can I find this? A: In the Click event handler for the button you say: int row; Button btn = sen...
{ "language": "en", "url": "https://stackoverflow.com/questions/363100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Clear Categories in Outlook 2003 Outlook 2007 automatically strips categories from incoming email. Outlook 2003 does not do this, forcing the recipient to use the senders categories. Is there a way to either: Force Outlook 2003 to remove the categories (can't do it via Rules and Alerts) on incoming email. OR Force b...
{ "language": "en", "url": "https://stackoverflow.com/questions/363105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does anyone know of source code to a free bar code reader algorithm? Does anyone know of source code to a free bar code reader algorithm, ideally in a C/C++/C# based language? Something that processes a bitmap picture of a barcode is fine... A: Have you looked at ZXing yet?
{ "language": "en", "url": "https://stackoverflow.com/questions/363108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Search for selection in Vim I use Vim and Vim plugins for Visual Studio when writing C++. Often, I find myself wanting to search for a string within a function, for example every call to object->public_member.memberfunc(). I know Vim offers a convenient way to search for a single word, by pressing * and #, and it ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/363111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "122" }
Q: Disconnected Recordset Someone I know wants to use diconnected recordsets in an application. To me it sounds like if I have a ORM tool there would really be no need to even touch disconnected recordsets. The way I understand it with ORM the ORM takes care of not hugging connections for unnecessarily long amounts of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GWT with multiple host pages in a legacy application I am considering making use of GWT as the front-end to an existing web application. I can't justify a complete rewrite to 100% GWT in one go. It is likely that I would migrate parts of the system to GWT gradually. However for consistency I would like to make use o...
{ "language": "en", "url": "https://stackoverflow.com/questions/363136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Import from Excel to MySQL database using SQuirrel I have an Excel spreadsheet with a few thousand entries in it. I want to import the table into a MySQL 4 database (that's what I'm given). I am using SQuirrel for GUI access to the database, which is being hosted remotely. Is there a way to load the columns from th...
{ "language": "en", "url": "https://stackoverflow.com/questions/363138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Beginning XUL & XPCOM development with XULRunner? I am planning to design an application XUL & XPCOM for proprietary system. So i have decided to use C/C++ but how can I start the development as a beginner in this field I cannot find a good guide to start around. It will be good if you can give some links and books....
{ "language": "en", "url": "https://stackoverflow.com/questions/363151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I change the main menu in Cocoa? I have a cocoa app with two types windows each of which requires a different main menu to be displayed. In my MainMenu.xib I have the default MainMenu. In Window1.xib I have Window1 and in Window2.xib I have Window2 and it's MainMenu. When I have the first Window open I have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/363156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are the most valuable .Net Compact Framework Tips, Tricks, and Gotcha-Avoiders? We work extensively in the .Net Compact Framework and Windows Mobile. I've seen plenty of questions come up regarding specifics to development of ASP.Net apps or other .Net based desktop apps but nothing CF specific. Anyone else a m...
{ "language": "en", "url": "https://stackoverflow.com/questions/363158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: Exception with System.Drawing.Image hey guys, i'm getting an exception on the following inner exception: {"Value cannot be null.\r\nParameter name: String"} Which reads like a simple error message, but none of the values (image, fileName) are null. How can i find out where this null String is? RipHelper.UploadImage...
{ "language": "en", "url": "https://stackoverflow.com/questions/363159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I set the ideal QPixmapCache::cacheLimit? I have just started using QPixmapCache and I was wondering, since there is not much documentation, about how to adjust the size based on the system the application is running on. Some users might have lots of free memory while others have very little. I have no idea ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: memory allocation in small memory devices Some systems such as Symbian insist people to use heap instead of stack when allocating big objects(such as pathnames, which may be more than 512 bytes). Is there any specific reason for this? A: Generally the stack on an embedded device is fixed to be quite small i.e. 8K i...
{ "language": "en", "url": "https://stackoverflow.com/questions/363162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Regex Problem Group Name Redefinition? So I have this regex: (^(\s+)?(?P<NAME>(\w)(\d{7}))((01f\.foo)|(\.bar|\.goo\.moo\.roo))$|(^(\s+)?(?P<NAME2>R1_\d{6}_\d{6}_)((01f\.foo)|(\.bar|\.goo\.moo\.roo))$)) Now if I try and do a match against this: B048661501f.foo I get this error: File "C:\Python25\lib\re.py", lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/363171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: enableviewstatemac in master page I am getting "Validation of viewstate MAC failed" and from what I heard you could add enableviewstatemac = false on each page or web.config, so instead of changing into every page can I just change in master' page so that I don't have to change on all the pages. A: The Message Aut...
{ "language": "en", "url": "https://stackoverflow.com/questions/363172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: project-tracking tools for navigating with topic maps? I'm having trouble with project management & am looking for a good tool that will be a good match for the way my brain works (very associatively). I'd like a bug-tracker but one that I can group tasks into topics and associate the topics to each other in a graph...
{ "language": "en", "url": "https://stackoverflow.com/questions/363181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Use of SET ROWCOUNT in SQL Server - Limiting result set I have a sql statement that consists of multiple SELECT statements. I want to limit the total number of rows coming back to let's say 1000 rows. I thought that using the SET ROWCOUNT 1000 directive would do this...but it does not. For example: SET ROWCOUNT 1000...
{ "language": "en", "url": "https://stackoverflow.com/questions/363189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to avoid XML injection I have input field value from that is used for forming XPath query. What symbols in input string should I check to minimise possibility of XML injection? A: This document describes in detail the concept of "Blind XPath Injection". It provides concrete examples of XPath injections and disc...
{ "language": "en", "url": "https://stackoverflow.com/questions/363190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Git On Windows Without Cygwin? Are there any native Git implementations for Windows that do not require Cygwin? I've become a fan of the TortoiseSVN client, and would really like to see a similar Git client for Windows. Edit: I am also considering Mercurial, but would prefer to check out a few before I make a decis...
{ "language": "en", "url": "https://stackoverflow.com/questions/363192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Is it possible to sort numbers in a QTreeWidget column? I have a QTreeWidget with a column filled with some numbers, how can I sort them? If I use setSortingEnabled(true); I can sort correctly only strings, so my column is sorted: 1 10 100 2 20 200 but this is not the thing I want! Suggestions? A: He...
{ "language": "en", "url": "https://stackoverflow.com/questions/363200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Universal Dropdown Menu? I am trying to create a "quick links" dropdown for a site I'm designing and it has to be compatible for all browsers IE6 and up. It needs to remain 120px wide because its position will be static. Using the <select> tag and setting a width, this works; however, when the box is opened, IE cuts...
{ "language": "en", "url": "https://stackoverflow.com/questions/363206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: bash scripting..copying files without overwriting I would like to know if it is possible to copy/move files to a destination based on the origin name. Basically, I have a /mail folder, which has several subfolders such as cur and new etc. I then have an extracted backup in /mail/home/username that is a duplicate. mv...
{ "language": "en", "url": "https://stackoverflow.com/questions/363209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I get the route name in controller in ASP.NET MVC? ASP.NET MVC routes have names when mapped: routes.MapRoute( "Debug", // Route name -- how can I use this later???? "debug/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = string.Empty } ); Is there a way to get the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Shoes packager problem I used packager to make an executable file for the following code: Shoes.app do stack :margin => 10 do @edit = edit_box :width => 1.0 do @para.text = @edit.text end @para = para "" end end then I got error message: Error in C:/Program Files/Common Files/Shoes/0.r1134/lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/363218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Piping as interprocess communication I am interested in writing separate program modules that run as independent threads that I could hook together with pipes. The motivation would be that I could write and test each module completely independently, perhaps even write them in different languages, or run the differe...
{ "language": "en", "url": "https://stackoverflow.com/questions/363221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is everyone here jumping on the ORM band wagon? Microsoft Linq to SQL, Entity Framework (EF), and nHibernate, etc are all proposing ORMS as the next generation of Data Mapping technologies, and are claiming to be lightweight, fast and easy. Like for example this article that just got published in VS magazine: http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/363222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I get both STDOUT and STDERR to go to the terminal and a log file? I have a script which will be run interactively by non-technical users. The script writes status updates to STDOUT so that the user can be sure that the script is running OK. I want both STDOUT and STDERR redirected to the terminal (so that th...
{ "language": "en", "url": "https://stackoverflow.com/questions/363223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "161" }
Q: How to best integrate Flex and Django? I'm building a site with a Flex frontend and Django backend. The problem I'm facing is that it's tedious to write a CRUD frontend for every model. I've checked out django-rest-interface but it is not obvious on how to do anything other than read/GET (i.e. create/POST, update/PU...
{ "language": "en", "url": "https://stackoverflow.com/questions/363224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: asp.net, url rewrite module and web.config i'm using ASP.net with .NET 3.5 on IIS7 (Vista) with the URL Rewrite Module from Microsoft. This means, that i have a <system.webServer> <rewrite>...</rewrite> ... </system.webServer> section within the web.config, but i get a warning, that within the system.webSe...
{ "language": "en", "url": "https://stackoverflow.com/questions/363231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Url Form Action Without ViewContext Is it possible to get a URL from an action without knowing ViewContext (e.g., in a controller)? Something like this: LinkBuilder.BuildUrlFromExpression(ViewContext context, Expression<Action<T>> action) ...but using Controller.RouteData instead of ViewContext. I seem to have me...
{ "language": "en", "url": "https://stackoverflow.com/questions/363234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I handle events from an object saved as a property of a user control? I have an aspx page that contains a user control. The user control displays a business object and allows the user to edit the object. The user control has a property that holds the object being displayed. Public Property Item() As Widget ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using AjaxToolKit for improved WebForm Login I chose AjaxToolKit to build a WebForm login. Has anyone else had problems trying to do this? I'm planning to use DropShadow Extender and RoundedCorners with Panels, but this is my first time working with panels. Please check this link. I want to put a login panel into so...
{ "language": "en", "url": "https://stackoverflow.com/questions/363244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mysql fulltext search "all but" query I need to query the table for "all but keyword". Using just "-" doesn't work, and in fact mysql manual says: Note: The - operator acts only to exclude rows that are otherwise matched by other search terms. Thus, a boolean-mode search that contains only terms preceded by...
{ "language": "en", "url": "https://stackoverflow.com/questions/363248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a good forum out there discussing iCalendar format and interoperability? I can't seem to find a good forum focusing on iCalendar format. Specifically how iCalendar is implemented with Outlook. A: If you are producing iCalendar data and want to check for problems with Outlook then you could try validating ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using TFS, want to run a command line tool to perform obfuscation First time using team explorer, and I want to add a build task that will run a command line tool to obfuscate the assembly. This will one of the last tasks to be performed I assume. How would I go about doing this using Team Explorer? A: We use Xeno...
{ "language": "en", "url": "https://stackoverflow.com/questions/363254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Zip Code distance in excel I am looking for a way to get a function in excel to retrieve the distance form one zip to another. Lets say i have a list of 100,000 possible recruits and I want to sort by nearest. Id have the conference zip code and then 100,000 recruit zip codes. I'm looking to be able to just write a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a standardised way to embed metadata (e.g. version, license) in SWC components? Scenario: there is an Adobe Flex 3 project which uses several third-party libraries and components in the form of SWC files. How can we know "what is inside" those SWC files? Specifically, how can I make sure that the project us...
{ "language": "en", "url": "https://stackoverflow.com/questions/363267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I remove jQuery validation from a form? I'm using the jQuery validation plugin to validate a form, and I'd like to remove the validation and submit the form if a certain link is clicked. I am submitting form with javascript like jQuery('form#listing').submit(), so I must remove the validation rules/function w...
{ "language": "en", "url": "https://stackoverflow.com/questions/363268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Built-In methods to backup app.config Are there any built in methods in System.Configuration that would allow one to backup the currently running apps XXX.exe.config file. Or if not, how would one retrieve the current applications config file name for backup. A: You should be able to do this using the System.Confi...
{ "language": "en", "url": "https://stackoverflow.com/questions/363274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hide something with CSS without display:none or JavaScript How can I hide the div without using display:none or JavaScript? In my country, a lot of Blackberrys come with the CSS support disabled (the mobile companies here are not so good to developers). I have text that says <div class="BBwarn"> please activate your...
{ "language": "en", "url": "https://stackoverflow.com/questions/363276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: https with WCF error: "Could not find base address that matches scheme https" I go to https://mywebsite/MyApp/Myservice.svc and get the following error: (The link works if I use http:// ) "The service '/MyApp/MyService.svc' cannot be activated due to an exception during compilation. The exception message is: Could ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: ASP.Net Upload of multiple files after choosing them from jQuery I have used a jQuery multiple file upload control [ MultiFile from fyneworks http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Overview ] to collect some filenames but can't work out how to upload them on the server. The standard asp:FileUploa...
{ "language": "en", "url": "https://stackoverflow.com/questions/363286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why is Visual C++ lacking refactor functionality? When programming in C++ in Visual Studio 2008, why is there no functionality like that seen in the refactor menu when using C#? I use Rename constantly and you really miss it when it's not there. I'm sure you can get plugins that offer this, but why isn't it integrat...
{ "language": "en", "url": "https://stackoverflow.com/questions/363292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: How to use custom neighborhood/city/state for registration on drupal or elgg? I'm implementing a social networking site. I hope to use drupal or elgg and am trying out both. I'm stuck on customizing the registration to include a neighborhood in addition to city and state. I want to have drop-down menus customize t...
{ "language": "en", "url": "https://stackoverflow.com/questions/363293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does the code-to-interface principle apply to entity classes? I'm trying to follow code-to-interface on a project. Should I be creating an interface first then implementing that interface for entity classes? I'm thinking this might be taking the interface first approach too far and entities should be ignored. Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/363295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: openGL textures that are not 2^x in dimention I'm trying to display a picture in an openGL environment. The picture's origninal dimensions are 3648x2432, and I want to display it with a 256x384 image. The problem is, 384 is not a power of 2, and when I try to display it, it looks stretched. How can I fix that? A: T...
{ "language": "en", "url": "https://stackoverflow.com/questions/363302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Bind an ObjectDataSource to an existing method in my Data access layer I've seen the designer code, and I have seen code which builds the ObjectDataSource in the code-behind, however both methods communicate directly with the database via either text commands or stored procs. This seems like unnecessary code duplica...
{ "language": "en", "url": "https://stackoverflow.com/questions/363320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: javascript wont load, no clear error I have the following code, which will not work. The javascript gives no errors and appears to load fine. but clicking on a link will do nothing. An example of a link is: <a href="#" onclick="updateByQuery('Layer3', "Ed Hardy");">Link 1</a><li>Link 2</li> and the code: var xmlHtt...
{ "language": "en", "url": "https://stackoverflow.com/questions/363324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nesting SAX ContentHandlers I would like to parse a document using SAX, and create a subdocument from some of the elements, while processing others purely with SAX. So, given this document: <DOC> <small> <element /> </small> <entries> <!-- thousands here --> </entries> </DOC> I woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/363325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ICollection - Get single value What is the best way to get a value from a ICollection? We know the Collection is empty apart from that. A: You can use LINQ for this:. var foo = myICollection.OfType<YourType>().FirstOrDefault(); // or use a query var bar = (from x in myICollection.OfType<YourType>() where x.SomePr...
{ "language": "en", "url": "https://stackoverflow.com/questions/363326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: What is the meaning of Self-signed checkbox in WebStart properties in Netbeans In Netbeans (I have the 6.5 version), in the project properties under Application> Webstart there is a self-signed checkbox. What is its meaning? When I need to use it? A: Probably to do with web start security. If you look at this page...
{ "language": "en", "url": "https://stackoverflow.com/questions/363329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble tracking down a potential memory overwrite. Windows weirdness This is driving me nuts. I am using some 3rd-party code in a Windows .lib that, in debug mode, is causing an error similar to the following: Run-Time Check Failure #2 - Stack around the variable 'foo' was corrupted. The error is thrown when eith...
{ "language": "en", "url": "https://stackoverflow.com/questions/363336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How are you taking advantage of Multicore? As someone in the world of HPC who came from the world of enterprise web development, I'm always curious to see how developers back in the "real world" are taking advantage of parallel computing. This is much more relevant now that all chips are going multicore, and it'll ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Once you've adopted boost's smart pointers, is there any case where you use raw pointers? I'm curious as I begin to adopt more of the boost idioms and what appears to be best practices I wonder at what point does my c++ even remotely look like the c++ of yesteryear, often found in typical examples and in the minds o...
{ "language": "en", "url": "https://stackoverflow.com/questions/363351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: HTML Table issue I have a HTML table issue that I'd like to understand better. Let's assume that I have a 3 row HTML <table> <tr> <td style="text-align:right;">A1</td> <td>A2</td> </tr> <tr> <td style="text-align:right;">B1</td> <td>B2</td> </tr> <tr> <td c...
{ "language": "en", "url": "https://stackoverflow.com/questions/363356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: user.identity.name becames Blank after a while does anyone know why user.identity.name becames blank after a while about (10 mins), i am using .Net Framework 1.1 Edit: Session Timeout is set to 20 min no timeout is set under system.web/authentication/forms in web.config Thanks, Oscar A: Session expiry is not rela...
{ "language": "en", "url": "https://stackoverflow.com/questions/363358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Good open source Reporting tool/framework for WPF (C#) I am looking out for a good open source Reporting tool/framework for windows based application (WPF). The database I am using is sql server 2005. The typical reports format which I am interested is for e.g. Trial balance, balance sheet, etc (typical banking /...
{ "language": "en", "url": "https://stackoverflow.com/questions/363363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Browsing for SQL Servers I'm writing a database application that connects to SQL server. I'd like to implement a similar connection dialog box like the one in SQL Management Studio. I've already found a way to get the list of databases on a server, but I'd really like to get the list of available servers on the netw...
{ "language": "en", "url": "https://stackoverflow.com/questions/363370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I run a simple bit of code in a new thread? I have a bit of code that I need to run in a different thread than the GUI as it currently causes the form to freeze whilst the code runs (10 seconds or so). Assume I have never created a new thread before; what's a simple/basic example of how to do this in C# and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "396" }
Q: Visual Studio Web Design I'm using visual studio 2005 and have been building asp.net applications. Mostly just departmental level apps for reporting and data maintenance. They work and they look ok but they don't look great. I don't have any other tools like Dreamweaver or Expression. Can anyone name any books ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make a Table of Contents frame in XSL? I have an XML file that I am creating an XSL stylesheet for. What I would like is to have two frames and do two passes on the data, the first would create a Table of Contents in the left frame, and the second would have the body of data in the right. I can do the two ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to wrap long lines without spaces in HTML? If a user types in a long line without any spaces or white space, it will break formating by going wider than the current element. Something like: HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA....................................................................................
{ "language": "en", "url": "https://stackoverflow.com/questions/363425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Looking for a better C++ class factory I have an application that has several objects (about 50 so far, but growing). There is only one instance of each of these objects in the app and these instances get shared among components. What I've done is derive all of the objects from a base BrokeredObject class: class Br...
{ "language": "en", "url": "https://stackoverflow.com/questions/363453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What applications are there that I can pass data as it's generated and have it analyze some statistics for? The basic requirement is pass to some command type and execution time (possibly other data as well, but that's the basic data we're concerned with at the moment) from C# code (either managed code or something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get over my fears of <% %> in my ASP.Net MVC markup? So I totally buy into the basic tenents of ASP.NET, testability, SoC, HTML control...it's awesome. However being new to it I have a huge hang up with the markup. I know it comes from my hatred of classic ASP, and I can't help but feel like I've entered ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do you use Active Directory in a "hosted solution"? Yesterday I got a call from a Microsoft representative asking if we supply "hosted solutions", presumably as part of the big Windows Azure push. As soon as I got off that call, our marketing director came into my office and said the majority of our customers ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/363481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Multiple Team Foundation Server We currently have a local TF Server here in our company, and we are about to make a subset of our projects open source (via Codeplex), but we are having problems mixing two Team Foundation Servers in the same solution. Looks like Visual Studio can't be connected to many TF Servers at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: php quoting problem I have this PHP code echo '<a href="#" onclick="updateByQuery(\'Layer3\', ' . json_encode($query) . ');">Link 1</a>'; which generates a link like this: <a href="#" onclick="updateByQuery('Layer3', "Ed Hardy");">Link 1</a><li>Link 2</li> Causing the javascript to not be called. How would I make ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding the memory consumption on iPhone I am working on a 2D iPhone game using OpenGL ES and I keep hitting the 24 MB memory limit – my application keeps crashing with the error code 101. I tried real hard to find where the memory goes, but the numbers in Instruments are still much bigger than what I would ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/363493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Difference between catch block and throw new Exception in method In a method, I want to be able to insert a value into a div which is part of the html document I choose to parse. public void AddToDiv(string div) { //Code to read the html document and look for the div //(name specified as the parameter of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/363495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JQuery highlight row with checkbox click $(document).ready(function(){ $(".txtDate").datepicker({ showOn: "both", buttonImage: "library/ui/datepicker/img/calendar2.gif", dateFormat: "yy/mm/dd", buttonImageOnly: true }); //added this checkbox click for something I given earlier $("#Table input"...
{ "language": "en", "url": "https://stackoverflow.com/questions/363503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Interface or Abstract Class to fulfill requirement I want to have a abstract view for any type of UI (web or window). In order to do that I must use Interface (IView ) in which I can only apply just rules about view. In fact, I want to set a some basic comple function to provide to its inheritances. So in this way, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jQuery Form Processing With PHP to MYSQL Database Using $.ajax Request Question: How can I process a form using jQuery and the $.ajax request so that the data is passed to a script which writes it to a database? Problem: I have a simple email signup form that when processed, adds the email along with the current dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/363528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: draw by mouse in openGL How do you draw a polygon by mouse with openGL in C++? A: Assuming this is homework, and that you want to try to figure this out for yourself before looking at someone else's solution, take a moment to think about: * *How do you know when the user push a button? *What are the mouse coord...
{ "language": "en", "url": "https://stackoverflow.com/questions/363534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How would you design the the control tree/hierarchy without inheritance? I am aware of the responses at Prefer composition over inheritance and am aware of the merits of composition over inheritance. But there are cases where inheritance does have a good role to play. It's the incorrect use of inheritance hierarc...
{ "language": "en", "url": "https://stackoverflow.com/questions/363549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: web ui: How to present a large list for multi-select I'm looking for any examples anyone might have seen of how to effectively present a list of items (about 1500 in total) so that multiple items can be selected. I've seen a couple of similar questions where the answer suggests an auto-complete, which works to selec...
{ "language": "en", "url": "https://stackoverflow.com/questions/363565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Nice way to show html elements like gallery, mooflow, lightbox etc We have number of plugins to display images in a nice manner. For eg: mooflow(http://www.outcut.de/MooFlow/example-milkbox-bridge.html) with which we can display images in mac itunes manner. But i am wondering whether we have any plugins with which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting the value from an EnumSet in Java If you use an EnumSet to store conventional binary values (1,2,4 etc), then when there are less than 64 items, I am led to believe that this is stored as a bit vector and is represented efficiently as a long. Is there a simple way to get the value of this long. I want a quic...
{ "language": "en", "url": "https://stackoverflow.com/questions/363569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How To Update Data With Linq By Attach Method I have a update method in my data layer such this: public clacc datalayerSec_User private objUIData as new UIData Public Function Update(ByVal objUser As SEC_USER) As Boolean Try objUIData.SEC_USERs.Attach(objUser) objUIData.Refresh(RefreshMode.KeepCurrentValue...
{ "language": "en", "url": "https://stackoverflow.com/questions/363570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript Library for hierarchical flowchart Do you know any Javascript libraries which can present graph visually in a web page? Clarification: by graphs I mean something like workflow trees or decision trees. Sorry for not being clear. A: I've been doing some research, looking for a JS component that would handl...
{ "language": "en", "url": "https://stackoverflow.com/questions/363592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Unit testing a method that calls another method What is the best way to unit test a method that calls into multiple methods, for example: modify(string value) { if(value.Length > 5) replaceit(value); else changeit(value); } This pseudo code has a modify method that (currently) calls either replaceit() or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: How does one effectively allow multiple users to access an ASP.NET application on a single machine? We have two types of user - those that move around the building and access the app with PDAs on a wireless network, and those that are deskbound. Occasionally, a mobile user will try to use one of the deskbound users ...
{ "language": "en", "url": "https://stackoverflow.com/questions/363643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# List<> GroupBy 2 Values I'm using C# on Framework 3.5. I'm looking to quickly group a Generic List<> by two properties. For the sake of this example lets say I have a List of an Order type with properties of CustomerId, ProductId, and ProductCount. How would I get the sum of ProductCounts grouped by CustomerId an...
{ "language": "en", "url": "https://stackoverflow.com/questions/363655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Mysql Visualization Tools Does anyone know a good (preferably open source and cross platform) tool to allow simple visualization of mysql databases? I just need a tool I can quickly point at a database and it'll show basic table structure and field types, etc. Nothing too advanced or crazy. A: I really like Sql...
{ "language": "en", "url": "https://stackoverflow.com/questions/363658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Dealing with application redesign I am working on a project to redesign/ redo an application. The problem is that the old application was written in ASP.net 1.0 and the database is pretty large over 100 tables and 300 odd views.The database handles roles and membership in a very shoddy way. It involves a simple work...
{ "language": "en", "url": "https://stackoverflow.com/questions/363659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }